ailiaSpeechSetSilentThreshold method

int ailiaSpeechSetSilentThreshold(
  1. Pointer<AILIASpeech> net,
  2. double silent_threshold,
  3. double speech_sec,
  4. double no_speech_sec
)

Set silent threshold.

Parameters:

  • net: A network instance pointer
  • silent_threshold: volume threshold (Standard value 0.5)
  • speech_sec: speech time (sec) (Standard value 1.0)
  • no_speech_sec: no_speech time (sec) (Standard value 1.0)

Returns:

If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

If there are more than a certain number of sounded sections, and if the silent section lasts for a certain amount of time or more, the remaining buffer is processed without waiting for 30 seconds.

Implementation

int ailiaSpeechSetSilentThreshold(
  ffi.Pointer<AILIASpeech> net,
  double silent_threshold,
  double speech_sec,
  double no_speech_sec,
) {
  return _ailiaSpeechSetSilentThreshold(
    net,
    silent_threshold,
    speech_sec,
    no_speech_sec,
  );
}