With AVSpeechSynthesizer, can you change the way words or phrases are pronounced?
Are there any methods or undocumented tricks to change the way words or phrases in the AVSpeechSynthesizer language? I am not asking about changing the pitch of the whole sentence or the speed at which he speaks. I want to change the vocal inflection or intonation of certain parts of a sentence.
If not, what are some SDKs or APIs that allow you to do this?
source to share
An AVSpeechUtterance
allows you to set speed, pitch, etc. You can create small utterances for, say, each word, and pass them to AVSpeechSynthesizer
, which maintains a queue of utterances to speak. (In other words, you can name speakUtterance:
for all of your utterances and he will speak them one by one.)
For an example of this method, check out this blog post . Note that there is little control here; for example, you cannot control kink, but you can control pauses, stride, etc. based on words.
source to share