AudioChunk class
A chunk of generated audio from the music model.
- Annotations
-
- @JsonSerializable.new(includeIfNull: false)
Constructors
- AudioChunk({String? data, String? mimeType, LiveMusicSourceMetadata? sourceMetadata})
-
AudioChunk.fromJson(Map<
String, dynamic> json) -
factory
Properties
- bytes → Uint8List?
-
Decoded raw audio bytes, or null if data is null.
no setter
- data → String?
-
Base64-encoded raw audio bytes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mimeType → String?
-
MIME type of the audio chunk.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceMetadata → LiveMusicSourceMetadata?
-
Metadata about prompts and config used to generate this chunk.
final
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