No description
Find a file
2025-06-03 15:35:17 +02:00
assets add play pause 2025-06-03 15:35:17 +02:00
src add play pause 2025-06-03 15:35:17 +02:00
.gitignore Views seperation 2025-06-03 14:51:23 +02:00
Cargo.lock no config, kokoros only, no chunks 2025-06-02 13:02:26 +02:00
Cargo.toml no config, kokoros only, no chunks 2025-06-02 13:02:26 +02:00
LICENSE add readme 2025-06-02 15:18:59 +02:00
README.md add play pause 2025-06-03 15:35:17 +02:00

Simple TTS UI

My tts ui program for unix

Made this program as an alternative to my bash script for text chunking and sequential streaming

Installation

Dependencies: hexgrad/Kokoro or lucasjinreal/Kokoros and a player aplay/paplay/play/ffplay/mpg123

Build dependencies: eframe, egui, atty, tempfile

Set path for TTS:

impl Default for KokoroConfig {
    fn default() -> Self {
        let home = std::env::var("HOME").unwrap_or_else(|_| ".".to_string());
        Self {
            exec_path: format!("{}/kokoros/target/release/koko", home),
            model_path: format!("{}/kokoros/checkpoints/kokoro-v1.0.onnx", home),
            voice_data: format!("{}/kokoros/voices-v1.0.bin", home),
            speed: 1.1,
            voice_style: "af_heart".to_string(),
            chunking: ChunkingConfig::default(),
        }
    }
}

Build this app with cargo build --release

Then run echo "Hello, world" | ./target/release/ttsui

Screenshots:

main view settings