fix stuff

This commit is contained in:
2026-09-21 01:55:42 -04:00
commit 02d7c10f7d
26 changed files with 953 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import json
from audio.audio_queue import q
def listen_for_command(rec):
while True:
data = q.get()
if rec.AcceptWaveform(data):
result_json = json.loads(rec.Result())
result = result_json.get("text", "").lower().strip()
if result:
return result