问题描述
- soundtouch 在android中运用,录音文件可以变速,mp3不能变速
-
用soundStreth.pocess(String infile,String outfile, int rate,int tempto,int fitch);
这个方法,对wav有用,但是对mp3不起作用。查询官网文件
SoundStretch features:
1 Reads & writes .wav audio files
2 Allows very broad parameter adjustment ranges:
Tempo & Playback Rate adjustable in range -95% .. +5000%
The sound Pitch (key) adjustable in range -60 .. +60 semitones (+- 5 octaves).
3 Beats-Per-Second (BPM) detection that can adjust tempo to match with the desired BPM rate.
4 Full source codes available
5 Command-line interface allows using the SoundStretch utility for processing .wav audio files in batch mode
6 Supports processing .wav audio streams through standard input/output pipes
6 SoundStretch uses the SoundTouch library routines for the audio procesing.我想知道是否有其他的方法,可以使mp3也可以变速。
解决方案
将mp3 decode成pcm再编码成wav进行播放。
时间: 2024-08-02 18:01:24