Skip to main content
POST
/
audio-to-text
Error
A valid request URL is required to generate request examples
{
  "text": "Hello, I would like to know more about the iPhone 13 Pro Max."
}

Documentation Index

Fetch the complete documentation index at: https://docs.dify.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API Key authentication. For all API requests, include your API Key in the Authorization HTTP Header, prefixed with Bearer. Example: Authorization: Bearer {API_KEY}. Strongly recommend storing your API Key on the server-side, not shared or stored on the client-side, to avoid possible API-Key leakage that can lead to serious consequences.

Body

multipart/form-data

Request body for audio-to-text conversion.

file
file
required

Audio file. Supported: mp3, mp4, mpeg, mpga, m4a, wav, webm. Limit: 30 MB.

user
string

User identifier.

Response

Successfully converted audio to text.

text
string

Output text from speech recognition.