Tropo is part of CiscoLearn More

Playing Audio Files

Playing audio on an outbound call is just as easy as using Text To Speech (TTS) - just replace the text with the link to an accessible audio file and Tropo will play it back:

call('+14075551212');
say("http://www.phono.com/audio/troporocks.mp3");
call '+14075551212'
say "http://www.phono.com/audio/troporocks.mp3"
<?php
call("+14075551212");
say("http://www.phono.com/audio/troporocks.mp3");
?>
call("+14075551212")
say("http://www.phono.com/audio/troporocks.mp3")
call('+14075551212')
say("http://www.phono.com/audio/troporocks.mp3")

"Accessible audio file" can mean a file hosted on your server, a hosting service, or a file hosted internally on our servers. It simply needs to be reachable from the internet.

You can also play multiple audio files in the same say (or ask, or record, message, etc):

call('+443069990432');
say("http://www.phono.com/audio/troporocks.mp3 http://example.org/holdmusic.mp3")
call '+443069990432'
say "http://www.phono.com/audio/troporocks.mp3 http://example.org/holdmusic.mp3"
<?php
call("+443069990432");
say("http://www.phono.com/audio/troporocks.mp3 http://example.org/holdmusic.mp3")
?>
call("+443069990432")
say("http://www.phono.com/audio/troporocks.mp3 http://example.org/holdmusic.mp3")
call('+443069990432')
say("http://www.phono.com/audio/troporocks.mp3 http://example.org/holdmusic.mp3")

You can also mix and match audio with text-to-speech:

call('+447700900444');
say("Here's some hold music! http://example.org/holdmusic.mp3")
call '+447700900444'
say "Here's some hold music! http://example.org/holdmusic.mp3"
<?php
call("+447700900444");
say("Here's some hold music! http://example.org/holdmusic.mp3")
?>
call("+447700900444")
say("Here's some hold music! http://example.org/holdmusic.mp3")
call('+447700900444')
say("Here's some hold music! http://example.org/holdmusic.mp3")

Please note, you will need to contact support to verify your account prior to making outbound calls.