【问题标题】:avaudiorecorder distorts sound when played after recordingavaudiorecorder 录制后播放时声音失真
【发布时间】:2011-08-21 19:44:23
【问题描述】:

我使用了 avaudiorecoder 来录制用户的声音。它会记录它,但是当我播放它时,声音会噼啪作响。对此的任何帮助将不胜感激.....按照我的录音机设置的代码..

NSDictionary *recordSetting =[[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber      numberWithInt:kAudioFormatAppleIMA4],AVFormatIDKey,
                                      [NSNumber numberWithInt:16000.0],AVSampleRateKey,
                                      [NSNumber numberWithInt: 1],AVNumberOfChannelsKey,
                                      [NSNumber numberWithInt:16],AVLinearPCMBitDepthKey,
                                      [NSNumber numberWithBool:NO],AVLinearPCMIsBigEndianKey,
                                      [NSNumber numberWithBool:NO],AVLinearPCMIsFloatKey,
                                      [NSNumber numberWithInt:AVAudioQualityMax],AVEncoderAudioQualityKey,
                                      nil];

【问题讨论】:

    标签: iphone ios avaudioplayer avaudiorecorder


    【解决方案1】:

    为什么使用 16000 Hz 的采样率?会不会因为采样率不够快而嘈杂?使用 PCM 时,通常的采样率为 44100 Hz。 也许这篇其他帖子可以帮助您: How do I record audio on iPhone with AVAudioRecorder?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-21
      • 2012-01-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多