Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5961359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:57:13+00:00 2026-05-22T18:57:13+00:00

I am using this code for record setting but still i have some issue.

  • 0

I am using this code for record setting but still i have some issue. can any help me to short out this issues..

NSMutableDictionary *recordSetting = [[NSMutableDictionary alloc] init]; 
[recordSetting setValue:[NSNumber numberWithInt: kAudioFormatLinearPCM]      forKey:AVFormatIDKey];  
[recordSetting setValue:[NSNumber numberWithFloat:44100.0] forKey:AVSampleRateKey];  
[recordSetting setValue:[NSNumber numberWithInt: 2] forKey:AVNumberOfChannelsKey];  
[recordSetting setValue:[NSNumber numberWithInt: 8] forKey:AVLinearPCMBitDepthKey];  
[recordSetting setValue:[NSNumber numberWithBool:NO] forKey:AVLinearPCMIsBigEndianKey];  
[recordSetting setValue:[NSNumber numberWithBool:NO] forKey:AVLinearPCMIsFloatKey];  
[recordSetting setValue:[NSNumber numberWithInt:AVAudioQualityHigh] forKey:AVEncoderAudioQualityKey];  
[recordSetting setValue:[NSNumber numberWithInt:96] forKey:AVEncoderBitRateKey];  
[recordSetting setValue:[NSNumber numberWithInt:16] forKey:AVEncoderBitDepthHintKey]; 
[recordSetting setValue:[NSNumber numberWithInt:AVAudioQualityHigh] forKey:AVSampleRateConverterAudioQualityKey]; 

AVAudioRecorder *recorder = [[AVAudioRecorder alloc] initWithURL:fileURL                                                settings:recordSetting                                                             error:nil];
[recorder setDelegate:self];
recorder.meteringEnabled = YES; 
[recorder prepareToRecord];
[self setAudioRecorder:recorder];
[recorder release];

My Test:
I go to the “Record Your Shout” screen and press record.
I am in a quiet room by myself with no noise at all around me
I do not say anything for 5 seconds
When I preview that recording there is very loud static noise

I then closed ShoutOmatic and used the “Voice Memo” that comes with the iPhone and do the same thing and the sound quality is crystal clear, perfect.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:57:14+00:00Added an answer on May 22, 2026 at 6:57 pm

    This isn’t an exact solution, but it’s a start. Note that on the AVAudioPlayer, you’re not setting any of the userInfo properties – you’re handing it a file and saying “here you go”. Try locating that file (when recorded via the Simulator) and playing it in iTunes or another media player. Does it have static? If so, you’re certain the problem is in the recording, not the playback.

    Step 2, it seems like you have a lot of specifiers for the record format – don’t be afraid to use the defaults. I’d start commenting out lines one at a time (of course checking that the recording still works) and see if you can’t get it to resolve. That might tell you what mutually-incompatible record settings you have.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I change the master volume level? Using this code [DllImport (winmm.dll)] public
I have this code :- using (System.Security.Cryptography.SHA256 sha2 = new System.Security.Cryptography.SHA256Managed()) { .. }
I have this code: using DC = MV6DataContext; using MV6; // Business Logic Layer
I'm using this code, to make a request to a given URL: private static
I'm using this code, and I get the stack trace that is listed below.
I'm using this code from Microsoft to play audio notifications for my application. It's
I'm using this code to reset the identity on a table: DBCC CHECKIDENT('TableName', RESEED,
I am using this php code: exec(unrar e file.rar,$ret,$code); and getting an error code
I get an error when I compile this code: using System; public struct Vector2
Consider this code... using System.Threading; //... Timer someWork = new Timer( delegate(object state) {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.