avaudiorecorder


Using AVAudioRecorder on Mac

谁说我不能喝 提交于 2020-01-13 16:23:48
问题 The AVAudioRecorder Class Reference found here: https://developer.apple.com/library/mac/#documentation/AVFoundation/Reference/AVAudioRecorder_ClassReference/Reference/Reference.html#//apple_ref/doc/uid/TP40008238 says that AVAudioSession can be used to configure the audio session To configure an appropriate audio session for recording, refer to AVAudioSession Class Reference and AVAudioSessionDelegate Protocol Reference. But the AVFoundation Framework lacks the AVAudioSession on OS X. So we

multiple AVAudioRecorder instances

感情迁移 提交于 2020-01-13 13:08:45
问题 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

Audio file format issue in objective c

吃可爱长大的小学妹 提交于 2020-01-13 06:47:06
问题 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

Audio interruption when iOS application is recording in background

痴心易碎 提交于 2020-01-10 15:35:14
问题 My iPad sound application (iOS 7.1) is able to record while in background. Everything is ok as far as recording is not interrupted while in background. For example if one's has the (stupid?) idea to start listening music while recording something. I tried to manage this interruption in different ways, with no success. The problem is that the - (void)audioRecorderEndInterruption:(AVAudioPlayer *)p withOptions:(NSUInteger)flags is never fired when application was in background as the

AVAudioRecorder doesn't record while screen is locked

北战南征 提交于 2020-01-09 11:49:10
问题 I've tried to overcome this for a while. I'm trying to record sound, but the AVAudioRecorder doesn't record while screen is locked. It does continue to record once screen is unlocked, but the audio recorded when screen was locked is lost forever. I can't find anything wrong with what I'm doing: -(void) startRecording { // Begin the recording session. _session = [AVAudioSession sharedInstance]; NSError *setCategoryError = nil; NSError *startRecordError; [_session setActive:YES error:

Play a paused AVAudioRecorder file

空扰寡人 提交于 2020-01-09 11:10:30
问题 in my program I want the user to be able to: record his voice, pause the recording process, listen to what he recorded and then continue recording. I have managed to get to the point where I can record and play the recordings with AVAudioRecorder and AVAudioPlayer. But whenever I try to record, pause recording and then play, the playing part fails with no error. I can guess that the reason it's not playing is because the audio file hasn't been saved yet and is still in memory or something. Is

Adding metadata to AAC M4A via AVAssetExportSession

雨燕双飞 提交于 2020-01-07 02:01:06
问题 I am creating and storing an AAC-encoded .m4a file using AVAudioRecorder. This produces a playable .m4a file just fine. I want to then use AVAssetExportSession to process the file in order to add metadata to the file. The below code is producing a .m4a file of a similar size (1 KB less than source), but when it plays back, there is just silence. NSURL* url = [NSURL fileURLWithPath:self.m4aPath]; AVURLAsset* asset = [AVAsset assetWithURL:url]; AVMutableMetadataItem* t = [AVMutableMetadataItem

how to change the pitch of recorded audio getting me following error

拜拜、爱过 提交于 2020-01-06 03:45:11
问题 Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: node != nil' AVAudioFile *file=[[AVAudioFile alloc] initForReading:_recordedvoice error:nil]; AVAudioFormat *format=file.processingFormat; AVAudioFrameCount capacity= (AVAudioFrameCount)file.length; AVAudioPCMBuffer *buffer=[[AVAudioPCMBuffer alloc] initWithPCMFormat:format frameCapacity:capacity]; [file readIntoBuffer:buffer error:nil]; [playerNode scheduleBuffer:buffer

AVAudioRecorder and AirPlay Mirrioring

自闭症网瘾萝莉.ら 提交于 2020-01-04 08:06:07
问题 When I have an AVAudioRecorder Session active - (when I'm recording audio) I can't activate AirPlay mirroring on the device. Airplay mirroring just deactivates while the app is running and switches it back on when the app exits. This post seems to suggest there is no way around this. My thoughts are to try: using a lower level recording framework or outputting a separate window to external display, rather than mirroring (I've tried this, it doesn't work). Is there another way around this, or

AVAudioRecorder and AirPlay Mirrioring

别等时光非礼了梦想. 提交于 2020-01-04 08:06:07
问题 When I have an AVAudioRecorder Session active - (when I'm recording audio) I can't activate AirPlay mirroring on the device. Airplay mirroring just deactivates while the app is running and switches it back on when the app exits. This post seems to suggest there is no way around this. My thoughts are to try: using a lower level recording framework or outputting a separate window to external display, rather than mirroring (I've tried this, it doesn't work). Is there another way around this, or

工具导航Map