setVoiceByPath static method

GemError setVoiceByPath(
  1. 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

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']);
}