setVoiceByPath static method
- String path
Set the current voice by specifying the absolute path to the voice file.
Parameters
- IN path The absolute path to the voice file.
Returns
- GemError.success on success, otherwise see GemError for other values.
Throws
- An exception if it fails.
Implementation
static GemError setVoiceByPath(String path) {
final OperationResult resultString = objectMethod(
0,
'SdkSettings',
'setVoiceByPath',
args: <String, String>{'filePath': path},
);
return GemErrorExtension.fromCode(resultString['result']);
}