I'm trying to use TwiML to (upload, convert and then) play a .aifc format welcome greeting for a Twilio Voicemail, before then recording any message from the caller. My current code is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Play>
https://drive.google.com/file/*********
</Play>
<Say>
Press * or hang up when you have finished recording.</Say>
<Record action="http://foo.edu/handleRecording.php" method="GET" maxLength="45" finishOnKey="*"/>
</Response>
The code worked before I tried to use the <Play>
function.. making me wonder whether hosting the file on Google Drive is the issue. Previously I used <Say>
, but that sounded pants.
Any suggestions greatly received.