avaudiorecorder

multiple AVAudioRecorder instances

戏子无情 提交于 2019-12-05 18:30:55
i'm working on an app that records sound. furthermore, i want the user to be able to comment certain situations with his own voice. i thought it would be sufficient to configure one audio session and just create two AVAudioRecorder instances with different file URLs. but that doesn't work, the second audio recorder does create its audio file, but it doesn't record any sound. does anyone know how to realize two AVAudioRecorder instances that actually work on one device? recording with only one AVAudioRecorder works, but using both doesn't work. i have a workaround in mind, but that's a bunch of

AVAudioRecorder meter delay on iPad

a 夏天 提交于 2019-12-05 13:09:34
I am having trouble getting an accurate meter reading from the AVAudioRecorder (testing on iPad). It seems to work fine while the volume is rising, however a delay happens when the volume drops. For example: I speak into the mic and slowly raise my voice. The readings increment from -35.567 to -34.678 up to -10.579 as I would hope, but when I stop talking there is a delay of 1 - 2 seconds before it drops back down to -35.567 (or whatever it happens to be). The NSLog continues to update from the loop but the meter number stays the same during the delay even though the sound has long ended. I

Can AVAudioRecorder be used to record audio coming from your iOS app?

两盒软妹~` 提交于 2019-12-05 12:13:22
I'd like to record the audio coming from my iPhone app. So after the background music and sound effects are mixed I'd like to sample the audio before it's played from the device's speakers (or headphones). I've been experimenting with RemoteIO Audio Units . These seem promising. However they're pretty low level. Can AVAudioRecorder (or other "high-level" object) be used to capture audio coming from an iOS device? kevlar As far as I can tell, there's no way to do this with AVAudioRecorder. You must use Audio Units. Record audio iOS Is there a way to record device audio on the iPhone? Record

Sending AVAudioRecorder to server iOS

旧巷老猫 提交于 2019-12-05 11:32:45
I am trying for the past few days to upload a locally saved sounde record to a server (which handels it with a php file and saves it to the server). the problem is that I can't find a way to do that. While recording the sound (AVAudioRecorder) it saves at a "NSTemporaryDirectory()": NSURL *temporaryRecFile = [NSURL fileURLWithPath:[NSTemporaryDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"VoiceFile"]]]; Now, everywhere I checked the answer was to use ASIHTTPRequest . but the problem is that it is not supported in ios6. There are some other libraries for it but nothing

Setting a time limit when recording an audio clip?

血红的双手。 提交于 2019-12-05 10:37:24
I looked for search terms along the lines of the post title, but alas.. I am building an iPhone app using AVFoundation. Is there a correct procedure to limit the amount of audio that will be recorded? I would like a maximum of 10 seconds. Thanks for any help/advice/tips/pointers.. AVAudioRecorder has the following method: - (BOOL)recordForDuration:(NSTimeInterval)duration I think that will do the trick! http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVAudioRecorder_ClassReference/Reference/Reference.html#//apple_ref/doc/uid/TP40008238 I don't normally work with

AVAudioRecorder Memory Leak

坚强是说给别人听的谎言 提交于 2019-12-05 06:13:52
问题 I'm hoping someone out there can back me up on this... I've been working on an application that allows the end user to record a small audio file for later playback and am in the process of testing for memory leaks. I continue to very consistently run into a memory leak when the AVAudioRecorder's "stop" method attempts to close the audio file to which it's been recording. This really seems to be a leak in the framework itself, but if I'm being a bonehead you can tell me. To illustrate, I've

Audio file format issue in objective c

我与影子孤独终老i 提交于 2019-12-04 18:48:45
I have written an audio WAV (have recorded my voice) file using AVAudioRecorder. The final file format is a WAV file. File was successfully saved and I can hear my voice. I want to send this file to a back End server (web-service). But my server accepting only data and FMT information in WAV . It is not accepting my wav file because of my wav file infromation with FLLR, data, FMT. I have checked my WAV file information in Riffpad tool. It's showing FLLR, data, FMT. But I want only data and fmt. Because my server side accepts only data and FMT. So please advice how to remove FLLR in my wav file

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

谁都会走 提交于 2019-12-04 16:23:35
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:[NSNumber numberWithInt:AVAudioQualityLow] forKey: AVEncoderAudioQualityKey]; NSURL *url = [NSURL fileURLWithPath:[self getActualSoundPath]]; [_recorder initWithURL:url settings:recordSettings error:nil]; [_recorder setDelegate:self]; This code works perfectly in my Simulator and on

How to record using AVAudioRecorder without the .caf container?

只愿长相守 提交于 2019-12-04 12:39:36
问题 I am using a AVAudioRecorder instance to record with the setting for AVFormatIDKey set to kAudioFormatMPEG4AAC . It records the audio in AAC format but a .caf audio container packages the audio file. (I can see the caff header in the recorder file). How do I record so that the caff container is not there but in pure m4a format so that I can use the files across platforms. 回答1: Found the answer. There is a weird way the AVAudioRecorder works. The format in which the AVAudioRecorder will save

AVAudioRecorder normalize volume

你离开我真会死。 提交于 2019-12-04 10:06:46
I've got an app that records audio. I'm wondering how I can increase the gain. is there a way to normalize the audio or amplify it somehow? thanks, howie Looks like I found a solution. According to the documentation the AVAudioPlayer volume can be between 0.0 and 1.0. Apparently it can be set to a value greater than 1.0. By increasing the volume I was able to achieve the same desired result. While it's not normalized, the gain is increased. #import <AudioToolbox/AudioServices.h> UInt32 audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker; AudioSessionSetProperty (kAudioSessionProperty