RAII wrapper for voice activity detection.
More...
#include <cxx-api.h>
|
| static VoiceActivityDetector | Create (const VadModelConfig &config, float buffer_size_in_seconds) |
| | Create a VAD instance.
|
The wrapper collects detected speech segments internally. Use IsEmpty(), Front(), and Pop() to consume them.
Definition at line 1750 of file cxx-api.h.
◆ AcceptWaveform()
| void sherpa_onnx::cxx::VoiceActivityDetector::AcceptWaveform |
( |
const float * | samples, |
|
|
int32_t | n ) const |
◆ Clear()
| void sherpa_onnx::cxx::VoiceActivityDetector::Clear |
( |
| ) |
const |
◆ Create()
| VoiceActivityDetector sherpa_onnx::cxx::VoiceActivityDetector::Create |
( |
const VadModelConfig & | config, |
|
|
float | buffer_size_in_seconds ) |
|
static |
◆ Destroy()
◆ Flush()
| void sherpa_onnx::cxx::VoiceActivityDetector::Flush |
( |
| ) |
const |
◆ Front()
| SpeechSegment sherpa_onnx::cxx::VoiceActivityDetector::Front |
( |
| ) |
const |
◆ FrontPtr()
| std::shared_ptr< SpeechSegment > sherpa_onnx::cxx::VoiceActivityDetector::FrontPtr |
( |
| ) |
const |
◆ IsDetected()
| bool sherpa_onnx::cxx::VoiceActivityDetector::IsDetected |
( |
| ) |
const |
◆ IsEmpty()
| bool sherpa_onnx::cxx::VoiceActivityDetector::IsEmpty |
( |
| ) |
const |
◆ Pop()
| void sherpa_onnx::cxx::VoiceActivityDetector::Pop |
( |
| ) |
const |
◆ Reset()
| void sherpa_onnx::cxx::VoiceActivityDetector::Reset |
( |
| ) |
const |
The documentation for this class was generated from the following file: