app/src/main/java/com/example/jarvis_stts/JarvisService.kt aktualisiert

This commit is contained in:
2026-03-13 13:06:05 +00:00
parent 1f78f5cfcc
commit 570a3abbe9

View File

@@ -143,8 +143,8 @@ class JarvisService : Service(), RecognitionListener {
val json = JSONObject(hypothesis) val json = JSONObject(hypothesis)
val partialText = json.optString("partial").lowercase().trim() val partialText = json.optString("partial").lowercase().trim()
// HIER: Lass dir mal ausgeben, was er eigentlich versteht! // Wir ignorieren leere Strings und bekannte Rausch-Wörter für das Log
if (partialText.isNotEmpty()) { if (partialText.isNotEmpty() && partialText != "nun" && partialText.length > 2) {
Log.d("JARVIS_DEBUG", "Vosk hört: $partialText") Log.d("JARVIS_DEBUG", "Vosk hört: $partialText")
} }