Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
StartVoice Method (String)

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é");
© 2015 Microsoft