API request for STT works fine with specifying a URL, but not when base64 encoding the file #428
-
We are testing out the Deepgram API for STT and are having an issue getting base64-encoded audio requests to work. However, it works fine when we specify a URL. These are the two requests: -= WORKS =- -= DOES NOT WORK =- curl --request POST Result:
What are we doing wrong? Note that the demo (https://developers.deepgram.com/reference/pre-recorded) also has "--header 'content-type: application/json'" in the cURL request, but that just results in a different error:
It is also worth noting that the cURL requests are pulled from the demo itself, and I even tried running it from the demo and it just is not working unless I specify a URL, but we need file-based transcript generation, not URL-based. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can find how to transcribe a local file here: https://developers.deepgram.com/docs/transcribing-pre-recorded-audio#transcribe-a-local-file
Also make sure to rotate the API Key you posted above |
Beta Was this translation helpful? Give feedback.
You can find how to transcribe a local file here: https://developers.deepgram.com/docs/transcribing-pre-recorded-audio#transcribe-a-local-file
Also make sure to rotate the API Key you posted above