gpt4 book ai didi

android - 更改声音文件的音调并保存到mp3文件

转载 作者:行者123 更新时间:2023-12-03 01:56:43 25 4
gpt4 key购买 nike

改变音调:

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com