改变音调:
soundPool = new SoundPool(50, AudioManager.STREAM_MUSIC, 0);
/** Sound ID for Later handling of sound pool **/
soundId = soundPool.load(this, R.raw.sounds, 1);
玩:
streamId = soundPool.play(soundId, 1, 1, 1, 3, pitch);
如何保存文件?
最佳答案
我认为您无法使用SoundPool做到这一点,因为它不允许您在字节级别上工作。我认为您想研究使用AudioTracks.
关于android - 更改声音文件的音调并保存到mp3文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34738573/