gpt4 book ai didi

iPhone AVAudioRecorder,AudioQueueServices,如何在检测到声音时自动录制音频

转载 作者:可可西里 更新时间:2023-11-01 05:48:22 24 4
gpt4 key购买 nike

我正在使用 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 麦克风如何检测音量的教程,我试过将这两个教程加在一起,但我根本无法让代码工作

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

有什么建议吗?

谢谢

最佳答案

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

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

关于iPhone AVAudioRecorder,AudioQueueServices,如何在检测到声音时自动录制音频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4182764/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com