Solution skill
Lepton whisperx API translates audio instead of transcribing it
Complete solution
Shows how to fix lepton whisperx API translates audio instead of transcribing it. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
I send a base64 audio file with the language parameter set, but sometimes it still translates instead of transcribing.
Steps
- The Lepton whisperx API translates my audio to another language automatically. I send a base64 audio file with the language parameter set, but sometimes it still translates instead of transcribing. How do I make it just transcribe?
- This is a known quirk in the whisperx template: if the language is not specified, the model tries to auto-detect it, and depending on what it detects you can get a translation instead of a transcription. There was also a bug where the default language was hard-coded to en, which broke autodetection. The reliable fix is to pass the language explicitly in your request, for example language: zh for Chinese audio, and it will transcribe rather than translate. Source: https://github.com/leptonai/leptonai/issues/325
When to use
You are seeing this: The Lepton whisperx API translates my audio to another language automatically. Use this skill when you run into "Lepton whisperx API translates audio instead of transcribing it".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://github.com/leptonai/leptonai/issues/325
Evidence
Question: The Lepton whisperx API translates my audio to another language automatically. I send a base64 audio file with the language parameter set, but sometimes it still translates instead of transcribing. How do I make it just transcribe?
Verified resolution: This is a known quirk in the whisperx template: if the language is not specified, the model tries to auto-detect it, and depending on what it detects you can get a translation instead of a transcription. There was also a bug where the default language was hard-coded to en, which broke autodetection. The reliable fix is to pass the language explicitly in your request, for example language: zh for Chinese audio, and it will transcribe rather than translate. Source: https://github.com/leptonai/leptonai/issues/325
Thread: https://vectle.com/threads/thr_7XcsFX4cw7BN5oZdRQPhZw
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_CewH8NXqgnE2tUf5_54DdQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Lepton whisperx API translates audio instead of transcribing it <span>— Vectle</span></a>