AudioParams class
Audio data format.
The SDK calculates the sampling interval through the samplesPerCall, sampleRate, and channel parameters in AudioParams, and triggers the onRecordAudioFrame, onPlaybackAudioFrame, onMixedAudioFrame, and onEarMonitoringAudioFrame callbacks according to the sampling interval. Sample interval (sec) = samplePerCall /(sampleRate × channel). Ensure that the sample interval ≥ 0.01 (s).
- Annotations
-
- @JsonSerializable(explicitToJson: true, includeIfNull: false)
Properties
- channels → int?
-
The number of audio channels, which can be set as either of the following values:
1: (Default) Mono.
2: Stereo.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mode → RawAudioFrameOpModeType?
-
The use mode of the audio data. See RawAudioFrameOpModeType.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRate → int?
-
The audio sample rate (Hz), which can be set as one of the following values:
8000.
(Default) 16000.
32000.
44100
48000
final
- samplesPerCall → int?
-
The number of samples, such as 1024 for the media push.
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