1#![doc = include_str!("../README.md")]
4
5mod auth;
6mod connection;
7mod edge_tts;
8mod error;
9mod event;
10mod protocol;
11mod rate;
12mod ssml;
13mod tts;
14mod voice_cache;
15mod voice_fetch;
16mod voice_table;
17mod voice_table_data;
18mod voice_types;
19
20pub use edge_tts::EdgeTts;
21pub use error::TtsError;
22pub use event::TtsEvent;
23pub use tts::Engine;
24pub use voice_cache::{load_voice_cache, save_voice_cache};
25pub use voice_fetch::{list_voices, spawn_voice_fetch};
26pub use voice_table::{
27 normalize_lang, voice_label, voices_for_lang, DEFAULT_VOICE_BN, DEFAULT_VOICE_EN,
28};
29pub use voice_types::{set_dynamic_voices, VoiceEntry, VoiceInfo};
30
31pub use rate::{rate_percent, rate_string, RATE_BASELINE_OFFSET};
32
33#[doc(hidden)]
34pub use auth::{civil_utc, date_string, random_hex, sec_ms_gec};
35
36pub fn init_tls() {
42 let _ = rustls::crypto::ring::default_provider().install_default();
44}