setTTSVoiceByLanguage static method
Selects the default TTS (computer) voice by language.
The SDK will try to pick the best available voice that matches the
provided language.
Parameters
language: the preferred voice language.
Returns
- GemError: GemError.success on success, otherwise an error code describing why the voice could not be set.
Implementation
static GemError setTTSVoiceByLanguage(Language language) {
final OperationResult resultString = staticMethod(
'SdkSettings',
'setVoice',
args: language,
);
return GemErrorExtension.fromCode(resultString['result']);
}