Open moaazsidat opened 3 years ago
Hey @moaazsidat , were you able to solve for this?
@ajay960singh handle_events
must be scheduled as a task, e.g. asyncio.create_task(self.handler.handle_events())
Hi, I'm trying something similar, not able to crack it. Did you got it working?
Hey folks, thanks for putting this together as a useful interface to AWS transcribe.
I'm looking for an example that works with an async websocket server calling AWS transcribe. The problem I'm running into right now is that
handler.handle_events()
is a blocking call that prevents processing further messages – here's my code thus far with a FastAPI websocket app:Any guidance as to what's a good way to call
handler.handle_events()
in a non-blocking manner?Have tried wrapping the
handler.handle_events()
in a while loop and invoking that via a background task and that runs into a similar blocking behaviour as well.