Note that there are some explanatory texts on larger screens.

plurals
  1. POProper AVAudioRecorder Settings for Recording Voice?
    primarykey
    data
    text
    <p>I am adding a voice memo capability using AVAudioRecorder and I need to know the best settings for the recorder for recording voice. </p> <p>Unfortunately, I know nothing about audio to the extent I am not even sure what terms to google for. </p> <p>Currently, I am using the following which I copied from somewhere for testing purposes:</p> <pre><code>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]; </code></pre> <p>or:</p> <pre><code>defaultSettings = { AVFormatIDKey = 1768775988; AVLinearPCMBitDepthKey = 16; AVLinearPCMIsBigEndianKey = 0; AVLinearPCMIsFloatKey = 0; AVNumberOfChannelsKey = 2; AVSampleRateKey = 44100; }; </code></pre> <p>This works but I don't know if it's optimal for voice in terms of quality, speed, file size etc. </p> <p>The <a href="http://developer.apple.com/iphone/library/documentation/AVFoundation/Reference/AVAudioRecorder_ClassReference/Reference/Reference.html#//apple_ref/doc/uid/TP40008238-CH1-SW9" rel="noreferrer">AVAudioRecorder Class Reference list many settings constants</a> but I have no clue which ones to use for voice.</p> <p>Baring that, if someone knows of a good "AudioFormats for Dummy's" resource I will take that as well. (Note:I've been through the Apple Docs and they assume a knowledge base in digital audio that I do not posses.)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload