Skip to main content

Crate voxkit

Crate voxkit 

Source
Expand description

§voxkit — Voice pipeline toolkit

Provides abstractions for building voice-powered apps in Rust:

  • Audio typesAudioChunk, Transcript, Segment
  • STT — Speech-to-text trait + OpenAI backend
  • VAD — Voice activity detection trait + Silero backend
  • TTS — Text-to-speech trait + OpenAI backend
  • Mic — Cross-platform microphone capture via cpal
  • System audio — macOS system audio capture via ScreenCaptureKit
  • Mic mode — macOS microphone mode detection
  • TTS player — Background TTS playback with sentence splitting

All backends are feature-gated. Core types have zero dependencies.

Re-exports§

pub use types::AudioChunk;
pub use types::Segment;
pub use types::Speaker;
pub use types::Transcript;
pub use stt::StreamingSttBackend;
pub use stt::SttBackend;
pub use stt::SttError;
pub use stt::SttInput;
pub use stt::SttStreamError;
pub use vad::VadBackend;
pub use vad::VadConfig;
pub use vad::VadEvent;

Modules§

stt
Speech-to-text trait — provider-agnostic interface.
types
Core audio types — zero external dependencies.
vad
Voice Activity Detection — trait + configuration.