Skip to content
mentoor

Topic 3 of 5 · 5 min read

Handling noise, accents and domain vocabulary

Goal: Configure a transcription request with vocabulary hints and audio settings that fix the misrecognized terms in a sample transcript.

Most transcription errors on real audio come from the audio and from unknown words, so fix the input and give the model your vocabulary before you change the model. A bigger model rarely fixes a muffled microphone.

Check yourself · 1 of 3

A transcript turns your product "Mentoor" into "mentor". What is the first fix to try?

Choose one answer

Why it matters

A transcript that is 95 percent right can still be useless if the wrong 5 percent are product names, drug names or order numbers. A model has never seen "Mentoor" or "Zolpidem 10 mg" spelled your way, so it picks the nearest common words.

Fix the audio first

  • Sample rate and channels. Phone calls are often 8 kHz. Do not upsample and pretend it is better. Tell the API the true rate and use a model tuned for telephone audio if one exists.
  • Separate speakers. If the agent and the caller are on separate channels, send them as two channels instead of one mixed track.
  • Noise. Placing the microphone closer helps more than software cleaning. Aggressive denoising can remove speech sounds and raise errors, so test with and without it.
  • Accents and code-switching. Set the expected language when you know it. Mixed-language speakers may need a model that handles several languages in one stream. Check on real recordings.

Teach the vocabulary

Hosted APIs offer keyword boosting, custom vocabulary or speech adaptation phrases. Whisper-style APIs accept a text prompt that primes spelling.

resp = client.audio.transcriptions.create(
    model="whisper-1",
    file=open("call-0412.wav", "rb"),
    language="en",
    prompt="Mentoor, Warlock.js, Dr. Okafor, SKU-4471, Zolpidem",
)

Before and after

Before: "Please ship the warlock chess order for Doctor O'Cafor, it's sky four four seven one." After the prompt: "Please ship the Warlock.js order for Dr. Okafor, SKU-4471." Rerun the same sample audio and compare.

What goes wrong

  • Listing hundreds of terms. Too many boosts raise false matches; common words get replaced. Keep the list short and measured.
  • Prompting with instructions. A Whisper prompt is context to continue, not a command. "Always write numbers as digits" may be ignored.
  • Fixing one speaker. A boost tuned on one voice can fail on others. Test with several.
  • Cleaning with a regex afterwards hides the cause and breaks when the error changes.

Examples

A request with a language and vocabulary hints

resp = client.audio.transcriptions.create(
    model="whisper-1",
    file=open("support-call.wav", "rb"),
    language="en",
    prompt="Mentoor, Warlock.js, SKU-4471",
)

The language is fixed so the model does not guess from a short opening. The prompt carries product spellings. Rerun the same file before and after to see whether "warlock chess" became "Warlock.js".

Key points

  • Check audio settings first: true sample rate, separate channels per speaker, microphone distance and expected language.
  • Keyword boosting, custom vocabulary and transcription prompts teach the model spellings it has never seen.
  • A Whisper-style prompt is text to continue from, not an instruction the model must obey.
  • Aggressive denoising can delete speech sounds, so compare results with and without it.
  • Keep vocabulary lists short and test them on several speakers, because over-boosting replaces common words.

Common mistakes

  • Upsampling 8 kHz phone audio to 16 kHz and expecting better recognition.
  • Mixing two speakers onto one channel when the system recorded them separately.
  • Writing instructions in a Whisper prompt as if it were a chat message.
  • Adding every product term as a boost, which makes ordinary words turn into product names.

Check yourself · 2 of 3

Agent and caller are recorded on two separate channels. What is the best way to send the call for transcription?

Choose one answer

Check yourself · 3 of 3

You pass a Whisper-style prompt: "Always write numbers as digits." What is the most likely outcome?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic