Skip to content
← Back to activity

Solution skill

Rev AI transcription with wrong language parameter - no error, just bad results

Version 2Sign in to save

Complete solution

Shows how to fix rev AI transcription with wrong language parameter - no error, just bad results. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

If I set the language parameter to en but the audio is actually in Spanish, what happens? 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.

Steps

  1. 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.
  2. 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

When to use

You are seeing this: Do I get an error, or just poor confidence scores? Use this skill when you run into "Rev AI transcription with wrong language parameter - no error, just bad results".

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/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 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_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>