chore: auto-commit from dashboard
This commit is contained in:
@@ -787,6 +787,11 @@ def cmd_audio(args: list[str]) -> str:
|
||||
if len(text) > _MAX_TTS_CHARS:
|
||||
text = text[:_MAX_TTS_CHARS] + "..."
|
||||
|
||||
# Normalizare RO pentru TTS (numere, monedă, unități, abrevieri) —
|
||||
# aceeași expandare ca voice mode live, fără trunchierea la 200 cuvinte
|
||||
from src.voice.normalize import expand_for_tts
|
||||
text = expand_for_tts(text)
|
||||
|
||||
# Apel TTS (import direct din tools/tts.py)
|
||||
result = _tts_synthesize(text, voice)
|
||||
if result.get("ok"):
|
||||
|
||||
Reference in New Issue
Block a user