Getting a 400 when trying to transcribe a pre-recorded wav audio file #205
-
Which Deepgram product are you using?Deepgram API DetailsI'm trying to transcribe a pre-recorded audio and I'm getting a I also tried with one of your sample Can you provide any guidance on what I might be doing wrong? If you are making a request to the Deepgram API, what is the full Deepgram URL you are making a request to?https://api.deepgram.com/v1/listen If you are making a request to the Deepgram API and have a request ID, please paste it below:a01f1229-7fc5-463a-b690-09b5fc33427b If possible, please attach your code or paste it into the text box.
If possible, please attach an example audio file to reproduce the issue.No response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Can you try:
What you have, sending JSON, is the right method when asking Deepgram to grab a file from a URL to transcribe, e.g.:
but for directly uploading the audio in the request body, it can/should be sent as binary and not JSON. |
Beta Was this translation helpful? Give feedback.
-
Hey @alikaragoz thanks for your help. I agree that we need to improve the API reference on this. We also have a tips and tricks guide which appears to have the correct format. |
Beta Was this translation helpful? Give feedback.
Can you try:
What you have, sending JSON, is the right method when asking Deepgram to grab a file from a URL to transcribe, e.g.:
but for directly uploading the audio in the request body, it can/should be sent as binary and not JSON.