Home >
The VoiceXML browser can connect to a TTS engine using HTTP. The HTTP protocol is used to transform the prompt text to an audio file. The audio file can be store in a cache directory in order to optimize the TTS ressources using. The first access request to generate the audio file, and save it into the cache. The next times, if you use the same text content, the VoiceXML browser will directly use the file in cache, as a prerecorded audio.
This protocol is simple :
The main TTS configuration is set in /etc/vxmld.conf, in the section “TTS server configuration”, parameters prefix “client.prompt.resource.0.”.
Configuration example :
############################ # TTS server configuration # ############################ #client.prompt.resource.0.uri VXIString http://localhost/tts/flite/tts.php #client.prompt.resource.0.uriVideo VXIString http://localhost/tts/video/ttv.php client.prompt.resource.0.method VXIString POST client.prompt.resource.0.cacheDir VXIString /tmp/cacheContent client.prompt.resource.0.format VXIString wav client.prompt.resource.0.formatVideo VXIString 3gp client.prompt.resource.0.maxage VXIInteger -1 client.prompt.resource.0.checkBreak VXIInteger 0 client.prompt.resource.0.cutPrompt VXIInteger 0 #client.prompt.resource.0.api VXIString voxygen #client.prompt.resource.0.user VXIString demo #client.prompt.resource.0.password VXIString demo client.prompt.resource.0.ssml VXIInteger 0
Most of this parameters can be change from the VoiceXML syntax using properties. Use the property name 'prompt' added with the parameter name.
VoiceXML example :
<property name="promptvoice" value="Poala"/>
* : Only for TextToVideo function. When you set xml:language=“video”.