简体   繁体   English

AVAudioRecorder设置录制开始时间

[英]AVAudioRecorder setting recording start time

I am using AVAudioRecorder for recording sound in my ios app. 我正在使用AVAudioRecorder在ios应用程序中录制声音。 I want that if user moves the UISlider object to 2 seconds and press Record button then after saving the recording file and playing it, user should hear the recording after a pause of 2 seconds. 我希望如果用户将UISlider对象移至2秒并按“记录”按钮,然后在保存记录文件并播放后,用户应在2秒钟的暂停后听到记录。 How can I achieve this functionality? 如何实现此功能? Can anyone please help? 谁能帮忙吗?

Best Regards 最好的祝福

You can add 2 second silence (please consider slider value is 2) to your Audio file starting section 您可以在音频文件的开始部分添加2秒的静音时间 (请注意,滑块值为2)

To do this please go through this link 为此,请通过此链接

The below links also may help you to achieve the goal. 以下链接也可以帮助您实现目标。

avaudioplayer-append-recording-to-file avaudioplayer-追加记录到文件

trim-audio-with-ios 用iOS修剪音频

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM