Skip to content

Commit

Permalink
Merge pull request #1 from speechmatics/minor-improvements
Browse files Browse the repository at this point in the history
Minor improvements
  • Loading branch information
anjz authored Oct 20, 2023
2 parents 50ee5f9 + 04bb229 commit cbd61de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ httpx[http2]~=0.23
polling2~=0.5
toml~=0.10.2
prometheus-client~=0.16.0
speechmatics-python~=1.9.0
speechmatics-python~=1.11.1
9 changes: 5 additions & 4 deletions stream_transcriber/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,11 @@ async def load_stream(stream_name: str):
)
await force_close_connections(stream)
sm_client.stop()
await process.kill()
await asr_task.cancel()
await stream_clone_task.cancel()
await send_audio_task.cancel()

process.kill()
asr_task.cancel()
stream_clone_task.cancel()
send_audio_task.cancel()

LOGGER.info("Finished transcription", extra={"stream": stream_name})

Expand Down

0 comments on commit cbd61de

Please sign in to comment.