setVoiceByPath static method
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
- GemError.success on success, otherwise see GemError for other values.
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']);
}