Request
Thetranscribe()
function can be used to transcribe audio. Pass either a url
or a content
to the transcribe function.
Examples are provided below as a guide for you.
Best Practices for Use
- You can provide either the
content
(file) orurl
(str), but do not provide both. - The maximum file size is 25MB, we will support larger sizes in the future.
- We only support
mp3
,wav
,m4a
, andogg
file formats. - If you provide
url
, ensure that access to the file is not blocked by authentication. - When transcribing, you should use the language code (e.g.
en
,yo
,ig
) and not the full text.
Response
The response for speech generation is in bytes.- The Content-Type is
application/json
- A
request_id
is returned for issue resolution with our support team.
Language Support
Our speech-to-text model supports the following languages:- Hausa:
ha
- Igbo:
ig
- Yoruba:
yo
- Amharic:
am
- English:
en
Examples - file
Python
Examples - url
Python