Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
text-to-speech_guide:tts_http_protocol:start [2015/03/03 20:57] – [VoiceXML Browser configuration] borja | legacy:text-to-speech_guide:tts_http_protocol:start [2017/07/28 23:53] – ↷ Links adapted because of a move operation javier | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== HTTP/TTS Protocol ====== | ====== HTTP/TTS Protocol ====== | ||
- | [[: | + | [[legacy: |
===== Description ===== | ===== Description ===== | ||
- | Our VoiceXML browser can connect to a TTS engine using HTTP. | + | 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 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 audio file can be store in a cache directory in order to optimize the TTS ressources using. | ||
Line 12: | Line 12: | ||
This protocol is simple : | This protocol is simple : | ||
* From the VoiceXML browser, you configure to use HTTP, a (POST recommended) request containing mainly the text content and additional parameters (like language, voice...). | * From the VoiceXML browser, you configure to use HTTP, a (POST recommended) request containing mainly the text content and additional parameters (like language, voice...). | ||
- | * The server treats your request. | + | * The web server |
- | * The VoiceXML browser receives an audio file (cpataible | + | * The VoiceXML browser receives an audio file (compatible |
- | * If you try to use the same content, the VoiceXML will check and use the cache content instead of requesting the TTS engine. | + | * If you try to use the same content |
Line 27: | Line 27: | ||
* **formatvideo** : same as format but when you sent the xml: | * **formatvideo** : same as format but when you sent the xml: | ||
* **maxage** : The parameter ' | * **maxage** : The parameter ' | ||
+ | * **checkBreak** : Allows to parse the prompt content (in SSML) an search for the < | ||
* **cutPrompt** : The option ' | * **cutPrompt** : The option ' | ||
* **ssml** : The option ' | * **ssml** : The option ' | ||
Line 51: | Line 52: | ||
# | # | ||
client.prompt.resource.0.ssml | client.prompt.resource.0.ssml | ||
+ | </ | ||
+ | |||
+ | Most of this parameters can be change from the VoiceXML syntax using properties. Use the property name ' | ||
+ | |||
+ | VoiceXML example : | ||
+ | |||
+ | < | ||
+ | < | ||
</ | </ | ||
===== HTTP Parameters ==== | ===== HTTP Parameters ==== | ||
Line 57: | Line 66: | ||
* **language** : the language used (en-GB, fr-FR...) : from the xml:lang attribut. | * **language** : the language used (en-GB, fr-FR...) : from the xml:lang attribut. | ||
* **format** : the audio format to return (wav, gsm, mp4... formats supported by Asterisk) : from the configuration. | * **format** : the audio format to return (wav, gsm, mp4... formats supported by Asterisk) : from the configuration. | ||
- | * **voice** : the voice (Carla, Marcos... depends on the TTS provider) : from the xml:lang attribut. | + | * **voice** : the voice (Carla, Marcos... depends on the TTS provider) : from the xml:lang attribut |
* **size*** : the size of the image : from the property promptsize. | * **size*** : the size of the image : from the property promptsize. | ||
* **backgroud*** : the image reference or color used for the background : from the property promptbackground. | * **backgroud*** : the image reference or color used for the background : from the property promptbackground. |