Spaces:
Running
Running
Update state_orchestrator.py
Browse files- state_orchestrator.py +2 -0
state_orchestrator.py
CHANGED
@@ -357,6 +357,8 @@ class StateOrchestrator:
|
|
357 |
if current_state in [ConversationState.PLAYING_WELCOME, ConversationState.PLAYING_RESPONSE]:
|
358 |
# Transition back to listening
|
359 |
await self.transition_to(session_id, ConversationState.LISTENING)
|
|
|
|
|
360 |
|
361 |
# Start STT
|
362 |
await self.event_bus.publish(Event(
|
|
|
357 |
if current_state in [ConversationState.PLAYING_WELCOME, ConversationState.PLAYING_RESPONSE]:
|
358 |
# Transition back to listening
|
359 |
await self.transition_to(session_id, ConversationState.LISTENING)
|
360 |
+
|
361 |
+
locale = context.session.locale if hasattr(context.session, 'locale') else 'tr'
|
362 |
|
363 |
# Start STT
|
364 |
await self.event_bus.publish(Event(
|