Skip to content

Issue/71 async transcribe prerecorded result#111

Merged
lukeocodes merged 14 commits intodeepgram:mainfrom
ThindalTV:issue/71_TranscribePreRecordedTranscribeResult
Aug 11, 2023
Merged

Issue/71 async transcribe prerecorded result#111
lukeocodes merged 14 commits intodeepgram:mainfrom
ThindalTV:issue/71_TranscribePreRecordedTranscribeResult

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
Member

@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
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