Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

PromptBuilder.StartVoice Method

Include Protected Members
Include Inherited Members

Instructs the synthesizer to change the voice in a PromptBuilder object.

Overload List

  Name Description
Public method StartVoice(CultureInfo) Instructs the synthesizer to change the voice in the PromptBuilder object and specifies the culture of the voice to use.
Public method StartVoice(String) Instructs the synthesizer to change the voice in the PromptBuilder object and specifies the name of the voice to use.
Public method StartVoice(VoiceGender) Instructs the synthesizer to change the voice in the PromptBuilder object and specifies the gender of the voice to use.
Public method StartVoice(VoiceInfo) Instructs the synthesizer to change the voice in the PromptBuilder object and specifies criteria for the new voice.
Public method StartVoice(VoiceGender, VoiceAge) Instructs the synthesizer to change the voice in the PromptBuilder object and specifies the gender and the age of the voice to use.
Public method StartVoice(VoiceGender, VoiceAge, Int32) Instructs the synthesizer to change the voice in the PromptBuilder object and specifies its gender, age, and a preferred voice that matches the specified gender and age.

Top

Remarks

A voice represents an installed TTS engine. Use the GetInstalledVoices() methods and VoiceInfo class to obtain the names and attributes of installed text-to-speech (TTS) voices that you can select.

When an application calls GetInstalledVoices(), the method verifies that each of the voices it finds in the registry meets certain minimum criteria. For any voice that fails verification, GetInstalledVoices() sets its Enabled property to False. An application cannot call any of the StartVoice() methods on a voice whose Enabled property is False. Typically, applications will not set a voice’s Enabled property.

See Also

Reference

PromptBuilder Class

PromptBuilder Members

Microsoft.Speech.Synthesis Namespace