![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)
Synchronously speaks the contents of a Prompt object.
Namespace:
Microsoft.Speech.Synthesis
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub Speak ( _ prompt As Prompt _ ) |
Visual Basic (Usage) |
---|
Dim instance As SpeechSynthesizer Dim prompt As Prompt instance.Speak(prompt) |
C# |
---|
public void Speak( Prompt prompt ) |
Parameters
- prompt
- Type: Microsoft.Speech.Synthesis..::..Prompt
The content to speak.
Remarks
To asynchronously speak the contents of a Prompt object, use SpeakAsync(Prompt).