AudioPcm class

24 kHz signed 16-bit PCM audio format.

type == "audio/pcm". Only rate: 24000 is currently supported by the API.

Inheritance
Annotations
  • @immutable

Constructors

AudioPcm({int? rate})
Creates an AudioPcm.
const
AudioPcm.fromJson(Map<String, dynamic> json)
Creates from JSON.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
rate int?
Sample rate. Always 24000 when present.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The audio format discriminator.
no setteroverride

Methods

copyWith({Object? rate = unsetCopyWithValue}) AudioPcm
Returns a copy of this AudioPcm with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
override
toString() String
A string representation of this object.
override

Operators

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