TIPS IVR Issue

progs_00

Active Member
Joined
Jan 6, 2014
Messages
136
Reaction score
40
Hello guys.

I'd like a bit of help with an IVR I'm trying to design for my office that will announce that during some holiday the office will remain closed from x to z date.
Obviously I can record such a message (I need 3 of them for summer holidays, easter holidays and Christmas) but I want to avoid having to change them year after year.
So I wanted to make an IVR saying the initial part of the message (Our office will remain closed from), continue to something else that will play the initial day, go back to the ivr to say the word "to" (as in from 6 TO), continue elsewhere to say the second day and then return to say the month and the rest of the message (so the message would be something like "our office will remain closed from 6 to 20 August due to summer holidays")
Do you have any ideas as to how can I go about it?

Thank you!
 
If you want all of the messages in the same voice and you can live with the quality of the free offerings, then gTTS is your best bet. You could branch out from the IVR to a single AGI script to handle putting the entire message together. See the AGI scripts in /var/lib/asterisk/agi-bin for some examples.
 
Thank you very much Ward. I'll look into it
Here's a syntax example from the new Today in History app:
Code:
$lang = "en";
$enchilada = "The text for your message" . chr(13) . chr(10);
$fd = fopen("/tmp/today.txt", "w");
fwrite($fd, $enchilada);
fclose($fd);
unlink ("/tmp/today.wav") ;
shell_exec("/usr/local/bin/gtts-cli -l $lang -f /tmp/today.txt  | /usr/bin/sox -t mp3 - -r 8000 /tmp/today.wav");
 
Last edited:

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top