Skip to content

Commit

Permalink
remove
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkennedy5 committed Apr 3, 2024
1 parent bb5a771 commit e815d48
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions openduck-py/openduck_py/response_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,17 +424,12 @@ async def _generate_and_speak(
chat.history_json["messages"] = messages
await db.commit()

async def start_response(self, transcription):
async def start_response(self, transcription: str):
try:
async with SessionAsync() as db:
t_0 = time()

print("TRANSCRIPTION: ", transcription, flush=True)

if transcription and self.is_responding:
await log_event(db, self.session_id, "interrupted_response")
await self.interrupt(self.response_task)

self.is_responding = True

t_asr = time()
Expand Down

0 comments on commit e815d48

Please sign in to comment.