如何使用 ffmpeg 更改音频速度和音高个性? [英] How to change audio tempo and pitch individuality using ffmpeg?

查看:34
本文介绍了如何使用 ffmpeg 更改音频速度和音高个性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设法在我的 android 项目中使用 ffmpeg 和 AudioTrack 类播放音频文件.我可以使用 AudioTrack 类的 setRate 方法更改音频的速度.但它也会改变音频的音高,我只想改变音频的速度,但我在网上找不到解决方案.

I have managed to play audio files using ffmpeg and AudioTrack class in my android project. I can change the speed of audio using AudioTrack class setRate method. But it also change the pitch of audio, I want to change only Tempo of audio but I found no solution on net.

任何人都可以帮助我,因为没有对此的支持.

anyone can please help me on this as there is no support for this.

推荐答案

解决方案:我试过 SoundTouch 库.我为 android 编译成功但后来我没有使用它的功能,因为我不知道如何使用这个库来加载音频.

Solution : I tried SoundTouch library. I compiled it successfully for android but then I failed to use its function because I don't know how to use this library to load audio.

但在那之后我尝试了名为 Sonic 的库.它基本上用于语音,因为它使用 PSOLA 算法来改变音高和速度.不过没关系.

But after that I tried library called Sonic. Its basically for Speech as it use PSOLA algo to change pitch and tempo. But its ok.

这篇关于如何使用 ffmpeg 更改音频速度和音高个性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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