Does anybody have any idea if and/or how to stream a .wax file in Twilio's TwiML?
Twilio developer evangelist here.
Twilio doesn't support .wax files for audio content. You can find the documentation on the files we support here: https://www.twilio.com/docs/api/twiml/play#nouns
Here is the list of suppoted audio formats and their MIME types:
audio/mpeg mpeg layer 3 audio
audio/wav wav format audio
audio/wave wav format audio
audio/x-wav wav format audio
audio/aiff audio interchange file format
audio/x-aifc audio interchange file format
audio/x-aiff audio interchange file format
audio/x-gsm GSM audio format
audio/gsm GSM audio format
audio/ulaw μ-law audio format
Related
I'm creating a tool using Twilio where I record upon request bits of the call. I'm using Audacity to check the encoding of the file and if it is a Linear PCM, but in part of Twilio's documentation it is stated that a call is using an 8-bit PCM mono uLaw with a sampling rate of 8Khz.
Can this be configured, because I'd need to have the recording in a given encoding configured by me when launching the recording or when downloading it.
Upon fetching the recording I can only choose mp3 or wav.
Thank you.
The recording format is not a configurable option.
Note that calls traveling across the Public Switch Telephone Network (PSTN) have their audio quality constrained by that transport. See the below article for more details.
You could download the recordings from Twilio and transcode to your required format, and store in your cloud.
Best Practices for Audio Recordings
I am using Twilio ML <play> to play audio over the phone. I manage to play the audio when the file type is mp3.
Due to some constraints we change the file type to mp4 which I read is accepted by Twilio. (accepted mime types)
When I tested the process I got an error when I tried to play an mp4 files. The logs in my Twilio account shows the following error code:
"12300 Invalid Content-Type"
I was googling this error code and found that this error can occurred when the content type is not sent by the server , so I checked the headers using fiddler and it seems fine to me: (Content-Type: video/mp4)
I will appreciate any advise with this issue.
Twilio only supports the following audio formats:
MIME TYPE DESCRIPTION
audio/mpeg mpeg layer 3 audio
audio/wav wav format audio
audio/wave wav format audio audio/x-wav wav format audio
audio/aiff audio interchange file format audio/x-aifc audio
interchange file format audio/x-aiff audio interchange file format
audio/x-gsm GSM audio format audio/gsm GSM audio format
audio/ulaw μ-law audio format
See https://www.twilio.com/docs/api/twiml/play for more details
Is there any video portal (such as youtube/youku/hulu) etc, which support mpeg2-ts format ? Just wanted to know if TS format is still in use by any of the content provider.
I know this format is used for media archiving on DVDs etc ... but wanted to know if any content provider uses this format for sending video stream on Internet for live streams or VoD.
Youtube supports mpeg2ts container format with H.264/AAC media for HTTP live streaming ...
http://www.youtube.com/watch?v=hnslRRh2wcA ... this URL generates HLS stream.
On checking the youtube-dl output found following:
format code extension resolution note
151 mp4 72p HLS (worst)
132 mp4 240p HLS
92 mp4 240p HLS
93 mp4 360p HLS (best)
even though extension says mp4 ... the actual container format used when used through chrome browser on windows is mpeg2ts.
How can I record audio in .WAV format in my iPhone application.Can any one help me out.
Thanks
You can use AVAudioRecorder to record into .CAF format and then use Extended Audio File Services to convert CAF to WAV
You can also check this question:
Recording sound as WAV on iphone
I have NSDATA which is recorded through AudioQueue , I want to play this audio through any AUDIO player on IOS, Please help on this.
Thanks
Djrecker
Save it as an audio file (e.g. WAV). AudioFile and ExtAudioFile APIs can help you write this.
You can't expect any audio player on iOS to interpret/guess a blob of sample data correctly. This is why file formats exist -- audio file formats can specify sample count, channel count, sample rate, sample format, and a ton of other information about the audio in the file. Using an audio file, you can exchange this recording in a format other programs are able to read (correctly).