AudioConfig class
Live streaming audio configuration.
- Annotations
-
- @JsonSerializable()
Constructors
- AudioConfig({int bitrate = 128000, Channel channel = Channel.stereo, SampleRate sampleRate = SampleRate.kHz_44_1, bool enableEchoCanceler = true, bool enableNoiseSuppressor = true})
- Creates a new AudioConfig instance.
-
AudioConfig.fromJson(Map<
String, dynamic> json) -
Creates a AudioConfig from a
json
map.factory
Properties
- bitrate ↔ int
-
The video bitrate in bps
getter/setter pair
- channel ↔ Channel
-
The number of audio channels
Only available on Android
getter/setter pair
- enableEchoCanceler ↔ bool
-
Enable the echo cancellation
Only available on Android
getter/setter pair
- enableNoiseSuppressor ↔ bool
-
Enable the noise suppressor
Only available on Android
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRate ↔ SampleRate
-
The sample rate of the audio capture
Only available on Android
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Creates a json map from a AudioConfig.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited