Russian narration for the Enshrouded notes: mod 0.4.0, installer, generation pipeline
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"""TTS backends: speak(items=[(text, out_wav)], seed) in the cloned narrator voice.
|
||||
|
||||
local — qwen-tts in this process on a CUDA GPU (any machine, the default);
|
||||
media_node — an MCP server with generate_speech (the author's home GPU node; see media_node.py).
|
||||
"""
|
||||
|
||||
|
||||
def backend(cfg, ref_wav, ref_text):
|
||||
name = cfg.get("tts", "backend", "local")
|
||||
if name == "local":
|
||||
from .local import LocalTTS
|
||||
return LocalTTS(cfg, ref_wav, ref_text)
|
||||
if name == "media_node":
|
||||
from .media_node import MediaNodeTTS
|
||||
return MediaNodeTTS(cfg)
|
||||
raise SystemExit(f"unknown tts.backend {name!r}")
|
||||
Reference in New Issue
Block a user