CustomVoiceSample class

Configuration for a custom voice sample used for voice cloning.

Constructors

CustomVoiceSample({String? consentAudioGcsUri, String? name, String? previewAudioContent, String? previewText, String? voiceInstruction, String? voiceInstructionMode, String? voiceSampleGcsUri, List<CustomVoiceSampleWarning>? warnings})
CustomVoiceSample.fromJson(Map json_)

Properties

consentAudioGcsUri ↔ String?
Consent audio for voice cloning.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
name ↔ String?
The user-defined name for the custom voice sample.
getter/setter pair
previewAudioContent ↔ String?
Synthesized preview audio for custom voice, formatted as canonical WAV (LINEAR16, 24kHz, 16-bit, mono).
getter/setter pair
previewAudioContentAsBytes ↔ List<int>
getter/setter pair
previewText ↔ String?
Text for synthesizing preview audio for custom voice.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
voiceInstruction ↔ String?
Natural language instructions for voice style, tone, pacing, or pronunciation.
getter/setter pair
voiceInstructionMode ↔ String?
Instruction mode for the voice sample.
getter/setter pair
voiceSampleGcsUri ↔ String?
The Cloud Storage URI to the audio sample for voice cloning.
getter/setter pair
warnings ↔ List<CustomVoiceSampleWarning>?
Warning messages encountered during voice clone processing (e.g. low audio level).
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited