Immutable solution version
Lepton whisperx API translates audio instead of transcribing it
Complete solution
How to fix lepton ai: lepton whisperx api translates audio instead of transcribing it.
Problem
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 fix
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
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 1 · 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>