fix: error state resettable via mic click, debug logging, pipeline traceback

This commit is contained in:
2026-04-01 12:41:45 +02:00
parent 6574481647
commit 6e317a9c67
4 changed files with 20 additions and 3 deletions
+3
View File
@@ -97,6 +97,9 @@ async def toggle_recording(user: dict = Depends(current_user)):
if state.status == Status.RECORDING:
asyncio.create_task(run_pipeline())
return {"action": "stopped"}
if state.status == Status.ERROR:
await state.set_status(Status.IDLE)
return {"action": "reset"}
if state.status == Status.IDLE:
from audio import AudioRecorder
state._recorder = AudioRecorder()