setVoiceByPath static method

GemError setVoiceByPath(
  1. String path, {
  2. Language? language,
})

Set the current voice by specifying the absolute path to the voice file.

Parameters

  • IN path The absolute path to the voice file.
  • IN language The desired voice language. Used only in the case of TTS computer voice for accurate match in the underlying OS support

Returns

Implementation

static GemError setVoiceByPath(String path, {Language? language}) {
  final OperationResult resultString = staticMethod(
    'SdkSettings',
    'setVoiceByPath',
    args: <String, dynamic>{
      'filePath': path,
      'lang': language ?? Language(name: 'noLang'),
    },
  );

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