How Tos

Last reviewed: 5/1/2020

Article ID: H052012

HOW: Developing applications that do more with Nuance Speech Technology

The information in this article applies to:

  • LexiconKit 6
  • SpeechKit 9
  • VoiceMarkupKit 6

Summary

Explore ways to do more with Nuance Speech Technology.

More Information

Chant Developer Workbench 2020 includes LexiconKit to generate pronunciations for synthesis clarity, SpeechKit to synthesize text to speech, and VoiceMarkupKit to markup text for tailored speech synthesis. It also provides an interative toolset for editing and testing Vocalizer and VoCon lexicons, speech synthesis, and Speech Synthesis Markup Language (SSML).

Develop applications that do more with Nuance Speech Technology

Generate pronunciation phonemes with LexiconKit to use with SSML for Nuance voices.

// Instantiate LexiconKit
NLexiconKit _LexiconKit = new NLexiconKit();
// Set license properties
_LexiconKit.SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
// Create synthesizer
NVocalizerSynthesizer _Synthesizer = _LexiconKit.CreateVocalizerSynthesizer();
// Configure engine properties
_Synthesizer.SetProperty("EnginePath", "C:\\Program Files\\Nuance\\Vocalizer Embedded\\");

// Generate phonemes
string _Phonemes = _Synthesizer.GeneratePhonemes("tomato", "Noun");

Recognize and transcribe speech with SpeechKit from live and recorded audio.

// Start speech recognition from microphone audio source
_Recognizer.StartRecognition();

// Stop speech recognition from microphone audio source
_Recognizer.StopRecognition();

// Transcribe from audio file
_Recognizer.TranscribeAudio("myaudio.wav");

Generate text to speech with SpeechKit for playback or persistence to a file.

// Instantiate SpeechKit
NSpeechKit _SpeechKit = new NSpeechKit();
// Set license properties
_SpeechKit.SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
// Create synthesizer
NVocalizerSynthesizer _Synthesizer = _SpeechKit.CreateVocalizerSynthesizer();
// Configure engine properties
_Synthesizer.SetProperty("EnginePath", "C:\\Program Files\\Nuance\\Vocalizer Embedded\\");

// Synthesize speech for playback
_Synthesizer.Speak("Hello world.", (int)VESPEAKFLAGS.VE_DEFAULT);

// Synthesize speech to file
_Synthesizer.Speak("Hello world.", (int)VESPEAKFLAGS.VE_DEFAULT, "myaudio.wav", (int)SPSTREAMFORMAT.SPSF_Default);

Generate Speech Synthesis Markup Language (SSML) with VoiceMarkupKit to tailor speech synthesis.

NVoiceMarkupKit _VoiceMarkupKit = new NVoiceMarkupKit();
_VoiceMarkupKit.SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
NLHNCSVoiceMarkup _LHNCSVoiceMarkup = _VoiceMarkupKit.CreateW3CVoiceMarkup();

string markup = _LHNCSVoiceMarkup.GenerateMarkup("Rate", "5", "This text is spoken above the baseline at rate of five");

Develop and test applications that do more with Nuance Speech Technology

Developers use Chant Developer Workbench with LexiconKit to create and edit Nuance lexicons, SpeechKit to test and analyze speech synthesis, and with VoiceMarkupKit to create, edit, and test Speech Synthesis Markup Language (SSML).

Use LexiconKit to create and edit a lexicon of word pronunciations for Nuance voices.

Vocalizer and VoCon Pronunciation Editing
Vocalizer and VoCon Pronunciation Editing: Create and edit Vocalizer and VoCon pronunciations faster by using the auto generation feature. Simply type the word, space, and two forward slashes to generate the default pronunciation for editing.

Use SpeechKit to test and analyze speech synthesis with Nuance voices.

Synthesizer Management
Synthesizer Management: Enumerate and test synthesizers with live playback or persisting synthesized speech to files.
Synthesizer Management
Synthesizer Management: Trace synthesis events in the Events window.

Use VoiceMarkupKit to create and edit SSML with Nuance voices.

SSML Editing
SSML Editing: Edit L&H Native Control Sequence, SAPI 5, and W3C Speech Synthesis Markup Language (SSML) faster with built-in intelliprompt that suggest valid markup syntax.