My application receives a phone number in this format:
My goal is to have the application play back the phone number using a series of mp3 files (this is a twilio application if that helps). For area codes I have the possible mp3 files saved as:
800.mp3 for example (for the above number) and for each digit in the remaining number I have a single mp3 file from 0 to 9 to read out the rest of the digits. *I'm finding the area code sounds more natural when read as an area code instead of 3 separate numbers like the rest of the phone number.
So I'm trying to break up the number and insert the necessary code to play back the mp3's.
If above was the number, I need it to turn out like:
first 3 numbers are grouped together
then each number encased by the <Play> verb as shown.
Any idea how to do this?