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

Issue/71 async transcribe prerecorded result #111

Conversation

ThindalTV
Copy link
Collaborator

@ThindalTV ThindalTV commented Aug 10, 2023

Adds support for returning the request_id from requests to asynchronously transcribe prerecorded audio.
Adds tests of the same.
Minor cleanup.

Breaking change: Old method cannot be called if async transcription is requested. The new method overload must be used instead. For this reason, PrerecordedTranscriptionOptions.Callback is now marked as obsolete.

Heavily influenced by #61 but doesn't break compilation of current implementations and returns a custom object only containing pertinent information when async transcribe is requested.

Also fixes unrelated test so that all tests pass now.

@ThindalTV ThindalTV changed the title Issue/71 transcribe pre recorded transcribe result Issue/71 async transcribe prerecorded result object Aug 10, 2023
@ThindalTV ThindalTV changed the title Issue/71 async transcribe prerecorded result object Issue/71 async transcribe prerecorded result Aug 10, 2023
@ThindalTV
Copy link
Collaborator Author

Fixes #71

…th no callbackUrl argument but with Callback set in the options object.

Now works as previously.
@ThindalTV
Copy link
Collaborator Author

Breaking change: Old method cannot be called if async transcription is requested. The new method overload must be used instead.

Copy link
Contributor

@lukeocodes lukeocodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fantastic!

@lukeocodes lukeocodes merged commit f653e3b into deepgram:main Aug 11, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants