zaf / asterisk-googletts

Asterisk AGI script that uses Google's translate text to speech service.
GNU General Public License v2.0
214 stars 125 forks source link

use read cmd instead of playback #38

Closed jeffvfren closed 6 years ago

jeffvfren commented 6 years ago

I would like to allow user dialing number during google tts playing. Is there any way to make it work like asterisk read command?

burakvural93 commented 6 years ago

I am also wondering this issue,because while file is streaming,user should be able to pass this streaming by dialing something,it can be done thanks to get_data rather than stream_file

zaf commented 6 years ago

By setting the interrupt key to 'any' the user can interrupt the streaming. The value of the digit is then used as the extension to jump to, something very common in IVR menus. Please check the sub 'playback' in the AGI script and the examples.