client sdk

This commit is contained in:
valenti
2026-10-21 17:56:04 +01:00
parent 1cafe3dd3c
commit d6bc2437c9
237 changed files with 5227 additions and 1019 deletions
+3 -4
View File
@@ -38,10 +38,9 @@ pub struct KokoroTts {
impl KokoroTts {
pub fn new(config: &Config) -> Self {
let endpoint = std::env::var("KOKORO_URL")
.unwrap_or_else(|_| "http://localhost:8880".to_string());
let voice = std::env::var("KOKORO_VOICE")
.unwrap_or_else(|_| "af_heart".to_string());
let endpoint =
std::env::var("KOKORO_URL").unwrap_or_else(|_| "http://localhost:8880".to_string());
let voice = std::env::var("KOKORO_VOICE").unwrap_or_else(|_| "af_heart".to_string());
info!(endpoint = %endpoint, voice = %voice, "Kokoro TTS plugin initialized");
Self {
endpoint,