原理很简单,就是 Hook AudioRecord.read() 然后对数据进行处理。
源码 https://github.com/gnehsoah/XVoiceChanger
音频处理是用SoundTouch。
可改 3 个参数:
Tempo (time stretch): Changes the sound to play at faster or slower tempo than originally without affecting the sound pitch.
Pitch (key) : Changes the sound pitch or key while keeping the original tempo (speed).
Playback Rate : Changes both tempo and pitch together as if a vinyl disc was played at different RPM rate.
