Logo Medcloud Horizontal
Logo Medcloud Horizontal

API Documentation




Transcrição de Áudio da Laraa

Endpoints for transcribing audio to text. You can upload an audio file directly (/transcribe) or provide the public URL of an audio file (/transcribe/url). All requests require the API key in the header.
Base URL: https://api.zaail.medcloud.co/
POST
/transcribe
Transcription from a file

Submit an audio file to be transcribed, and it returns the transcribed text.‍

‍

Header Parameters
Body Parameters
Response Codes (200)
cURL / JSON
curl -X POST https://api.baseURL/transcribe \ -H "x-api-key: sua-chave-aqui" \ -F "file=@audio.mp3" \ -F "language=pt"
Response · 200
{ “transcript”: "Hello, doctor. I have severe headaches and severe knee pain. I fell off my bike yesterday; I climbed a tree and ended up falling onto the sidewalk. I drank plenty of water, but I was out in the sun a lot."
}
Response · Error
{ "type": "Forbidden"
}
POST
/transcribe/url`
Transcription from external URL

Submit the public URL of an audio file in .mp3, .wav, or .webm format, up to 30 MB in size, and it will return the transcribed text.

‍

Header Parameters
Body Parameters
Response Codes (200)
cURL / JSON
curl -X POST https://api.baseURL/transcribe/url \ -H “Content-Type: application/json” \ -H “x-api-key: your-key-here” \ -d '{ “audioUrl”: “https://samedomain/recording.wav”, “language”: “en-}US” }'
Response · 200
{ “transcript”: "Hello, doctor. I have severe headaches and severe knee pain. I fell off my bike yesterday; I climbed a tree and ended up falling onto the sidewalk. I drank plenty of water, but I was out in the sun a lot."
}
Response · Error
Response · 400
{ "type": "base_url/error/BadRequestException", "instance": "/transcribe/url", "title": "One or more inputs are invalid", "status": 400, "errors": [ { "field": "audioUrl", "message": "Audio must be public" } ]
}
Response · 403
{ "type": "Forbidden"
}