avaudiorecorder

AVAudioRecorder throws errors

为君一笑 提交于 2019-11-27 18:39:01
I use AVAudioRecorder to record, it worked fine on iOS 4 devices, but yesterday we found out recording is broken on iOS5. Using the iPhone 5 simulator I got following error: 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/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn, 262): Symbol not found: ___CFObjCIsCollectable Do you know where this error came from and how to fix this? This error is

AVAudioRecorder not working on iPhone 5S

喜夏-厌秋 提交于 2019-11-27 14:06:32
问题 So I'm using an AVAudioRecorder to record audio alongside an AVCaptureSession that is recording video (I know this is odd, but for my situation I need to record them seperately). Everything works fine on every device, except for my iPhone 5S. It records without error, but the file that is saved to disk is corrupted or something. When I access the file system on my mac and try and play the m4a file with VLC or Quicktime, I get a "format of the file cannot be detected" error. Here is how I am

iPhone SDK: AVAudioRecorder metering — how to change peakPowerForChannel from decibel into percentage?

北慕城南 提交于 2019-11-27 13:16:59
问题 The AVAudioRecorder in the iPhone SDK can be used to get the peak and average power for a channel, in decibels. The range is between 0db to 160db. What is the calculation used to convert this into a scale between 0 - 10 or something similar that can be used for an audio level meter? 回答1: The range is from -160 dB to 0 dB. You probably want to display it in a meter that goes from -90 dB to 0 dB. Displaying it as decibels is actually more useful than as a linear audio level, because the

How to get array of float audio data from AudioQueueRef in iOS?

安稳与你 提交于 2019-11-27 12:27:53
问题 I'm working on getting audio into the iPhone in a form where I can pass it to a (C++) analysis algorithm. There are, of course, many options: the AudioQueue tutorial at trailsinthesand gets things started. The audio callback, though, gives an AudioQueueRef , and I'm finding Apple's documentation thin on this side of things. Built-in methods to write to a file, but nothing where you actually peer inside the packets to see the data. I need data. I don't want to write anything to a file, which

How to record and play sound in iPhone app?

一曲冷凌霜 提交于 2019-11-27 11:50:55
I tried using AVAudioSession and AVAudioPlayer to record and play sounds respectively but the sound volume is very low. I tried putting volume value of AVAudioPlayer to 1.0 and more but didnt help much. What could be my other options to record sound which can be loud enough to play back? CNSivakumar This code should be useful for you: #import <AudioToolbox/AudioServices.h> UInt32 audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker; AudioSessionSetProperty (kAudioSessionProperty_OverrideAudioRoute, sizeof (audioRouteOverride),&audioRouteOverride); It will increase volume. The

Proper AVAudioRecorder Settings for Recording Voice?

ぃ、小莉子 提交于 2019-11-27 09:15:31
问题 I am adding a voice memo capability using AVAudioRecorder and I need to know the best settings for the recorder for recording voice. Unfortunately, I know nothing about audio to the extent I am not even sure what terms to google for. Currently, I am using the following which I copied from somewhere for testing purposes: recorderSettingsDict=[[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithInt:kAudioFormatAppleIMA4],AVFormatIDKey, [NSNumber numberWithInt:44100.0]

How to record an audio file in .mp3 format?

做~自己de王妃 提交于 2019-11-27 02:50:49
问题 I am using the following settings for recording audio file in .mp3 format using AVAudioRecorder. NSDictionary *recordSettings = [[NSDictionary alloc] initWithObjectsAndKeys: [NSNumber numberWithFloat: 44100.0],AVSampleRateKey, [NSNumber numberWithInt: kAudioFormatMPEGLayer3],AVFormatIDKey, [NSNumber numberWithInt: 1], AVNumberOfChannelsKey, [NSNumber numberWithInt: AVAudioQualityMax],AVEncoderAudioQualityKey,nil]; But not able to record with these. I searched a lot for this but wasn't able to

How to get AVAudioPlayer output to the speaker

别来无恙 提交于 2019-11-27 00:07:10
问题 I'm recording audio with AVAudioRecorder as seen in How do I record audio on iPhone with AVAudioRecorder? 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 the loud speaker ? TIA! 回答1: From http://www.iphonedevsdk.com/forum/iphone-sdk-development-advanced-discussion/12890-audiosessionsetproperty-problem-playing-sound-listening-mic.html -- UInt32 sessionCategory =

AVAudioRecorder / AVAudioPlayer - append recording to file

守給你的承諾、 提交于 2019-11-26 21:38:47
问题 Is there any way to record onto the end of an audio file? We can't just pause the recording instead of stopping it, because the user needs to be able to come back to the app later and add more audio to their recording. Currently, the audio is stored in CoreData as NSData. NSData's AppendData does not work because the resulting audio file still reports that it is only as long as the original data. Another possibility would be taking the original audio file, along with the new one, and

AVAudioRecorder throws errors

妖精的绣舞 提交于 2019-11-26 19:32:10
问题 I use AVAudioRecorder to record, it worked fine on iOS 4 devices, but yesterday we found out recording is broken on iOS5. Using the iPhone 5 simulator I got following error: 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/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn, 262): Symbol not