![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)
![]() ![]() |
SpeechSynthesizer..::..SpeakAsync Method (PromptBuilder) |
SpeechSynthesizer Class See Also Send Feedback |
Asynchronously speaks the contents of a PromptBuilder object.
Namespace:
Microsoft.Speech.Synthesis
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function SpeakAsync ( _ promptBuilder As PromptBuilder _ ) As Prompt |
Visual Basic (Usage) |
---|
Dim instance As SpeechSynthesizer Dim promptBuilder As PromptBuilder Dim returnValue As Prompt returnValue = instance.SpeakAsync(promptBuilder) |
C# |
---|
public Prompt SpeakAsync( PromptBuilder promptBuilder ) |
Parameters
- promptBuilder
- Type: Microsoft.Speech.Synthesis..::..PromptBuilder
The content to speak.
Return Value
Type: Microsoft.Speech.Synthesis..::..PromptReturns the object that contains the content to speak.
Remarks
To synchronously speak the contents of a PromptBuilder object, use Speak(PromptBuilder).