Tropo is part of CiscoLearn More

Playing Audio Files

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

say("https://www.tropo.com/docs/troporocks.mp3")
say "https://www.tropo.com/docs/troporocks.mp3"
<?php
say("https://www.tropo.com/docs/troporocks.mp3")
?>
say("https://www.tropo.com/docs/troporocks.mp3")
say("https://www.tropo.com/docs/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):

say("https://www.tropo.com/docs/troporocks.mp3 https://example.org/holdmusic.mp3")
say "https://www.tropo.com/docs/troporocks.mp3 https://example.org/holdmusic.mp3"
<?php
say("https://www.tropo.com/docs/troporocks.mp3 https://example.org/holdmusic.mp3")
?>
say("https://www.tropo.com/docs/troporocks.mp3 https://example.org/holdmusic.mp3")
say("https://www.tropo.com/docs/troporocks.mp3 https://example.org/holdmusic.mp3")

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

say("Here's some hold music! https://example.org/holdmusic.mp3")
say "Here's some hold music! https://example.org/holdmusic.mp3"
<?php
say("Here's some hold music! https://example.org/holdmusic.mp3")
?>
say("Here's some hold music! https://example.org/holdmusic.mp3")
say("Here's some hold music! https://example.org/holdmusic.mp3")

We also offer a Github repository with generic voice prompts professionally recorded in US English for your use. These voice prompts are released under the LGPL open source license. Feel free to download and use them for your own phone applications.