exten=>*68,1,Answer()
same=>n,System(wget -q -U Mozilla -O /var/www/tts/${UNIQUEID}.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&client=t&tl=en&q=This is google tts test")
same=>n,System(/usr/bin/sox /var/www/tts/${UNIQUEID}.mp3 -t raw -r 8000 -s -2 -c 1 /var/www/tts/${UNIQUEID}.sln)
same=>n,Wait(1)
same=>n,System(/bin/rm -rf /var/www/tts/${UNIQUEID}.mp3)
same=>n,Wait(1)
same=>n,Playback(/var/www/tts/${UNIQUEID})
[ttsreader]
exten=>*69,1,Answer()
same=>n,System(wget -q -U Mozilla -O /var/www/tts/${UNIQUEID}.ulaw "http://tts.readspeaker.com/a/speak?key=@fe06be53ad0a5f0ddc7779d481e46aec@&audioformat=ulaw&lang=en_us&voice=Male01&text=%22hello+world%22")
same=>n,Wait(1)
same=>n,Playback(/var/www/tts/${UNIQUEID})
No hay comentarios:
Publicar un comentario