This endpoint converts audio files to text using Azure’s Speech-to-Text API. It is designed to be used from public-facing chatbot widgets and does not support API key authentication.
Use Cases:
- Enable voice input in chatbot widgets
- Transcribe user audio messages for AI agent processing
- Convert voice notes to text for conversation logs
- Build voice-enabled customer support interfaces
This endpoint does not support API key authentication. It only works by providing a valid agentId of a public agent. The agent must have its visibility set to “public” for this endpoint to work.
Content-Type
string
default:"multipart/form-data"
required
Must be set to multipart/form-data for file uploads.
Body (multipart/form-data)
The audio file to transcribe. Supported formats:
The ID of a public agent. This is required for all requests. The agent must have its visibility set to “public”.
Response
The transcribed text from the audio file.
Error Responses
| Status Code | Description |
|---|
| 401 | Unauthorized - Invalid or missing agentId, or agent is not public |
| 400 | Invalid request - No file provided or invalid file format |
| 500 | Transcription failed - Azure service error |
curl --location --request POST 'https://dashboard.laburen.com/api/transcribe-audio' \
--form 'file=@"/path/to/audio.wav"' \
--form 'agentId="clxxxxxxxxxxxxxxxxx"'
{
"text": "Hello, I need help with my order that was placed last week."
}