phwhite / texttospeech

FreePBX Text-To-Speech Module (Cepstral Swift, eSpeak, fLite, Google-TTS, Microsoft-TTS)
8 stars 3 forks source link

post dynamic variables for texttospeach module #8

Open gabystallo opened 11 years ago

gabystallo commented 11 years ago

Since I needed to be able to dynamically generate the text to be read (on a PHP url source), and that text depends on some variables of that call, I added support to send asterisk variables over POST on dynamic url sources .. This is very usefull when you are dynamically generating the text using PHP or other similar language ..

I added in the URL configuration a field named "Dynamic AGI Variables", you insert the variables you want to send separated by a comma, for example: "agi_callerid,agi_language" You can also add dynamic variables set by other applications, like a DTMF input. The variables are passed over POST to the PHP (or whatever) file specified in the URL field.

This is very very usefull when combined with some DTMF input or the "dynroute" module (http://www.voipsupport.it/pmwiki/pmwiki.php?n=Freepbx.DynamicRouting)

I think it would be a very useful feature on the main branch of this module :)

Regards Gabriel

lgaetz commented 10 years ago

@gabystallo

There is a fork of this project being maintained here: https://github.com/FreePBX-ContributedModules/texttospeech

Please consider submitting your improvements to the develop branch there.