Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

PromptBuilder.StartVoice Method (String)

Instructs the synthesizer to change the voice in the PromptBuilder object and specifies the name of the voice to use.

Namespace:  Microsoft.Speech.Synthesis
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)
public void StartVoice(
	string name


Type: System.String
The name of the voice to use.

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

To stop using the voice specified by StartVoice(String) call EndVoice().

To specify a voice, the name parameter must contain the exact and entire contents of the Name property. The following code fragment initializes a PromptBuilder in English and changes the voice to French.

// Change the voice to French in a PromptBuilder.
PromptBuilder builder = new PromptBuilder(
  new System.Globalization.CultureInfo("en-US"));
  "Microsoft Server Speech Text to Speech Voice (fr-FR, Hortense)");
builder.AppendText("Nous sommes arrivé");
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.