How to let the app automatically set the voice for TTS without user intervention.

Hi everybody.
How to let the app automatically set the voice for TTS without user intervention?
I have searched the forum and only see how to use Activity_Starter however this way requires user intervention.