ZegoSoundLevelConfig class

启动声浪监控的配置

支持版本:2.10.0 及以上。 详情描述:用于 startSoundLevelMonitor 函数,其中的 enableVAD 参数用于设置声浪回调是否检测 VAD,开启后结果将从 onCapturedSoundLevelInfoUpdateonRemoteSoundLevelInfoUpdate 回调中体现。 业务场景:开发者需要判断用户说话音量是否太小时,可开启 VAD 声音检测。 注意事项:VAD 算法有性能开销,建议按需设置。

Constructors

ZegoSoundLevelConfig(int millisecond, bool enableVAD)

Properties

enableVAD ↔ bool
设置声浪回调是否包含 VAD 检测结果。
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
millisecond ↔ int
声浪的监控时间周期,单位为毫秒,取值范围 100, 3000。默认 100 ms。
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

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