fix short word, no yes not speaking
This commit is contained in:
parent
cb0bd4589c
commit
0ee66e50bf
|
|
@ -1068,9 +1068,16 @@ Erst wenn ich [READY] sehe, starten die TICKs mit Bildern!"""
|
||||||
if self.is_muted() or self._speaking.is_set():
|
if self.is_muted() or self._speaking.is_set():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if result and result.text and len(result.text) > 2:
|
if result and result.text and result.text.strip():
|
||||||
# Sprache erkannt!
|
# Sprache erkannt! Akzeptiere auch kurze Worte wie "Ja", "Nein", "OK"
|
||||||
current_session_texts.append(result.text)
|
text = result.text.strip()
|
||||||
|
|
||||||
|
# Nur offensichtliches Rauschen filtern (einzelne Buchstaben)
|
||||||
|
if len(text) == 1:
|
||||||
|
logger.debug(f"STT: Einzelner Buchstabe ignoriert: '{text}'")
|
||||||
|
continue
|
||||||
|
|
||||||
|
current_session_texts.append(text)
|
||||||
last_speech_time = time.time()
|
last_speech_time = time.time()
|
||||||
self.stats.stefan_inputs += 1
|
self.stats.stefan_inputs += 1
|
||||||
|
|
||||||
|
|
@ -1080,7 +1087,7 @@ Erst wenn ich [READY] sehe, starten die TICKs mit Bildern!"""
|
||||||
console.print(f"\n[bold green]🎤 Stefan spricht...[/bold green]")
|
console.print(f"\n[bold green]🎤 Stefan spricht...[/bold green]")
|
||||||
logger.debug("Recording gestartet")
|
logger.debug("Recording gestartet")
|
||||||
|
|
||||||
console.print(f"[green] → {result.text}[/green]")
|
console.print(f"[green] → {text}[/green]")
|
||||||
logger.debug(f"Stefan-Session: {len(current_session_texts)} Teile")
|
logger.debug(f"Stefan-Session: {len(current_session_texts)} Teile")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue