AudioPropertiesInfo class

Inheritance
  • Object
  • PackClass
  • AudioPropertiesInfo

Constructors

AudioPropertiesInfo({required int linearVolume, required int nonlinearVolume, required List<float> spectrum, required int vad, required double voicePitch, bool? $disableInit})
AudioPropertiesInfo.fromMap(Map<String, dynamic> map)
factory

Properties

$instance → dynamic
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
linearVolume 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 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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spectrum List<float>
@brief Spectrum array
getter/setter pair
vad int
@brief Voice Activity Detection (VAD) result
- 1: Voice activity detected. - 0: No voice activity detected. - -1: VAD not activated.
getter/setter pair
voicePitch 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

Methods

$createInstance(List args) → dynamic
Factory method for creating instances
override
$destroy() → void
inherited
$init(List args) → void
inherited
findOverrideIndices(List args, List<List<int>> indicesList) List<int>
查找重载参数下标列表 @desc android 构造函数存在重载 此方法通过实际传入参数与构造函数参数列表集合的比对,来获取当前实际的需要使用的参数列表
inherited
fn2AndroidClass(Function callback, dynamic nativeClass(), String methodName) → dynamic
与 ts runtime 中的 fn2AndroidClass 功能一致 将 Dart 函数转换为 Android 回调类实例供 Android 侧使用
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
transformToPlatformConstructorArgs(List args, List<int> indices, Map<String, dynamic> typeMap, Map<String, dynamic> enumMap, Map<String, dynamic> classMap, String platformVar) List
实例化参数处理 将 pack 过后的 enum / class 转成 android / ios 平台侧的 enum / class
inherited
updateInstance(dynamic instance) → void
inherited

Operators

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

Static Methods

deepPackedMapValues(Map<String, dynamic> map) → dynamic
mapMemberToConstructorParams(Map json) Map<String, dynamic>