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
Related
I used the code found at the link below. It doesn't work with iPhone 5 as no audio is processed(while the mic are ok). For iPhone 6s the audio quality is good Only when the headphone is connected but without it the audio has a gap for like every other second.
https://github.com/chrisballinger/FFmpeg-iOS-Encoder/blob/master/FFmpegEncoder/AACEncoder.m
Can you suggest a better approach on encoding audio from the mic? I am sending the data to a server and writing to file is NOT an option unless it is fast and I can grab the AAC data with timestamps.
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
I need to make an app that sends recorded audio in .wav format to a REST endpoint. I will be using AFNetworking for the POST, but I am not sure where to go with recording the audio and then converting it. I know I should use AVFoundation to record, but I am not sure how to convert. Would CoreAudio help?
I have a remote MP4 file that has video and sound. I want to only stream the audio track of the mp4 file. I don't need the video and want to decrease the internet usage in my app. I have no idea where to start with this, Google doesn't seem to help. Is this impossible? Any ideas?
You can't... If you want audio only, you need to split video / audio on the server or put a stream software (like vlc, ffmpeg or mplayer) who can re-encode file in realtime (so you can drop video for new stream)
It's better, for me, to process all files on server and extract audio track...
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).