1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//! Speech (TTS / STT) provider clients for the Brainwires Agent Framework.
//!
//! Standalone so consumers (typically `brainwires-hardware`'s audio surface
//! and the chat-pwa wasm bridge) can pull just the speech clients without
//! dragging in the LLM provider stack (candle / llama.cpp / huggingface,
//! aws-sigv4, gcp_auth, …) that lives in `brainwires-provider`.
//!
//! ## Native cloud providers (`native` feature)
//! - [`azure_speech`] — Microsoft Azure Cognitive Services Speech.
//! - [`cartesia`] — Cartesia TTS.
//! - [`deepgram`] — Deepgram TTS / STT.
//! - [`elevenlabs`] — ElevenLabs TTS / STT.
//! - [`fish`] — Fish Audio TTS / ASR.
//! - [`google_tts`] — Google Cloud Text-to-Speech.
//! - [`murf`] — Murf AI TTS.
//!
//! ## Browser-native (`web-speech` feature, `wasm32` only)
//! - `web_speech` — `speechSynthesis` (TTS) and `SpeechRecognition` (STT).
/// Token-bucket rate limiter shared by every native provider.
///
/// Duplicated from `brainwires-provider::rate_limiter` rather than
/// imported across crates — both copies are 146 lines of standalone
/// stdlib-only code, and avoiding the cross-crate edge keeps this crate
/// independent of the LLM-providers stack.
/// Browser-native TTS (`speechSynthesis`) and STT (`SpeechRecognition`).
///
/// Compiled only on `wasm32` with the `web-speech` feature enabled.
// ── Re-exports ─────────────────────────────────────────────────────────
pub use AzureSpeechClient;
pub use CartesiaClient;
pub use DeepgramClient;
pub use ElevenLabsClient;
pub use FishClient;
pub use GoogleTtsClient;
pub use MurfClient;