How do I develop applications that do more with Nuance Speech Technology?
Last reviewed: 5/1/2020
HOW Article ID: H052012
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");
// Instantiate LexiconKit object
CLexiconKit* _LexiconKit = new CLexiconKit();
// Set license properties
_LexiconKit->SetLicense(L"LicenseRegistrationNumber", L"LicenseSerialNumber");
// Create synthesizer
CVocalizerSynthesizer* _Synthesizer = _LexiconKit->CreateVocalizerSynthesizer();
// Configure engine properties
_Synthesizer->SetProperty(L"EnginePath", L"C:\\Program Files\\Nuance\\Vocalizer Embedded\\");
// Generate phonemes
wchar_t* _Phonemes = _Synthesizer->GeneratePhonemes(L"tomato", L"Noun");
// Instantiate LexiconKit
CLexiconKit* _LexiconKit = new CLexiconKit();
// Set license properties
_LexiconKit->SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
// Create synthesizer
CVocalizerSynthesizer* _Synthesizer = _LexiconKit->CreateVocalizerSynthesizer();
// Configure engine properties
_Synthesizer->SetProperty("EnginePath", "C:\\Program Files\\Nuance\\Vocalizer Embedded\\");
// Generate phonemes
String _Phonemes = _Synthesizer->GeneratePhonemes("tomato", "Noun");
var
_LexiconKit: TLexiconKit;
_Synthesizer: TVocalizerSynthesizer;
_Phonemes: string;
begin
// Instantiate LexiconKit
_LexiconKit := TLexiconKit.Create();
// Set license properties
_LexiconKit.SetLicense('LicenseRegistrationNumber', 'LicenseSerialNumber');
// Create synthesizer
_Synthesizer := _LexiconKit.CreateVocalizerSynthesizer();
// Configure engine properties
_Synthesizer.SetProperty('EnginePath', 'C:\\Program Files\\Nuance\\Vocalizer Embedded\\');
// Generate phonemes
_Phonemes := _Synthesizer.GeneratePhonemes('tomato', 'Noun');
// Instantiate LexiconKit
JLexiconKit _LexiconKit = new JLexiconKit();
// Set license properties
_LexiconKit.setLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
// Create synthesizer
JVocalizerSynthesizer _Synthesizer = _LexiconKit.createVocalizerSynthesizer();
// Configure engine properties
_Synthesizer.setProperty("EnginePath", "C:\\Program Files\\Nuance\\Vocalizer Embedded\\");
// Generate phonemes
String _Phonemes = _Synthesizer.generatePhonemes("tomato", ""Noun");
Dim _LexiconKit As NLexiconKit
Dim WithEvents _Synthesizer As NVocalizerSynthesizer
Dim _Phonemes As String
' Instantiate LexiconKit
_LexiconKit = New NLexiconKit()
' Set license properties
_LexiconKit.SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber")
' Create synthesizer
_Synthesizer = _LexiconKit.CreateVocalizerSynthesizer()
' Configure engine properties
_Synthesizer.SetProperty("EnginePath", "C:\Program Files\Nuance\Vocalizer Embedded\")
' Generate phonemes
_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");
// Start speech recognition from microphone audio source
_Recognizer->StartRecognition();
// Stop speech recognition from microphone audio source
_Recognizer->StopRecognition();
// Transcribe from audio file
_Recognizer->TranscribeAudio(L"myaudio.wav");
// 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");
// 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');
// 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");
' 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);
// Instantiate SpeechKit
CSpeechKit* _SpeechKit = new CSpeechKit();
// Set license properties
_SpeechKit->SetLicense(L"LicenseRegistrationNumber", L"LicenseSerialNumber");
// Create synthesizer
CVocalizerSynthesizer* _Synthesizer = _SpeechKit->CreateVocalizerSynthesizer();
// Configure engine properties
_Synthesizer->SetProperty(L"EnginePath", L"C:\\Program Files\\Nuance\\Vocalizer Embedded\\");
// Synthesize speech for playback
_Synthesizer->Speak(L"Hello world.", VE_DEFAULT);
// Synthesize speech to file
_Synthesizer->Speak(L"Hello world.", VE_DEFAULT, L"myaudio.wav", SPSF_Default);
// Instantiate SpeechKit
CSpeechKit* _SpeechKit = new CSpeechKit();
// Set license properties
_SpeechKit->SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
// Create synthesizer
CVocalizerSynthesizer* _Synthesizer = _SpeechKit->CreateVocalizerSynthesizer();
// Configure engine properties
_Synthesizer->SetProperty("EnginePath", "C:\\Program Files\\Nuance\\Vocalizer Embedded\\");
// Synthesize speech for playback
_Synthesizer->Speak("Hello world.", VE_DEFAULT);
// Synthesize speech to file
_Synthesizer->Speak("Hello world.", VE_DEFAULT, "myaudio.wav", SPSF_Default);
var
_SpeechKit: TSpeechKit;
_Synthesizer: TVocalizerSynthesizer;
_Phonemes: string;
begin
// Instantiate SpeechKit
_SpeechKit := TSpeechKit.Create();
// Set license properties
_SpeechKit.SetLicense('LicenseRegistrationNumber', 'LicenseSerialNumber');
// Create synthesizer
_Synthesizer := _SpeechKit.CreateVocalizerSynthesizer();
// Configure engine properties
_Synthesizer.SetProperty('EnginePath', 'C:\\Program Files\\Nuance\\Vocalizer Embedded\\');
// Synthesize speech for playback
_Synthesizer.Speak('Hello world.', VE_DEFAULT);
// Synthesize speech to file
_Synthesizer.Speak('Hello world.', VE_DEFAULT, 'myaudio.wav', SPSF_Default);
// Instantiate SpeechKit
JSpeechKit _SpeechKit = new JSpeechKit();
// Set license properties
_SpeechKit.setLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
// Create synthesizer
JVocalizerSynthesizer _Synthesizer = _SpeechKit.createVocalizerSynthesizer();
// Configure engine properties
_Synthesizer.setProperty("EnginePath", "C:\\Program Files\\Nuance\\Vocalizer Embedded\\");
// Synthesize speech for playback
_Synthesizer.speak("Hello world.", VE_DEFAULT);
// Synthesize speech to file
_Synthesizer.speak("Hello world.", VE_DEFAULT, "myaudio.wav", SPSTREAMFORMAT.SPSF_Default);
Dim _SpeechKit As NSpeechKit
Dim WithEvents _Synthesizer As NVocalizerSynthesizer
' Instantiate SpeechKit
_SpeechKit = New NSpeechKit()
' Set license properties
_SpeechKit.SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber")
' Create synthesizer
_Synthesizer = _SpeechKit.CreateVocalizerSynthesizer()
' Configure engine properties
_Synthesizer.SetProperty("EnginePath", "C:\Program Files\Nuance\Vocalizer Embedded\")
' Synthesize speech for playback
_Synthesizer.Speak("Hello world.", VESPEAKFLAGS.VE_DEFAULT)
' Synthesize speech to file
_Synthesizer.Speak("Hello world.", VESPEAKFLAGS.VE_DEFAULT, "myaudio.wav", 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");
CVoiceMarkupKit* _VoiceMarkupKit = new CVoiceMarkupKit();
_VoiceMarkupKit->SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
CLHNCSVoiceMarkup* _LHNCSVoiceMarkup = _VoiceMarkupKit->CreateLHNCSVoiceMarkup();
wchar_t* markup = _LHNCSVoiceMarkup->GenerateMarkup(L"Rate", L"5", L"This text is spoken above the baseline at rate of five");
CVoiceMarkupKit* _VoiceMarkupKit = new CVoiceMarkupKit();
_VoiceMarkupKit->SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
CLHNCSVoiceMarkup* _LHNCSVoiceMarkup = _VoiceMarkupKit->CreateLHNCSVoiceMarkup();
string markup = _LHNCSVoiceMarkup->GenerateMarkup("Rate", "5", "This text is spoken above the baseline at rate of five");
var
_VoiceMarkupKit: TVoiceMarkupKit;
_LHNCSVoiceMarkup: TLHNCSVoiceMarkup;
markup: string;
begin
_VoiceMarkupKit := TVoiceMarkupKit.Create();
_VoiceMarkupKit.SetLicense('LicenseRegistrationNumber', 'LicenseSerialNumber');
_LHNCSVoiceMarkup := _VoiceMarkupKit.CreateLHNCSVoiceMarkup();
markup = _LHNCSVoiceMarkup.GenerateMarkup('Rate', '5', 'This text is spoken above the baseline at rate of five');
JVoiceMarkupKit _VoiceMarkupKit = new JVoiceMarkupKit();
_VoiceMarkupKit.setLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
JLHNCSVoiceMarkup _LHNCSVoiceMarkup = _VoiceMarkupKit.createLHNCSVoiceMarkup();
String markup = _LHNCSVoiceMarkup.generateMarkup("Rate", "5", "This text is spoken above the baseline at rate of five");
Dim _VoiceMarkupKit As NVoiceMarkupKit = Nothing
Dim _LHNCSVoiceMarkup As NLHNCSVoiceMarkup = Nothing
Dim markup as String
_VoiceMarkupKit = New NVoiceMarkupKit()
_VoiceMarkupKit.SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber")
_LHNCSVoiceMarkup = _VoiceMarkupKit.CreateLHNCSVoiceMarkup()
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.
Use SpeechKit to test and analyze speech synthesis with Nuance voices.
Use VoiceMarkupKit to create and edit SSML with Nuance voices.