fix: error state resettable via mic click, debug logging, pipeline traceback
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user