docs: Cartesia-Test auf ZH und PT erweitern

Verifikationsabschnitt: Cartesia-Test deckt jetzt alle 6 unterstützten
Sprachpaare ab (DE/EN/FR/ES/PT/ZH je ♂+♀). ZH und PT erfolgreich getestet
(Hua/Kai, Isabella/Bruno).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Dieter Schlüter 2026-06-24 23:13:32 +02:00
commit a66236993f

View file

@ -1065,7 +1065,7 @@ async def run():
asyncio.run(run())
EOF
# Cartesia — DE/EN/FR/ES je ♂+♀ testen
# Cartesia — alle unterstützten Sprachen je ♂+♀ testen
# Hinweis: env-Datei muss explizit geladen werden (wird sonst nur vom systemd-Service eingelesen)
cd /opt/voice-assistant && sudo -u voice env $(sudo cat /etc/voice-assistant/voice-assistant.env | grep -v '^#' | xargs) .venv/bin/python - << 'EOF'
import asyncio
@ -1075,10 +1075,12 @@ p = CartesiaTTSProvider(cfg.cartesia_api_key, cfg.cartesia_voice_id, cfg.cartesi
cfg.tts_sample_rate, voices_str=cfg.cartesia_voices)
async def run():
for lang, gender, text in [
("de","f","Guten Tag!"), ("de","m","Guten Tag!"),
("en","f","Hello!"), ("en","m","Hello!"),
("fr","f","Bonjour!"), ("fr","m","Bonjour!"),
("es","f","¡Hola!"), ("es","m","¡Hola!"),
("de","f","Guten Tag!"), ("de","m","Guten Tag!"),
("en","f","Hello!"), ("en","m","Hello!"),
("fr","f","Bonjour!"), ("fr","m","Bonjour!"),
("es","f","¡Hola!"), ("es","m","¡Hola!"),
("pt","f","Bom dia!"), ("pt","m","Bom dia!"),
("zh","f","你好!"), ("zh","m","你好!"),
]:
vid = p._resolve_voice_id(lang, gender)
name = next((v["name"] for (l,g),v in p.voice_map.items() if v["uuid"]==vid), "?")