How Tos

Last reviewed: 7/15/2015

Article ID: H061405

HOW: Developing applications that speak with multiple voices

The information in this article applies to:

  • SpeechKit 8

Summary

Develop applications that synthesize with multiple voices by providing the voice name on StartPlayback requests.

More Information

The synthesizer voice name is an optional parameter of StartPlayback requests so queued requests can switch voices.

Setting the CSPEngine property is used to set the default voice for all queued requests. Queued requests are not purged if the speech API is the same. The new voice name is used on next request processed.

// Instantiate ChantTTS object
NChantTTS1 = new NChantTTS();

// Synthesize text to speech
NChantTTS1.StartPlayback("Hello world", 0, ChantPlaybackObject.CPOText, ChantAudioFormat.CAFDefault, ChantPlaybackStyle.CPSAsynchronous, "Microsoft David Desktop - English (United States)");