How to return request Id immediately? #109
-
|
I'm trying to use the callback option to get a request id and then recieve the transcription response via a webhook. Only problem is that it takes the same amount of time to recieve the request id as it does the actual transription via webhook. Using the latest version of the node sdk, this is my code: |
Beta Was this translation helpful? Give feedback.
Answered by
briancbarrow
Apr 27, 2023
Replies: 1 comment 2 replies
-
|
Hi @RobTF9, Right now the request id is part of the standard response we send. Can I ask what your use case is where you need the request id before the response? That might help me understand it to find a solution for you. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think it makes sense. The callback option sends the transcription response to the callback URL once Deepgram is done processing it. When using the callback option, the initial call to Deepgram will return with the request_id in the response body. So you shouldn't need the callback in order to get the request_id. You should be able to get it before the callback url is called with the transcription response.
Does that help?