Skip to main content

Crate decibri_rs

Crate decibri_rs 

Source
Expand description

Official alias crate for decibri.

decibri-rs re-exports the full public API of the decibri crate. It exists so the -rs name points at the canonical package. New projects should depend on decibri directly.

Modules§

denoise
Single-channel speech enhancement (denoise) for the capture path.
device
Audio device discovery and selection.
error
gain
Adaptive level control for the capture chain.
microphone
Microphone capture: open an input device and pull AudioChunks from it.
sample
speaker
Speaker playback: open an output device and push f32 samples to it.
vad
Voice Activity Detection using the Silero VAD v5 ONNX model.

Structs§

AudioChunk
A chunk of captured audio data.
Microphone
An input device you capture audio from.
MicrophoneConfig
Configuration for a microphone capture session.
MicrophoneInfo
Information about a microphone (audio input) device.
MicrophoneStream
An open capture stream you pull AudioChunks from.
SileroVad
Silero VAD v5 inference engine.
Speaker
An output device you play audio to.
SpeakerConfig
Configuration for audio output.
SpeakerInfo
Information about a speaker (audio output) device.
SpeakerSink
A cloneable, Send handle to a running SpeakerStream’s sample channel and drain state.
SpeakerStream
An open playback stream you push f32 samples to.
VadConfig
Configuration for Silero VAD.
VadResult
Result of processing an audio chunk through Silero VAD.

Enums§

DecibriError
Errors produced by decibri operations.
DenoiseModel
Single-channel speech-enhancement (denoise) model selector.
DeviceSelector
How to select an audio device.
HighpassFilter
High-pass filter selector for the capture chain.

Constants§

CPAL_VERSION
Resolved cpal version (major.minor) extracted at build time from the crate’s Cargo.toml.

Functions§

input_devices
List the available microphone (input) devices.
output_devices
List the available speaker (output) devices.