![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)
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.