AudioCodec class

Common audio codec constants

These constants represent standard audio codec formats supported by Viam audio components (AudioIn and AudioOut).

Example usage:

audioIn.getAudio(
  codec: AudioCodec.mp3,
  durationSeconds: 5.0,
);

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Constants

aac → const String
flac → const String
mp3 → const String
opus → const String
pcm16 → const String
pcm32 → const String
pcm32Float → const String