// Instantiate SpeechKit
NSpeechKit _SpeechKit = new NSpeechKit();
// Set license properties
_SpeechKit.SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
// Create synthesizer
NCereVoiceSynthesizer _Synthesizer = _SpeechKit.CreateCereVoiceSynthesizer();
// Configure engine properties
_Synthesizer.SetProperty("EnginePath", "path\\cerevoice_eng\\lib");
_Synthesizer.SetProperty("VoicePath", "path\\cerevoices");
_Synthesizer.SetProperty("RootCertificate", "path\\root_certificate.pem");
_Synthesizer.SetProperty("ClientCRT", "path\\xx_client.crt");
_Synthesizer.SetProperty("ClientKey", "path\\xx_client.key");
_Synthesizer.SetProperty("License", "path\\xx_license.lic");
// Synthesize speech for playback
_Synthesizer.Speak("Hello world.", 0);
// Synthesize speech to file
_Synthesizer.Speak("Hello world.", 0, "myaudio.wav", 0);
// Instantiate SpeechKit
CSpeechKit* _SpeechKit = new CSpeechKit();
// Set license properties
_SpeechKit->SetLicense(L"LicenseRegistrationNumber", L"LicenseSerialNumber");
// Create synthesizer
CCereVoiceSynthesizer* _Synthesizer = _SpeechKit->CreateCereVoiceSynthesizer();
// Configure engine properties
_Synthesizer->SetProperty(L"EnginePath", L"path\\cerevoice_eng\\lib");
_Synthesizer->SetProperty(L"VoicePath", L"path\\cerevoices");
_Synthesizer->SetProperty(L"RootCertificate", L"path\\root_certificate.pem");
_Synthesizer->SetProperty(L"ClientCRT", L"path\\xx_client.crt");
_Synthesizer->SetProperty(L"ClientKey", L"path\\xx_client.key");
_Synthesizer->SetProperty(L"License", L"path\\xx_license.lic");
// Synthesize speech for playback
_Synthesizer->Speak(L"Hello world.", 0);
// Synthesize speech to file
_Synthesizer->Speak(L"Hello world.", 0, L"myaudio.wav", 0);
// Instantiate SpeechKit
CSpeechKit* _SpeechKit = new CSpeechKit();
// Set license properties
_SpeechKit->SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
// Create synthesizer
CCereVoiceSynthesizer* _Synthesizer = _SpeechKit->CreateCereVoiceSynthesizer();
// Configure engine properties
_Synthesizer->SetProperty("EnginePath", "path\\cerevoice_eng\\lib");
_Synthesizer->SetProperty("VoicePath", "path\\cerevoices");
_Synthesizer->SetProperty("RootCertificate", "path\\root_certificate.pem");
_Synthesizer->SetProperty("ClientCRT", "path\\xx_client.crt");
_Synthesizer->SetProperty("ClientKey", "path\\xx_client.key");
_Synthesizer->SetProperty("License", "path\\xx_license.lic");
// Synthesize speech for playback
_Synthesizer->Speak("Hello world.", 0);
// Synthesize speech to file
_Synthesizer->Speak("Hello world.", 0, "myaudio.wav", 0);
var
_SpeechKit: TSpeechKit;
_Synthesizer: TCereVoiceSynthesizer;
_Phonemes: string;
begin
// Instantiate SpeechKit
_SpeechKit := TSpeechKit.Create();
// Set license properties
_SpeechKit.SetLicense('LicenseRegistrationNumber', 'LicenseSerialNumber');
// Create synthesizer
_Synthesizer := _SpeechKit.CreateCereVoiceSynthesizer();
// Configure engine properties
_Synthesizer.SetProperty('EnginePath', 'path\\cerevoice_eng\\lib');
_Synthesizer.SetProperty('VoicePath', 'path\\cerevoices');
_Synthesizer.SetProperty('RootCertificate', 'path\\root_certificate.pem');
_Synthesizer.SetProperty('ClientCRT', 'path\\xx_client.crt');
_Synthesizer.SetProperty('ClientKey', 'path\\xx_client.key');
_Synthesizer.SetProperty('License', 'path\\xx_license.lic');
// Synthesize speech for playback
_Synthesizer.Speak('Hello world.', 0);
// Synthesize speech to file
_Synthesizer.Speak('Hello world.', 0, 'myaudio.wav', 0);
// Instantiate SpeechKit
JSpeechKit _SpeechKit = new JSpeechKit();
// Set license properties
_SpeechKit.setLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
// Create synthesizer
JCereVoiceSynthesizer _Synthesizer = _SpeechKit.createCereVoiceSynthesizer();
// Configure engine properties
_Synthesizer.setProperty("EnginePath", "path\\cerevoice_eng\\lib");
_Synthesizer.setProperty("VoicePath", "path\\cerevoices");
_Synthesizer.setProperty("RootCertificate", "path\\root_certificate.pem");
_Synthesizer.setProperty("ClientCRT", "path\\xx_client.crt");
_Synthesizer.setProperty("ClientKey", "path\\xx_client.key");
_Synthesizer.setProperty("License", "path\\xx_license.lic");
// Synthesize speech for playback
_Synthesizer.speak("Hello world.", 0);
// Synthesize speech to file
_Synthesizer.speak("Hello world.", 0, "myaudio.wav", 0);
Dim _SpeechKit As NSpeechKit
Dim WithEvents _Synthesizer As NCereVoiceSynthesizer
' Instantiate SpeechKit
_SpeechKit = New NSpeechKit()
' Set license properties
_SpeechKit.SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber")
' Create synthesizer
_Synthesizer = _SpeechKit.CreateCereVoiceSynthesizer()
' Configure engine properties
_Synthesizer.SetProperty("EnginePath", "path\\cerevoice_eng\\lib")
_Synthesizer.SetProperty("VoicePath", "path\\cerevoices")
_Synthesizer.SetProperty("RootCertificate", "path\\root_certificate.pem")
_Synthesizer.SetProperty("ClientCRT", "path\\xx_client.crt")
_Synthesizer.SetProperty("ClientKey", "path\\xx_client.key")
_Synthesizer.SetProperty("License", "path\\xx_license.lic")
' Synthesize speech for playback
_Synthesizer.Speak("Hello world.", 0)
' Synthesize speech to file
_Synthesizer.Speak("Hello world.", 0, "myaudio.wav", 0)
NVoiceMarkupKit _VoiceMarkupKit = new NVoiceMarkupKit();
_VoiceMarkupKit.SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
NCereVoiceVoiceMarkup _CereVoiceVoiceMarkup = _VoiceMarkupKit.CreateCereVoiceVoiceMarkup();
string markup = _CereVoiceVoiceMarkup.GenerateMarkup("Rate", "5", "This text is spoken above the baseline at rate of five");
CVoiceMarkupKit* _VoiceMarkupKit = new CVoiceMarkupKit();
_VoiceMarkupKit->SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
CCereVoiceVoiceMarkup* _CereVoiceVoiceMarkup = _VoiceMarkupKit->CreateCereVoiceVoiceMarkup();
wchar_t* markup = _CereVoiceVoiceMarkup->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");
CCereVoiceVoiceMarkup* _CereVoiceVoiceMarkup = _VoiceMarkupKit->CreateCereVoiceVoiceMarkup();
string markup = _CereVoiceVoiceMarkup->GenerateMarkup("Rate", "5", "This text is spoken above the baseline at rate of five");
var
_VoiceMarkupKit: TVoiceMarkupKit;
_CereVoiceVoiceMarkup: TCereVoiceVoiceMarkup;
markup: string;
begin
_VoiceMarkupKit := TVoiceMarkupKit.Create();
_VoiceMarkupKit.SetLicense('LicenseRegistrationNumber', 'LicenseSerialNumber');
_CereVoiceVoiceMarkup := _VoiceMarkupKit.CreateCereVoiceVoiceMarkup();
markup = _CereVoiceVoiceMarkup.GenerateMarkup('Rate', '5', 'This text is spoken above the baseline at rate of five');
JVoiceMarkupKit _VoiceMarkupKit = new JVoiceMarkupKit();
_VoiceMarkupKit.setLicense("LicenseRegistrationNumber", "LicenseSerialNumber");
JCereVoiceVoiceMarkup _CereVoiceVoiceMarkup = _VoiceMarkupKit.createCereVoiceVoiceMarkup();
String markup = _CereVoiceVoiceMarkup.generateMarkup("Rate", "5", "This text is spoken above the baseline at rate of five");
Dim _VoiceMarkupKit As NVoiceMarkupKit = Nothing
Dim _CereVoiceVoiceMarkup As NCereVoiceVoiceMarkup = Nothing
Dim markup as String
_VoiceMarkupKit = New NVoiceMarkupKit()
_VoiceMarkupKit.SetLicense("LicenseRegistrationNumber", "LicenseSerialNumber")
_CereVoiceVoiceMarkup = _VoiceMarkupKit.CreateCereVoiceVoiceMarkup()
markup = _CereVoiceVoiceMarkup.GenerateMarkup("Rate", "5", "This text is spoken above the baseline at rate of five")