iOS:增加已录制音频的音量 [英] iOS: increase volume of recorded audio

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

问题描述

是否可以处理音频并增加其基本音量?

Is it possible to process the audio and increase its base volume?

请不要建议增加.volume属性.我正在寻找以编程方式增加已录制音频的音量并以大音量保存该音频的方法.

Please do not suggest to increase .volume property. I am looking for way to increase volume of already recorded audio programmatically and save that audio with big volume level.

我正在从扬声器录音.

推荐答案

有两种方法可以做到这一点.归一化和压缩是我想到的两个.请参阅链接以获取更好的解释.

There are a couple ways of doing this. Normalization and Compression are the two that come to mind. See the links for better explanations.

  • 音频归一化-计算文件中当前最大的样本,然后应用每个样本的增益相等,因此最大音量的样本现在处于最大音量.

  • Audio Normalization - calculate the current loudest sample in the file, and then apply equal gain to every sample such that the loudest sample is now at max volume.

动态范围压缩-减少一个或一组样本的增益当它们超过阈值时,然后将增益应用于整个文件以补偿这种减少.

Dynamic-range Compression - reduce the gain of a sample or group of samples when they exceed a threshold, and then apply gain to the whole file to compensate for this reduction.

iOS API可能已经可以做到这一点,尽管我不确定.希望这可以给您一些帮助.

iOS APIs may have a way of doing these already, though I'm not sure. Hopefully this gives you some rope to grab onto.

这篇关于iOS:增加已录制音频的音量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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