![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Asynchronously speaks the contents of a Prompt object.
Namespace:
Microsoft.Speech.Synthesis
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub SpeakAsync ( _ prompt As Prompt _ ) |
Visual Basic (Usage) |
---|
Dim instance As SpeechSynthesizer Dim prompt As Prompt instance.SpeakAsync(prompt) |
C# |
---|
public void SpeakAsync( Prompt prompt ) |
Parameters
- prompt
- Type: Microsoft.Speech.Synthesis..::..Prompt
The content to speak.
Remarks
You can cancel the asynchronous speaking of a prompt with the SpeakAsyncCancel(Prompt) or the SpeakAsyncCancelAll()()()() method.
To synchronously speak the contents of a Prompt object, use Speak(Prompt).