-
Notifications
You must be signed in to change notification settings - Fork 12
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
Recommendation for amplification of openai.transcripts.create
behavior in documentation, or alternative implementation
#17
Comments
I'll bring up the feedback with our team and let you know what we decide, but for now here are my initial thoughts.
|
Many thanks @Swimburger -- re exposing the polling function: What would be super-useful during a poll is to receive some indication of % complete. This is what Google's Speech-to-text API does and why we manually coded our own poll loop, so we can drive a progress bar. I understand this is an enhancement request that goes beyond the issue I raised, but I thought I'd put it out there. |
@mflorence99 I think that's a great idea, but it's not something the SDK can help with unless it's included in the API/product. |
@mflorence99 We'd love to learn more about your use case for a progress bar. Can we talk about that via email? |
In 3.1.0, we changed the default to be an infinite timeout, or no timeout, and added a new function |
When
create()
is called with the default options (ie:{ poll: true ... }
) it will not return until either:pollingTimeout
ms (default: 180,000 ms or 3 minutes)As a consequence, if the transcription takes longer than
pollingTimeout
then the API will throw an error, but the transcription will proceed to completion on the AssemblyAI infrastructure, and the account will be billed for a transcription that cannot be retrieved.Client code has these not-so-desirable options:
{ poll: false }
and hand-code polling itself{ pollingTimeout: Number.MAX_VALUE }
(but lose the ability to detect a real timeout)Alternatively, could the code be changed to accept
{ pollingTimeout: -1 }
or make that the default, and not timeout? Should the concept of 'timeout' be more properly applied to the low-levelfetch
code inservices/base.ts
?Currently, 'timeout' just means that the transcription is taking 'too long', and the user doesn't have any real knowledge of what 'too long' means.
Many thanks for your consideration of this issue.
The text was updated successfully, but these errors were encountered: