400 eror in API even though file gets transcribed on the playground #912
-
I'm intermittently getting 400 error for some mp3 files (starting yesterday). The response on the Speech to Text endpoint is also always just 'Error: "Bad Request: Invalid data received."'. Unable to debug - all these files work OK and are transcribed on the deepgram playground. Can anyone help on this please. |
Beta Was this translation helpful? Give feedback.
Answered by
jpvajda
Sep 11, 2024
Replies: 1 comment 2 replies
-
Thanks for asking your question about Deepgram! If you didn't already include it in your post, please be sure to add as much detail as possible so we can assist you efficiently, such as:
|
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
@architrathi I checked our logs and here are some suggestions based on the errors:
4df77c97-9874-4322-b772-67db50cb9e55
Error: Raw binary data was sent to Deepgram without both the encoding and sample_rate set.
Suggestion:
try setting the encoding and sample_rate in the request.f0c7374b-d9b9-406a-a8e7-b83b84567d2e
Error: pcm_s24le audio is not fully supported
Suggestion:
Try converting to a 16-bit encoding:ffmpeg -i <in>.wav -acodec pcm_s16le <out>.wav
For more info, see https://github.com/orgs/deepgram/discussions/483#discussioncomment-77938893ad054b2-7f64-4c36-943c-d4bb67132997
Error: pcm_s24le audio is not fully supported
Suggestion: Try converting to a 16-bit encoding:
ffmpeg -i <i…