opencrabs 0.5.1

The autonomous, self-improving AI agent. Single Rust binary. Every channel. Recommended: the 40MB prebuilt binary for macOS, Linux and Windows: https://github.com/adolfousier/opencrabs/releases
//! Voice Processing Module
//!
//! Speech-to-text and text-to-speech services.
//! Supports:
//! - API-based STT (Groq Whisper, OpenAI-compatible, Voicebox)
//! - Local STT (whisper.cpp / rwhisper)
//! - API-based TTS (OpenAI, OpenAI-compatible, Voicebox)
//! - Local TTS (Piper)
//!
//! This file is declarations only — no function definitions live here
//! (CONTRIBUTING.md); [`availability`] holds the local-backend probes.

mod availability;
pub mod openai_stt;
pub mod openai_tts;
pub mod voicebox_stt;
pub mod voicebox_tts;

#[cfg(feature = "local-stt")]
pub mod local_whisper;

#[cfg(feature = "local-tts")]
pub mod local_tts;

pub mod text_cleanup;

pub(crate) mod service;

pub use service::{synthesize, synthesize_speech, transcribe, transcribe_audio};

#[cfg(feature = "local-stt")]
pub use service::{preload_local_whisper, transcribe_audio_local};

pub use availability::{local_stt_available, local_tts_available};