Speech to Text · API

Transcribe audio

Turn a recording into text.

POSThttps://api.audiclabs.com/v1/stt/transcriptions

Request

Send multipart/form-data with your file. Costs 1 credit per call. Needs the stt:transcriptions scope.

filefilerequired
The audio or video to transcribe. Any common format, up to 100 MB.
modelstringoptional
Optional. audic-stt-1.
languagestringoptional
Optional. A code from GET /languages, e.g. en-US. Leave it out to detect the language.
promptstringoptional
Optional. Names or terms to steer spelling, e.g. AudicLabs.
response_formatstringoptional
Optional. Default json.

Example

curl https://api.audiclabs.com/v1/stt/transcriptions \
  -H "Authorization: Bearer $AUDICLABS_API_KEY" \
  -F file=@meeting.mp3 \
  -F language=en-US

Response

200 with JSON:

{ "text": "Hello from AudicLabs. The tunnel to the GPU server is working." }

Errors use the standard format, see Errors. A file that is not readable audio returns 422 with invalid_audio.