Skip to main content

Crate sherpa_onnx_sys

Crate sherpa_onnx_sys 

Source
Expand description

Raw FFI bindings for sherpa-onnx.

§Environment variables

The build script (build.rs) recognises the following environment variables, all of which are optional:

VariablePurpose
SHERPA_ONNX_LIB_DIRPath to a directory that already contains the
pre-built native libraries (.so / .dylib / .dll / .a).
When set, the build script skips downloading and uses these
libraries directly.
SHERPA_ONNX_ARCHIVE_DIRPath to a directory that contains
pre-downloaded archive files (.tar.bz2 or .xcframework.zip).
When set, the build script copies the archive from this directory
instead of downloading it from the internet. The archive must have
the same filename that would normally be downloaded (e.g.
sherpa-onnx-v1.13.8-linux-x64-shared-lib.tar.bz2).

Re-exports§

pub use audio_tagging::*;
pub use kws::*;
pub use offline_asr::*;
pub use offline_punctuation::*;
pub use offline_speaker_diarization::*;
pub use online_asr::*;
pub use online_punctuation::*;
pub use resampler::*;
pub use speaker_embedding::*;
pub use speech_denoiser::*;
pub use spoken_language_identification::*;
pub use tts::*;
pub use vad::*;
pub use wave::*;

Modules§

audio_tagging
kws
offline_asr
offline_punctuation
offline_speaker_diarization
online_asr
online_punctuation
resampler
speaker_embedding
speech_denoiser
spoken_language_identification
tts
vad
wave

Functions§

SherpaOnnxFileExists⚠
SherpaOnnxGetGitDate⚠
SherpaOnnxGetGitSha1⚠
SherpaOnnxGetOnnxruntimeVersionStr⚠
SherpaOnnxGetVersionStr⚠