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
//! # kokoroxide
//!
//! A high-performance Rust implementation of Kokoro TTS (Text-to-Speech) synthesis,
//! leveraging ONNX Runtime for efficient neural speech generation.
//!
//! ## Example
//!
//! ```no_run
//! use kokoroxide::{KokoroTTS, TTSConfig, load_voice_style};
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Configure and initialize Kokoro TTS
//! let config = TTSConfig::new("path/to/model.onnx", "path/to/tokenizer.json");
//! let tts = KokoroTTS::with_config(config)?;
//!
//! // Load a voice style
//! let voice = load_voice_style("path/to/voice.bin")?;
//!
//! // Generate speech
//! let audio = tts.speak("Hello, world!", &voice)?;
//!
//! // Save to file
//! audio.save_to_wav("output.wav")?;
//! # Ok(())
//! # }
//! ```
// Internal modules - not exposed to library users
// Public API modules
/// Kokoro TTS synthesis engine and related types
// Re-export main types for convenience
pub use ;
// Re-export ONNX GraphOptimizationLevel for configuration
pub use GraphOptimizationLevel;