avaudiorecorder

How to get AVAudioPlayer output to the speaker

I'm recording audio with AVAudioRecorder as seen in http://stackoverflow.com/questions/1010343/how-do-i-record-audio-on-iphone-with-avaudiorecorder/1011273#1011273 I then use AVAudioPlayer to play back the recording. However the sound is coming out of the ear speaker, not the loud speaker. How would I go about redirecting the sound to...

iPhone - AVAudioRecorder - how can I record to an mp3?

Hi I am using the AVAudioRecorder class available with the 3.0 SDK to record audio in my app. I am successfully able to record to a caf/aiff file. But I would like to record to an mp3. I tried changing some values in the settings dictionary but all I get is a blank file. Is it possible to record to an mp3 using AVAudioRecorder If not...

iphone - AVAudioRecorder gives mono playback (sound playing in just one channel)

Hi I am using AVAudioRecorder to record audio and save to a wav file (using SDK 3.0) The settings dictionary contains the following values NSMutableDictionary *recordSetting = [[NSMutableDictionary alloc] init]; [recordSetting setValue :[NSNumber numberWithInt:kAudioFormatLinearPCM] forKey:AVFormatIDKey]; [recordSetting setValue:[N...

iphone-peakPowerForChannel function in AVAudioRecorder doesn't work

Hi I am trying to use an AVAudioRecorder instance to record sound, the whole recording progress runs well, except that when I call [recorder peakPowerForChannel:0] trying to get the volume, the return value is always 0, that's pretty odd.. I have checked the recorded audio file, it's totally fine. Then I use AVAudioPlayer to play it, an...

cahcing flash recorded audio in a bytearray on client

Hello all, I am building a small flash application to record audio from the client's computer. I wish to be able to use the microphone, store the recorded information in a byte array and then send it onwards. I saw the following piece of code that works fine with the camera: var _loc_1:BitmapData; var _loc_2:ByteArray;...

Missing chunks when creating file with AudioQueue

So a .wav file has a few standard chunks. In most of the files I work with, the "RIFF" chunk is first, then a "fmt " chunk, then the "DATA" chunk. When recording using AVAudioRecorder, those chunks are created (although an extra "FLLR" is created before the "DATA" chunk.) When creating a file with AudioQueue, those standard chunks aren'...

AVAudioRecorder: peak and average power

Hi, What is the difference between peakPowerForChannel and averagePowerForChannel methods of AVAudioRecorder? And why is the value returned is negative? Isn't it supposed to be 0 for no sound and go up when the amplitude of sound rises? How can I convert to a more "readable" format? Thanks. ...

iPhone - stuff "silence" in the beginning of an audio file

Hi I am using AVAudioRecorder in my app in order to create a .wav file based on user voice input. I want to be able to stuff" silence in the beginning of an audio file for some time before the actual recording is done. How can I do this using AVAudioRecorder? Can I mention a time for which I want the "silence" to be recorded? Thanks. ...

iPhone - combine two wav/caf files into one

Hi Is it possible to combine two wav files into one as if they've been played simultaneously? I need to do this programatically. The only way I found till now is to play both simultaneously and record the output using AVAudioRecorder. But this won't work if the user's using headphones. Can someone please point me to the right directio...

How can I permanently save AVAudioRecorder files for later access?

I have my code all set up to actually record the files. What I need, though, is a way to see where they are all saved and list them in a UITableView. I'm not asking the the implementation for the table; I only need a way to see where they are all saved. Thanks. ...

is it possible to use AVAudioRecorder alongwith MPMusicPlayerController?

Hello all, When a song from iPod chosen using MPMediaQuery is playing with MPMusicPlayerController, is it possible to record a clip of the song using AVAudioRecorder? ...

iPhone - show audio record feedback using AVAudioRecorder

Hi I am using the AVAudioRecorder class to record to a wav file. I would like to implement a recording feedback (like the SpeakHere example) which shows the recording level. I did go through the SpeakHere sample but could not understand how the recording level was changed. Can someone please guide me as to what needs to be done? Thank...

Semi-Comprehensive AVAudioRecorder Tutorial?

After doing a lot of searching and getting a basic idea of how to implement iPhone audio recording with AVAudioRecorder, I still have not managed to get it working. Can anyone point me to a tutorial or discussion that provides a clear-cut, full explanation without leaving things out? Thanks! ...

iPhone AVAudioRecorder Guide?

Can anyone point me to a tutorial or discussion that provides a clear-cut, full explanation of how to use the AVAudioRecorder method of recording audio in iPhone apps? Although I'm new to iPhone programming in general, I do have a basic understanding and yet all my attempts to use AVAudioRecorder have failed miserable. Much appreciated! ...

iPhone - Record settings give unexpected output with AVAudioRecorder

Hi I am using the AVAudioRecorder class to record a wav file. These are the settings that I use for recording recordSetting = [[NSMutableDictionary alloc] init]; [recordSetting setValue :[NSNumber numberWithInt:kAudioFormatLinearPCM] forKey:AVFormatIDKey]; [recordSetting setValue:[NSNumber numberWithFloat:44100.0] forKey:AVSampleRateK...

Combining Audio Files as One Properly on iPhone with NSData

I am using AVAudioRecorder to save an audio file every 15 seconds by stopping the recording appending that data to the previously recorder file using a NSMutableData object and using the appendData method. I then record again in the same method so the recording is "continuous". The problem is as soon as you do [recorder stop] it saves...

Sample rate for iPhone audio recording

What's the lowest optimal sample rate for audio recording on iPhone while still yielding good file size? Currently I am using 44.1kHz but it produces file that's way too big. ...

Why is AVAudioRecorder prepareToRecord Failing?

I am trying to setup a basic controller that will record user audio input(voice). However, the AVAudioRecorder's prepareToRecord method is failing and I can't figure out why. I have setup the audio session in my app delegate and I do not receive an errors when I instantiate the AVAudioRecorder instance: // App delegate snippet AVAudio...

how to resume recording after interruption occured in iphone?

I am working on an audio recorder application, it is working perfectly fine. But I'm stuck with the problem of interruption. When a call comes, - (void)audioRecorderBeginInterruption:(AVAudioRecorder *)recorder then this method is called and the recording is paused. And if the user rejects the call: - (void)audioRecorderEndInterrup...

Is a file available to be opened?

Short version: I think I'm asking for a file too soon, but it's pretending like it's ready. Am I missing something? Slightly longer version: I am writing files to disk. Before I do so, I have the user add some meta data, including the new file name. Once the user is done, the screen goes away and the program writes the file to disk. The...