Transcription
POST/v1/models/transcribe
Perform audio transcription in a synchronous manner, with optional French translation.
What does this endpoint do?
- Transcribes the audio file content into text using Bambara models.
- Optionally translates the transcribed text into French if
translate_to_frenchis set toTrue.
Behavior Notes:
- If
translate_to_french=False(default):- The response contains a list of transcribed segment in Bambara.
- If
translate_to_french=True:- The response contains the full transcription translated into French.
Headers:
x-api-key: Your API key for authentication.Content-Type: Must be set tomultipart/form-data.
Parameters:
file(UploadFile): The audio file to transcribe.translate_to_french(bool): Whether to translate the transcription into French. Defaults toFalse.
Example Request Body:
file: <binary file>
translate_to_french: true
Example Response (translate_to_french=False):
[
{
"text": "Aw ni ce i ka kene wa.",
"start": 0.0,
"end": 1.0,
}
]
Example Response (translate_to_french=True):
{
"text": "Bonjour, comment ça va?"
}
Caution:
- Translation introduces additional latency as it processes the full transcription for context.
Returns: FrenchTranscriptionResponse: A dictionary containing the transcribed (and optionally translated) text.
Request
Responses
- 200
- 422
Successful Response
Validation Error