AVAudioRecorder规范音量 [英] AVAudioRecorder normalize volume

查看:86
本文介绍了AVAudioRecorder规范音量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可以录制音频的应用程序.我想知道如何增加增益.有没有办法以某种方式标准化音频或放大音频?

I've got an app that records audio. I'm wondering how I can increase the gain. is there a way to normalize the audio or amplify it somehow?

谢谢,豪伊

推荐答案

好像我找到了解决方案.根据文档,AVAudioPlayer的音量可以在0.0到1.0之间.显然可以将其设置为大于1.0的值.通过增加音量,我可以达到相同的期望结果.如果未将其标准化,则增益会增加.

Looks like I found a solution. According to the documentation the AVAudioPlayer volume can be between 0.0 and 1.0. Apparently it can be set to a value greater than 1.0. By increasing the volume I was able to achieve the same desired result. While it's not normalized, the gain is increased.

这篇关于AVAudioRecorder规范音量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆