I see there is an option to get translation from audio output as per docs , but is there is a way to get the translated text of the transcription in the same response with uploaded audio?
A response I received from support,
Here’s a technical example of how you can integrate Groq transcription with an external translation workflow:
- Transcribe audio with Groq API
- Send your audio input to the transcription endpoint:
POST /v1/audio/transcriptions { "model": "whisper-1", "file": "<your-audio-file>" }
The response will include
textin the source language.Send the transcription to a translation model
- Use a translation API (e.g., Groq translation model or another service) with the transcribed text:
POST /v1/text/translations { "model": "translation-model-id", "source_text": "<transcribed-text>", "target_language": "en" }
The response will return the translated text in your desired language.
Combine results
- You can store or display both the original transcription and the translated text side by side for your application.
This workflow ensures you have accurate transcriptions and translations, even though Groq’s transcription API does not natively output translations.
So, technically it cannot be sent as a combined response in a single call, it has to be called in 2 different post calls. I wish it was single one doing both.