![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)
Creates a new instance of the Prompt class and specifies the text to be spoken and whether its format is plain text or markup language.
Namespace:
Microsoft.Speech.Synthesis
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub New ( _ textToSpeak As String, _ media As SynthesisTextFormat _ ) |
Visual Basic (Usage) |
---|
Dim textToSpeak As String Dim media As SynthesisTextFormat Dim instance As New Prompt(textToSpeak, _ media) |
C# |
---|
public Prompt( string textToSpeak, SynthesisTextFormat media ) |
Parameters
- textToSpeak
- Type: System..::..String
The text to be spoken.
- media
- Type: Microsoft.Speech.Synthesis..::..SynthesisTextFormat
A value that specifies the format of the text.