client sdk
This commit is contained in:
+3
-4
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user