From 125b0f5d2edb9c20e6d13ac11c12c905c4182ba8 Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Sun, 22 Feb 2026 18:35:52 +0200 Subject: [PATCH] fix(tts): spell out numbers in words for German TTS George (British) voice mangles German digit strings. Force LLM to write all numbers as German words so TTS pronounces them correctly. Co-Authored-By: Claude Sonnet 4.6 --- voice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/voice.py b/voice.py index e530029..8ef44b5 100644 --- a/voice.py +++ b/voice.py @@ -41,7 +41,8 @@ STRIKTE Regeln: - Sei direkt und praezise, keine Fuellwoerter - Erfinde NICHTS - keine Geschichten, keine Musik, keine Fantasie - Beantworte nur was gefragt wird -- Wenn niemand etwas fragt, sage nur kurz Hallo""" +- Wenn niemand etwas fragt, sage nur kurz Hallo +- Schreibe Zahlen und Jahreszahlen IMMER als Woerter aus (z.B. "zweitausendundzwanzig" statt "2026", "zweiundzwanzigsten Februar" statt "22. Februar")""" def _build_voice_prompt() -> str: