Tag: avaudiorecorder

正确的AVAudioRecorder录音设置?

我使用AVAudioRecorder添加语音备忘录function,我需要知道录音机录制语音的最佳设置。 不幸的是,我对audio一无所知,甚至不知道谷歌有什么条件。 目前,我正在使用我从某处复制的以下内容进行testing: recorderSettingsDict=[[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithInt:kAudioFormatAppleIMA4],AVFormatIDKey, [NSNumber numberWithInt:44100.0],AVSampleRateKey, [NSNumber numberWithInt: 2],AVNumberOfChannelsKey, [NSNumber numberWithInt:16],AVLinearPCMBitDepthKey, [NSNumber numberWithBool:NO],AVLinearPCMIsBigEndianKey, [NSNumber numberWithBool:NO],AVLinearPCMIsFloatKey, nil]; 要么: defaultSettings = { AVFormatIDKey = 1768775988; AVLinearPCMBitDepthKey = 16; AVLinearPCMIsBigEndianKey = 0; AVLinearPCMIsFloatKey = 0; AVNumberOfChannelsKey = 2; AVSampleRateKey = 44100; }; 这个工作,但我不知道是否是最佳的语音质量,速度,文件大小等方面。 AVAudioRecorder类参考列出了许多设置常量,但我不知道哪些用于语音。 如果有人知道一个好的“AudioFormats for Dummy's”资源,我会采取这个方法。 (注意:我已经通过了苹果文档,他们承担了我不具备的数字audio知识基础。)

AVAudioRecorder引发错误

我使用AVAudioRecorder进行录制,它在iOS 4设备上运行良好,但昨天我们发现iOS5上的录制文件已损坏。 使用iPhone 5模拟器我有以下错误: 2011-08-02 11:09:03.586 Moodle [7832:10103] Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn:dlopen(/ System / Library /扩展名/ AudioIPCDriver.kext / Contents / Resources / AudioIPCPlugIn.bundle / Contents / MacOS / AudioIPCPlugIn,262):找不到符号:___CFObjCIsCollectable 你知道这个错误来自哪里以及如何解决这个问题?