问题
I am working on iphone app, I required multiple voices , e.g. Adult voice become children voice.
How can i implement it, I am using AVFoundation for playing voice.
Plz provide some coded.
回答1:
To implement what you need, you need pitch shifting capabilities. You can use OpenAL to achieve this.
Specifically, in OpenAL, to set pitch you do
alSourcef(source, AL_PITCH, 1.2f);
where source is the id of the OpenAL sound source.
If you are new to OpenAL, get started here: http://benbritten.com/2008/11/06/openal-sound-on-the-iphone/
来源:https://stackoverflow.com/questions/12745964/playback-different-voices