setTTSVoiceByLanguage static method

GemError setTTSVoiceByLanguage(
  1. Language language
)

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

Implementation

static GemError setTTSVoiceByLanguage(Language language) {
  final OperationResult resultString = staticMethod(
    'SdkSettings',
    'setVoice',
    args: language,
  );

  return GemErrorExtension.fromCode(resultString['result']);
}