AudioFrame class
One PCM frame pushed into a live stream opened by stt.openStream or
vad.openStream. Samples must match the format the stream was opened
with; live streams take raw PCM only.
Constructors
- AudioFrame({required Uint8List samples, required int sampleCount, int? timestampMs})
-
Wrap one PCM frame.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleCount → int
-
Sample count carried by samples.
final
- samples → Uint8List
-
Raw PCM bytes in the stream's established encoding.
final
- timestampMs → int?
-
Capture timestamp, when the caller tracks one.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited