TRTCAudioVolumeEvaluateParams class
Volume evaluation and other related parameter settings.
Constructors
- TRTCAudioVolumeEvaluateParams({bool enablePitchCalculation = false, bool enableSpectrumCalculation = false, bool enableVadDetection = false, int interval = 300})
Properties
- enablePitchCalculation ↔ bool
-
- Field description: Whether to enable local vocal frequency calculation.
getter/setter pair - enableSpectrumCalculation ↔ bool
-
- Field description: Whether to enable sound spectrum calculation.。
getter/setter pair - enableVadDetection ↔ bool
-
- Field description: Whether to enable local voice detection.。
- Note: Call before startLocalAudio
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- interval ↔ int
-
- Field description: Set the trigger interval of the onUserVoiceVolume callback, the unit is milliseconds, the minimum interval is 100ms, if it is less than or equal to 0, the callback will be closed.
- Value: Recommended value: 300, in milliseconds.
- When the interval is greater than 0, the volume prompt will be enabled by default, no additional setting is required.
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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