Skip to content

Commit

Permalink
change where report call is called
Browse files Browse the repository at this point in the history
  • Loading branch information
robotaref committed Nov 14, 2023
1 parent 090ab70 commit 5957415
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vocode/streaming/streaming_conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ async def process(self, item: InterruptableAgentResponseEvent[AgentResponse]):
return
try:
agent_response = item.payload
self.conversation.logger.debug("Got agent response: {}".format(agent_response))
if isinstance(agent_response, AgentResponseFillerAudio):
self.conversation.random_audio_manager.sync_send_filler_audio(item.agent_response_tracker)
return
Expand Down Expand Up @@ -594,7 +593,6 @@ def report_call(self):
async def terminate(self):
self.mark_terminated()
self.broadcast_interrupt()
self.report_call()
self.events_manager.publish_event(
TranscriptCompleteEvent(conversation_id=self.id, transcript=self.transcript)
)
Expand Down Expand Up @@ -625,6 +623,7 @@ async def terminate(self):
self.logger.debug("Terminating speech transcriber")
self.transcriber.terminate()
self.logger.debug("Terminating transcriptions worker")
self.report_call()
self.transcriptions_worker.terminate()
self.logger.debug("Terminating final transcriptions worker")
self.agent_responses_worker.terminate()
Expand Down

0 comments on commit 5957415

Please sign in to comment.