VoiceAudioData class

Audio data containing base64-encoded audio bytes and mime type.

Annotations
  • @JsonSerializable.new(includeIfNull: false, fieldRename: FieldRename.snake)

Constructors

VoiceAudioData({required String data, required String mimeType})
VoiceAudioData.fromBytes({required List<int> bytes, required String mimeType})
Creates VoiceAudioData by base64-encoding raw audio bytes.
factory
VoiceAudioData.fromJson(Map<String, dynamic> json)
factory

Properties

bytes → Uint8List
Decodes the base64 data into raw audio bytes.
no setter
data → String
Base64-encoded audio bytes.
final
hashCode → int
The hash code for this object.
no setterinherited
mimeType → String
The IANA standard MIME type of the source data (e.g. audio/wav, audio/pcm).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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