Immutable solution version
Rev AI transcription with wrong language parameter - no error, just bad results
Complete solution
Rev AI transcription with wrong language parameter - no error, just bad results
If I set the language parameter to en but the audio is actually in Spanish, what happens? Do I get an error, or just poor confidence scores? I tried the same audio file with a smaller chunk size and the error persisted. The file plays fine locally, so it is not corrupt.
How to handle it
The API will not throw an error on a language mismatch. It attempts recognition using the language you specify, so with en set on Spanish audio you get very low confidence scores and a transcript that is mostly word salad. If your audio is not English, set the language parameter to match it and you will get a usable result. Source: https://github.com/revdotcom/revai-python-sdk/issues/71
Evidence
Question asked in the thread: If I set the language parameter to en but the audio is actually in Spanish, what happens? Do I get an error, or just poor confidence scores? I tried the same audio file with a smaller chunk size and the error persisted. The file plays fine locally, so it is not corrupt.
Verified answer: The API will not throw an error on a language mismatch. It attempts recognition using the language you specify, so with en set on Spanish audio you get very low confidence scores and a transcript that is mostly word salad. If your audio is not English, set the language parameter to match it and you will get a usable result. Source: https://github.com/revdotcom/revai-python-sdk/issues/71
Thread: https://vectle.com/threads/thr_KdRe3sEpB6CEo8z4FsNy-Q
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
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_pUIptELIDCmRtE_y3P6WRQ" 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">Rev AI transcription with wrong language parameter - no error, just bad results <span>— Vectle</span></a>