curl --request POST \
--url https://api.gurubase.io/api/v1/{guru_slug}/transcribe/ \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: multipart/form-data' \
--form 'audio=@/path/to/your/audio.mp3'
{
"text": "Hello, this is a test transcription of the audio file."
}
{
"msg": "No audio file provided"
}
{
"msg": "Audio file too large. Maximum size is 25MB"
}
{
"msg": "Invalid audio format. Supported formats: webm, mp3, wav, m4a, ogg"
}
{
"error": "Invalid API key"
}
{
"msg": "Voice recording is not enabled for this guru type"
}
{
"error": "Rate limit exceeded"
}
{
"msg": "Error transcribing audio"
}
Endpoints
Transcribe Audio
Transcribe audio file to text
POST
/
{guru_type}
/
transcribe
/
curl --request POST \
--url https://api.gurubase.io/api/v1/{guru_slug}/transcribe/ \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: multipart/form-data' \
--form 'audio=@/path/to/your/audio.mp3'
{
"text": "Hello, this is a test transcription of the audio file."
}
{
"msg": "No audio file provided"
}
{
"msg": "Audio file too large. Maximum size is 25MB"
}
{
"msg": "Invalid audio format. Supported formats: webm, mp3, wav, m4a, ogg"
}
{
"error": "Invalid API key"
}
{
"msg": "Voice recording is not enabled for this guru type"
}
{
"error": "Rate limit exceeded"
}
{
"msg": "Error transcribing audio"
}
Transcribe an audio file to text. This endpoint supports various audio formats and handles mobile recordings.
curl --request POST \
--url https://api.gurubase.io/api/v1/{guru_slug}/transcribe/ \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: multipart/form-data' \
--form 'audio=@/path/to/your/audio.mp3'
Path Parameters
string
required
The guru type identifier for the transcription request
Headers
string
required
Your API key for authentication. You can obtain your API key from the Gurubase dashboard.
Body Parameters
file
required
The audio file to transcribe. Supported formats: webm, mp3, wav, m4a, ogg. Maximum size: 25MB.
Response
The response contains the transcribed text from the audio file.string
The transcribed text from the audio file
{
"text": "Hello, this is a test transcription of the audio file."
}
{
"msg": "No audio file provided"
}
{
"msg": "Audio file too large. Maximum size is 25MB"
}
{
"msg": "Invalid audio format. Supported formats: webm, mp3, wav, m4a, ogg"
}
{
"error": "Invalid API key"
}
{
"msg": "Voice recording is not enabled for this guru type"
}
{
"error": "Rate limit exceeded"
}
{
"msg": "Error transcribing audio"
}
Was this page helpful?