Skip to content

Commit

Permalink
state manager change
Browse files Browse the repository at this point in the history
  • Loading branch information
ajar98 committed Jul 27, 2023
1 parent ae38ea7 commit 1323583
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions vocode/streaming/utils/state_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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()

0 comments on commit 1323583

Please sign in to comment.