avaudiorecorder

How to trim AVAudioRecorder recording visually?

Hi, I have an app that records and plays audio with AVFoundation. I'm trying to work out how I would implement an audio trimmer (kind of like the one in Quicktime for Mac) and am totally stumped. Can anyone offer any help on how I would do this? Thanks! ...

Is there any way to check if there is any input to the mic or not?

Hi ppl, Is there any way to let's say, user clicks a button, and then he needs to say something to the mic, but only after he finishes to talk to the mic, the app will wait 5 seconds, and then the app will do something. is there any code or example for this? to check if there is an input to the mic or not. thanks in advance! ...

Pause recording callback for AudioQueue

Hi, I have a basic doubt about AudioQueues, I am using AudioQueue to record and am basically following the SpeakHere app. I found out that whenever I pause recording using the api: AudioQueuePause on AudioQueue object, the recording is not paused immediately. Is there a callback in AudioQueues which intimates the delegate that audio rec...

OpenAL Vs. AVAudioPlayer/AVAudioRecorder on iPhone

Hi, What is the difference between OpenAL and AVAudioPlayer on the iPhone? It seems that both can be used for playing/recording audio. When would you use either? What advantages/features does each provide? Thanks! -MT ...

.net mp3 converter library

Hi There, Does anyone know of any library to convert .caf files or .aif audio files to mp3 format. Im recording these on iPhone using AVAudioRecorder pibrary but need to convert them to mp3 on server side. Your help is much appreciated. Really stuck on this one. ...

iphone recording to an existing file

I beleive most of this is going for the database tag but my question is specifically on AVAudioRecorder. Lets say i recorded initially to a file using AVAudioRecorder in the .cif format. I want to record someother sound which will append to the recorded file. The recorder will usually overwrite if there is an existing file of that name ...

Access iPhone's Bluetooth and normal audio session at the same time?

Hey guys, I have a bit of an interesting problem and I'm not sure how to go about solving it. I need to take the audio from a connected bluetooth headset and pipe it directly to the speaker on the iPhone's device and vice-versa. Accessing the Bluetooth audio session is easy enough: // Use a Play and Record Category, because we'll be bot...

record and play the same file

Hello, I am trying to record the audio using AVAudioRecorder. My problem is i want to play the file while it is being recorded. Is there any way i can do this? I have set the category to PlayAndRecord. I have created the file for recording. I have tried to initialize both the recorder and the player for the URL and tried to play the fil...

recorder works on iPhone 3GS but not on iPhone 3G

Hi everybody, I have a AVAudioRecorder, which gets initialized like: _recorder = [AVAudioRecorder alloc]; NSMutableDictionary *recordSettings = [[[NSMutableDictionary alloc] initWithCapacity:2] autorelease]; [recordSettings setObject:[NSNumber numberWithInt:kAudioFormatMPEG4AAC] forKey: AVFormatIDKey]; [recordSettings setObject:[NSNumb...

Playing Audio in an iPhone App

What do you think is the best (i.e. most memory efficient) way of playing a few 30 second audio files (m4v) from the bundle within an app to the external speaker? The audio files have to play automatically as soon a specific view appears. There is no mixing, etc. going on. However I'm listening to the microphone at the same time via AVA...

AVAudioRecorder File won't play except with VLC

Ok. I think I'm missing something here and I'm new to Core Audio but I have scoured the Apple documents and the rest of the web to no avail. I've also posted this same question to the apple dev forums and got no replies. I'm hoping the StackOverflow community can help me out. I'm recording audio and playing it back just fine using AVAud...

How can i compare two audio files on the basis of certain parameter say maximum decibel ?

Hello all, I am trying to compare two .caf files on the basis of some parameter, say maximum decibels or duration of files. I have recorded these two files using the AVAudioRecorder class using the following settings: NSMutableDictionary* recordSetting = [[NSMutableDictionary alloc] init]; [recordSetting setValue :[NSNumber numberW...

Routing iPhone Audio Sound

I have an app which does listen and play sound at the same time. By default, the sound output goes through the earphone. So I use the following code to route it through the speaker: UInt32 audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker; AudioSessionSetProperty (kAudioSessionProperty_OverrideAudioRoute, sizeof(audioRouteOve...

Monitor iPhone's mic level without pausing iPod

I'm using AVAudioRecorder to get the current level of the microphone, but it pauses any iPod music that's playing and won't let the user unpause it. Is there a way of getting the two to work together? ...

How to record audio from playing music player.

Hi All, In my application i am playing audio using AvAudioplayer, after playing the audio i have to record the audio from AvAudioplayer and any other external noices along with the audio. How can i do that. Thank You ...

Record AVAudioPlayer output using AVAudioRecorder

Hi All In my application, I have list of Buttons when i click on one button corresponding music will be played. I want to record the sounds coming while playing the audio using avaudioplayer. But when i start recording while playing sounds nothing is recorded, Is it possible to record the sounds from avaudioplayer. Thank You. ...

Mail the recorded audio.

Hi all, In my app i am recording audio. I want to mail the recorded audio file. I am doing like this. MFMailComposeViewController *controller = [[MFMailComposeViewControlleralloc] init]; controller.mailComposeDelegate =self ; NSData *myData = [NSData dataWithContentsOfURL:url]; Here url is the path. printf("\n mydata %d",[myData le...

How to display recoding time while recording using avaudioplayer.

Hi all, In my application i am recording audio, while recording i have to display the time for each second. How can i do this. Thank You ...

Converting a sample rate of audio file iPhone

I'd like to change the pitch of an audio file by changing the sample rate programmatically. I am recording the file using AVAudioRecorder. I have noticed a settings parameter within AVAudioPlayer, however, it is read only. Can anyone lend a helping hand? :) ...

IOS AVAudioRecorder, How to record only when audio input present (non-silence)

Hello, I'm using AVAudioRecorder to record audio from the iphone's mic but I want to discard the silence periods: start recording when detecting sound, and stop recording when next silence. Can't figure out how to do that Any advice? Thanx! ...