







Creates a new instance of the Prompt class and specifies the text to be spoken.
Namespace:
Microsoft.Speech.Synthesis
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ textToSpeak As String _ ) |
| Visual Basic (Usage) |
|---|
Dim textToSpeak As String Dim instance As New Prompt(textToSpeak) |
| C# |
|---|
public Prompt( string textToSpeak ) |
Parameters
- textToSpeak
- Type: System..::..String
The text to be spoken.
