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).