nachricht tts claude sagt entfernen, wenn zu kurz
This commit is contained in:
parent
023fa24df6
commit
252ec11063
|
|
@ -761,6 +761,12 @@ Erst dann starten die automatischen TICKs mit Bildern!"""
|
||||||
tts_text = speech_text
|
tts_text = speech_text
|
||||||
if tts_text.lower().startswith("claude sagt:"):
|
if tts_text.lower().startswith("claude sagt:"):
|
||||||
tts_text = tts_text[12:].strip()
|
tts_text = tts_text[12:].strip()
|
||||||
|
logger.debug(f"TTS: 'Claude sagt:' entfernt, Rest: {len(tts_text)} Zeichen")
|
||||||
|
|
||||||
|
# Prüfe ob nach Entfernen noch Text übrig ist
|
||||||
|
if not tts_text or len(tts_text) < 3:
|
||||||
|
logger.debug(f"TTS: Nach Prefix-Entfernung kein Text übrig, übersprungen")
|
||||||
|
continue
|
||||||
|
|
||||||
# In Konsole anzeigen (ohne Prefix)
|
# In Konsole anzeigen (ohne Prefix)
|
||||||
console.print(f"\n[bold blue]Claude:[/bold blue] {tts_text[:200]}")
|
console.print(f"\n[bold blue]Claude:[/bold blue] {tts_text[:200]}")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue