ciyidogan commited on
Commit
a89d030
·
verified ·
1 Parent(s): 9ce7ce0

Update stt/stt_lifecycle_manager.py

Browse files
Files changed (1) hide show
  1. stt/stt_lifecycle_manager.py +3 -6
stt/stt_lifecycle_manager.py CHANGED
@@ -190,14 +190,11 @@ class STTLifecycleManager:
190
  }
191
  ))
192
 
193
- # ✅ FIX: Send stop signal to WebSocket to stop audio streaming
194
  await self.event_bus.publish(Event(
195
- type=EventType.WEBSOCKET_MESSAGE,
196
  session_id=session_id,
197
- data={
198
- "type": "stt_stopped",
199
- "message": "STT stopped, please stop sending audio"
200
- }
201
  ))
202
 
203
  # Don't remove session immediately - might restart
 
190
  }
191
  ))
192
 
193
+ # ✅ Send STT_STOPPED event (websocket_manager will handle it)
194
  await self.event_bus.publish(Event(
195
+ type=EventType.STT_STOPPED,
196
  session_id=session_id,
197
+ data={"reason": reason}
 
 
 
198
  ))
199
 
200
  # Don't remove session immediately - might restart