Soundtouch is an open-source audio processing library used to change the pace, tone, and playback rate of audio streams or audio files.
By adjusting the tempo, pitch, and playback rates, you can achieve sound changes similar to those of tomcats. The official explanations for these three parameters are as follows:
Tempo (time period): changes the speed and slowness of audio playback without affecting the sound tone.
Pitch (key indicator): changes the tone while maintaining the original pace (speed;
Playback rate: change the rhythm and tone at the same time.
For more information about the soundtouch open-source project, see soundtouch library.
This article describes how to adjust the tempo and pitch parameters of soundtouch to achieve simple sound changes. More demo programs can be searched on GitHub.
The implementation principle is to first record the audio. During the recording, the audio data is processed according to the parameters set by soundtouch. After the recording is saved, the recording can be played directly, currently, we have not found how to adjust the parameters when playing the recording to achieve the sound change effect.
This example also references the online example. If you are interested, download soundtouchdemo.
Use soundtouch, an open-source project, to implement voice-changing functions similar to Tomcats