|
sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
|
RAII wrapper for offline speech denoising. More...
#include <cxx-api.h>
Public Member Functions | |
| void | Destroy (const SherpaOnnxOfflineSpeechDenoiser *p) const |
| Destroy the wrapped C handle. | |
| DenoisedAudio | Run (const float *samples, int32_t n, int32_t sample_rate) const |
| Run denoising on a complete waveform. | |
| int32_t | GetSampleRate () const |
| Return the expected input sample rate. | |
| bool | SetVoiceSample (const float *samples, int32_t n, int32_t sample_rate) const |
| Set a PCM voice sample for VoxLock. | |
| Public Member Functions inherited from sherpa_onnx::cxx::MoveOnly< OfflineSpeechDenoiser, SherpaOnnxOfflineSpeechDenoiser > | |
| MoveOnly ()=default | |
| Construct an empty wrapper. | |
| ~MoveOnly () | |
| Destroy the wrapped handle if present. | |
| MoveOnly & | operator= (const MoveOnly &)=delete |
| const SherpaOnnxOfflineSpeechDenoiser * | Get () const |
| Return the wrapped raw pointer without transferring ownership. | |
| const SherpaOnnxOfflineSpeechDenoiser * | Release () |
| Release ownership of the wrapped raw pointer. | |
Static Public Member Functions | |
| static OfflineSpeechDenoiser | Create (const OfflineSpeechDenoiserConfig &config) |
| Create an offline speech denoiser. | |
Additional Inherited Members | |
| Protected Attributes inherited from sherpa_onnx::cxx::MoveOnly< OfflineSpeechDenoiser, SherpaOnnxOfflineSpeechDenoiser > | |
| const SherpaOnnxOfflineSpeechDenoiser * | p_ |
|
static |
| void sherpa_onnx::cxx::OfflineSpeechDenoiser::Destroy | ( | const SherpaOnnxOfflineSpeechDenoiser * | p | ) | const |
| int32_t sherpa_onnx::cxx::OfflineSpeechDenoiser::GetSampleRate | ( | ) | const |
| DenoisedAudio sherpa_onnx::cxx::OfflineSpeechDenoiser::Run | ( | const float * | samples, |
| int32_t | n, | ||
| int32_t | sample_rate ) const |
| bool sherpa_onnx::cxx::OfflineSpeechDenoiser::SetVoiceSample | ( | const float * | samples, |
| int32_t | n, | ||
| int32_t | sample_rate ) const |