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

查看:969
本文介绍了使用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天全站免登陆