AudioPropertiesInfo class
- Inheritance
-
- Object
- NativeClass
- AudioPropertiesInfo
Properties
-
$resource
→ NativeResource
-
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
linearVolume
↔ FutureOr<int?>
-
@brief linear volume. The value is in linear relation to the original volume. The higher the value, the higher the volume. The range is
0,255.
- 0, 25: Near silence
- 26, 75: Low volume
- 76, 204: Medium volume
- 205, 255: High volume
getter/setter pair
-
nonlinearVolume
↔ FutureOr<int?>
-
@brief non-linear volume in dB. The value is in proportion to the log value of the original volume. You can use the value to recognize the Active Speaker in the room. The range is
-127, 0.
- -127, -60: Near silence
- -59, -40: Low volume
- -39, -20: Medium volume
- -19, 0: High volume
getter/setter pair
-
ready
→ Future<void>
-
Whether the instance is initialized
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
spectrum
↔ FutureOr<Array<float>?>
-
@brief Spectrum array
getter/setter pair
-
vad
↔ FutureOr<int?>
-
@brief Voice Activity Detection (VAD) result
- 1: Voice activity detected.
- 0: No voice activity detected.
- -1: VAD not activated.
getter/setter pair
-
voicePitch
↔ FutureOr<double?>
-
@brief The vocal pitch of the local user, in Hertz.
When the following two conditions are met at the same time, the vocal pitch of the local user will be returned:
- Calls enableAudioPropertiesReport{@link #RTCEngine#enableAudioPropertiesReport}, and sets the value of enableVoicePitch to true.
- The local user's voice is included in the locally captured audio data.
In other situations, 0 will be returned.
getter/setter pair