Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asynchronous transcription via asyncio #80

Open
serozhenka opened this issue Aug 2, 2024 · 11 comments
Open

Asynchronous transcription via asyncio #80

serozhenka opened this issue Aug 2, 2024 · 11 comments
Labels
kind/enhancement New feature or request triage/confirmed Issue is well-defined and understood.

Comments

@serozhenka
Copy link

Using asyncio will be greatly beneficial in the use case of transcription as most of the time the client waits for a response on a socket when your servers are doing all the great work.

concurrent.futures implementation still works but is not as good for two main reasons:

  • The hardware capabilities limit the number of executor workers (or just threads), unlike asyncio's lightweight coroutines
  • concurrent.futures module issues blocking operations which can block the event loop in a fully asynchronous environment

Hope for positive feedback on that!

@ploeber
Copy link
Contributor

ploeber commented Aug 5, 2024

Hey @serozhenka , great feedback!
It's actually on my TODO list for v 1.0.0 to introduce an asyncio client.

I plan to introduce it before v.1.0 so there's a transition period where both asyncio and the threading solution with the _async() functions can be used.

@serozhenka
Copy link
Author

Sounds great!
Do you have an approximate ETA of when can I expect it to be ready?

@ploeber ploeber added the kind/enhancement New feature or request label Aug 5, 2024
@ploeber
Copy link
Contributor

ploeber commented Aug 13, 2024

aiming for Q4 2024

@victorct-tradeengage
Copy link

+1, although I would suggest to use AnyIO so people using Trio can also use the library.

@amirreza8002
Copy link

hi
i think it should be mentioned in docs that concurrent.futures.Future is not awaitable

@barapa
Copy link

barapa commented Nov 15, 2024

Any update on this?

@scottyeung
Copy link

Any update on this?

Same here!

@aigrinder
Copy link

aiming for Q4 2024

Hey @ploeber, will this still be ready by end of the year?

@david-oliveira-br
Copy link

@ploeber Any updates? Looking forward to this!

@marcusolsson marcusolsson added the triage/confirmed Issue is well-defined and understood. label Jan 7, 2025
@yovelcohen
Copy link

I would like to pile on the pressure for this one :) the current implementation has us bending upwards and backward to fit into our flows.

@serozhenka
Copy link
Author

It's funny how adding asynchrony support takes nearly half a year while already ~8 people ask for this :)
@ploeber @marcusolsson do you need any help with that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request triage/confirmed Issue is well-defined and understood.
Projects
None yet
Development

No branches or pull requests

10 participants