【问题标题】:iPhone AVAudioRecorder, AudioQueueServices, how to auto record audio when sound is detectediPhone AVAudioRecorder,AudioQueueServices,检测到声音时如何自动录制音频
【发布时间】:2010-11-15 08:57:36
【问题描述】:

我正在使用 AVAudioRecorder 和 AudioQueueServices 从 iphone 的麦克风录制音频,但我想在检测到声音后自动录制声音,因此无需按下录制按钮

我看过一个关于 AVFoundation 的教程: www.iphoneam.com/blog/index.php?title=using-the-iphone-to-record-audio-a-guide&more=1&c=1&tb=1&pb=1 还有一个解释 iphone mic 如何检测声级的教程,我尝试将这两个教程加在一起,但我根本无法让代码工作

不知道该怎么做,我不确定我是否采取了错误的方法

有什么建议吗?

谢谢

【问题讨论】:

    标签: iphone ios audio


    【解决方案1】:

    查看本教程:http://mobileorchard.com/tutorial-detecting-when-a-user-blows-into-the-mic/

    使用上述教程,我得到了类似的工作。我有一个 AVAudioRecorder 监控麦克风的音量,另一个在达到某个阈值时记录麦克风的输入。

    【讨论】:

      猜你喜欢
      • 2010-11-03
      • 1970-01-01
      • 2013-08-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-14
      • 1970-01-01
      相关资源
      最近更新 更多