12.07.2015 Views

Nuance Vocalizer Developer's Guide - Avaya Support

Nuance Vocalizer Developer's Guide - Avaya Support

Nuance Vocalizer Developer's Guide - Avaya Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

vocalizer lm.Addresses=hostname:8471 -text_type ssmlrm.Addresses=coyote tts.ResourceName=SSMLservertts.Port=32324 -dictionary_port 22553Note: By default, <strong>Vocalizer</strong> opens two ports at startup, the TTS port (32323)and the dictionary port for phoneme translation (22552). If you are runningmore than one instance of <strong>Vocalizer</strong> on the same machine, only one instancecan use the default port settings. Make sure to modify these port settings forother instances by setting the tts.Port and -dictionary_port on thevocalizer command line.3 From the client side, use the parameter tts.ResourceName to select aspecific TTS server.If this parameter is set by the client, any TTS request is directed to a TTSresource with the same name. If it is not set, it is simply directed to the first TTSserver identified by the resource manager. By changing the setting of theparameter before issuing a request, you can send the request to any named TTSresource running in your configuration.Every <strong>Nuance</strong> API includes a mechanism for setting parameters at runtime.When programming with the <strong>Nuance</strong>SpeechChannel, for example, use thesetStringParameter method:sc.setStringParameter("tts.ResourceName", "SSMLserver");CorePromptPlayer prompter = sc.getPromptPlayer();prompter.appendTTS("Hello World");prompter.play(false);You can also set the parameter when you initialize your application. If most ofyour prompts include VoiceXML markup tags, for example, you can set theVoiceXML TTS resource as the default when you start your application. Forexample, if you start your application with the command-line executable myapp,you could run:> myapp rm.Addresses=coyote tts.ResourceName=VXMLserverAll TTS requests go to the “VXMLserver” TTS server until tts.ResourceName isexplicitly reset by your application.Note: To set <strong>Nuance</strong> parameters from your application command line, yourapplication’s initialization code must pass command-line arguments through toa <strong>Nuance</strong>Config object. The mechanism for doing this depends on which<strong>Nuance</strong> API you use to write your application.You can start multiple <strong>Vocalizer</strong> TTS servers with the same name. If you need torun multiple servers with the same characteristics to handle the volume of TTSrequests, start each with the same tts.ResourceName value. When therecognition client’s tts.ResourceName parameter is set to that name and a TTSChapter 3 Configuring <strong>Vocalizer</strong> with the <strong>Nuance</strong> SystemDirecting requests to a specific TTS server25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!