LlamaAudioContent class
A part of a message containing audio data for speech-to-text models.
- Inheritance
-
- Object
- LlamaContentPart
- LlamaAudioContent
Constructors
- LlamaAudioContent({Float32List? samples, Uint8List? bytes, String? path})
-
Creates an audio content part.
const
Properties
- bytes → Uint8List?
-
Encoded audio bytes (for example WAV/MP3).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- path → String?
-
Local filesystem path to the audio file (e.g., WAV, MP3).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- samples → Float32List?
-
Raw PCM Float32 audio samples.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the content part to a JSON object.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited