diff --git a/vocode/streaming/utils/state_manager.py b/vocode/streaming/utils/state_manager.py index 4f1d61f01..eb698a11e 100644 --- a/vocode/streaming/utils/state_manager.py +++ b/vocode/streaming/utils/state_manager.py @@ -21,13 +21,13 @@ def set_transcriber_endpointing_config(self, endpointing_config: EndpointingConf self._conversation.transcriber.get_transcriber_config().endpointing_config = ( endpointing_config ) - + def disable_synthesis(self): self._conversation.synthesis_enabled = False - + def enable_synthesis(self): self._conversation.synthesis_enabled = True - + async def terminate_conversation(self): await self._conversation.terminate() @@ -37,8 +37,14 @@ def __init__(self, call: "VonageCall"): super().__init__(call) self._call = call + async def terminate_conversation(self): + await self._call.tear_down() + class TwilioCallStateManager(ConversationStateManager): def __init__(self, call: "TwilioCall"): super().__init__(call) self._call = call + + async def terminate_conversation(self): + await self._call.tear_down()