RealtimeTTS icon indicating copy to clipboard operation
RealtimeTTS copied to clipboard

What is the effect of replacing multi-threaded pipelines with asynchronous queues?

Open jbang2004 opened this issue 1 year ago • 1 comments

Out of pure curiosity, I want to know if asynchronous programming would be helpful in processing this project?

jbang2004 avatar Jan 13 '24 08:01 jbang2004

Yes, quite likely this project would benefit from removing most threads and processes and switching completely to asyncio, same goes for RealtimeSTT. It will be hard to implement since some calls are inherently blocking (like inferencing the synthesis with CoquiEngine). I'm not very familiar with python async programming, so I'm not even sure if it's possible. Currently I'm just to involved with other projects (new Linguflex version) to put in the work.

KoljaB avatar Jan 13 '24 11:01 KoljaB