Table of Contents

HTTP/TTS Protocol

Description

The Voximal 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 :

Voximal configuration

The main TTS configuration is set in /etc/asterisk/voximal.conf, in the section “[prompt]” :

Configuration example :

[prompt]
api=microsoft
method=POST
ssml=0
cutprompt=1
maxage=-1
key=xxxxxxxxxxxxxxxxxxxxxxxxx
user=xxxxxxx
password=xxxxxxx

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"/>

HTTP Parameters

* : Only for TextToVideo function. When you set xml:language=“video”.