AssemblyAI / assemblyai-python-sdk

AssemblyAI's Official Python SDK
https://assemblyai.com
MIT License
148 stars 18 forks source link

Asynchronous transcription via asyncio #80

Open serozhenka opened 3 months ago

serozhenka commented 3 months ago

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:

Hope for positive feedback on that!

ploeber commented 3 months ago

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 commented 3 months ago

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

ploeber commented 3 months ago

aiming for Q4 2024

victorct-tradeengage commented 2 months ago

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

amirreza8002 commented 1 month ago

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

barapa commented 1 week ago

Any update on this?

scottyeung commented 1 day ago

Any update on this?

Same here!