ailiaSpeechSetSilentThreshold method
- Pointer<
AILIASpeech> net, - double silent_threshold,
- double speech_sec,
- double no_speech_sec
~japanese @brief 無音判定の閾値を設定します。 @param net ネットワークオブジェクトポインタ @param silent_threshold 有音判定のしきい値 @param speech_sec 有音区間の時間(秒数) @param no_speech_sec 無音区間の時間(秒数) @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す @details 有音区間が一定以上存在する場合に無音区間が一定時間以上続いた場合に30secを待たずに滞留しているバッファを処理します。
~english @brief Set silent threshold. @param net A network instance pointer @param silent_threshold volume threshold @param speech_sec speech time @param no_speech_sec no_speech time @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details 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,
);
}