v1

latestOpenAPI 3.0.32026-07-26451985.7 KB

automatic-speech-recognition

Convert spoken language into written text for transcription services, voice assistants, and accessibility features

post/models/v2/facebook/data2vec-audio-base-960h

Request body

urlstring required
base64string

Example request

{
  "url": "https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/audio-classification/audio.wav",
  "base64": "data:audio/wav;base64,...BASE_64_GOES_HERE (Only use this is you are not using a url)"
}

Response

Successful automatic-speech-recognition response.

errorstring nullable required

Null on success; otherwise an error message.

outputstring required

Successful response with the textual translation of the audio

Example response

{
  "output": "Down"
}