clone method
Creates a shallow clone of this TextToSpeechOptions.
rawRepresentationFactory is not deep-cloned — the same reference is shared.
Implementation
TextToSpeechOptions clone() => TextToSpeechOptions(
modelId: modelId,
voiceId: voiceId,
language: language,
audioFormat: audioFormat,
speed: speed,
pitch: pitch,
volume: volume,
rawRepresentationFactory: rawRepresentationFactory,
additionalProperties:
additionalProperties != null ? Map.of(additionalProperties!) : null,
);