Audio

Convert Audio to Text

Available for: Chatflow, Workflow, Agent, Chatbot, Legacy Agent, Text Generator apps.

Transcribes an uploaded audio file to text using the workspace's default speech-to-text model.

post/audio-to-text

Request

  • Base URL
    https://api.dify.ai/v1
  • URL
    https://api.dify.ai/v1/audio-to-text
  • Auth
    HTTP bearer

Request body multipart/form-data

filestring binary required

Audio file to transcribe. Accepted MIME types: audio/mp3, audio/m4a (also accepted as audio/x-m4a), audio/wav, audio/amr, audio/mpga. Other types, including the common audio/mpeg, are rejected with unsupported_audio_type. Maximum size 30 MB.

userstring

End-user identifier, defined by your app and unique within it. See End User Identity.

Response

Successfully converted audio to text.

textstring

Output text from speech recognition.

Changes

No recorded changes to this operation across all 17 revisions of this API.