Skip to main content

Crate vil_audio

Crate vil_audio 

Source
Expand description

§VIL Audio Transcription (I03)

Infrastructure and traits for audio-to-text transcription. This crate provides the trait definitions, result types, and audio format detection. Actual transcription backends (Whisper, etc.) plug in via the Transcriber trait.

§Quick Start

use vil_audio::{AudioFormat, detect_format, TranscriptConfig};

let wav_header = b"RIFF\x00\x00\x00\x00WAVEfmt ";
assert_eq!(detect_format(wav_header), AudioFormat::Wav);

let config = TranscriptConfig::new().language("en").timestamps(true);

Re-exports§

pub use config::TranscriptConfig;
pub use format::detect_format;
pub use format::AudioFormat;
pub use plugin::AudioPlugin;
pub use result::Segment;
pub use result::Transcript;
pub use semantic::AudioEvent;
pub use semantic::AudioFault;
pub use semantic::AudioFaultType;
pub use semantic::AudioState;
pub use transcriber::NoopTranscriber;
pub use transcriber::TranscribeError;
pub use transcriber::Transcriber;

Modules§

config
format
handlers
VIL pattern HTTP handlers for the audio plugin.
pipeline_sse
SSE pipeline builders for audio transcription operations.
plugin
VilPlugin implementation for audio transcription integration.
result
semantic
Semantic types for audio transcription operations.
transcriber