Instructs the synthesizer to change the voice in the PromptBuilder object and specifies criteria for the new voice.
Namespace:
Microsoft.Speech.Synthesis
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub StartVoice ( _ voice As VoiceInfo _ ) |
Visual Basic (Usage) |
---|
Dim instance As PromptBuilder Dim voice As VoiceInfo instance.StartVoice(voice) |
C# |
---|
public void StartVoice( VoiceInfo voice ) |
Parameters
- voice
- Type: Microsoft.Speech.Synthesis..::..VoiceInfo
The criteria for the voice to use.
Remarks
Use the GetInstalledVoices()()()() methods and VoiceInfo class to obtain the names and attributes of installed text-to-speech (TTS) voices that you can select.