setTTSVoiceByLanguage static method
- Language language
Set the current TTS (computer) voice used for text-to-speech instructions.
The best voice is selected based on the provided language.
Parameters
- IN language The voice language.
Returns
- GemError.success on success, otherwise see GemError for other values.
Implementation
static GemError setTTSVoiceByLanguage(Language language) {
final OperationResult resultString = staticMethod(
'SdkSettings',
'setVoice',
args: language,
);
return GemErrorExtension.fromCode(resultString['result']);
}