setSilentThreshold

fun setSilentThreshold(silentThreshold: Float, speechSec: Float, noSpeechSec: Float): Int

Sets the silent threshold of the voice activity detection.

Return

0 if successful, otherwise an error code.

Parameters

silentThreshold

Threshold of the VAD output to detect a speech (0.0 to 1.0).

speechSec

Duration in seconds to detect the start of a speech.

noSpeechSec

Duration in seconds to detect the end of a speech.