Even the best ASR models can struggle with specific terminology, such as company names, project codenames, or technical jargon. The Contextual Correction feature addresses this by performing a secondary analysis pass on your transcript. By providing a small amount of “context,” you can guide the AI to fix these specific errors, dramatically improving the accuracy and professionalism of your final transcript.

How It Works

This feature is controlled by two parameters you send in your /transcribe request. When enabled, the initial transcript is chunked and analyzed by the AI, which uses your provided context to identify and fix errors.
apply_contextual_correction
boolean
default:"false"
Set this to true to enable the secondary AI correction pass. If false, this feature is skipped entirely.
context
string
A string of text providing hints to the AI. This is where you should include correct spellings of names, products, or technical terms that the ASR might mishear.
Performance Impact: Enabling contextual correction adds processing time (latency) and increases the cost of the transcription. Use it when accuracy for specific terms is critical.

How to Use It

Using the feature is as simple as adding two fields to your multipart/form-data request.

Python SDK Example

from fennec_asr import FennecASRClient

asr_client = FennecASRClient(api_key="YOUR_API_KEY")

transcription = asr_client.transcribe_file(
    file_path="bartholomew.mp3",
    context="The company they are talking about is called Bartholomew Bros, correct any potential misinterpretations in the script.",
    apply_contextual_correction=True
)

print(transcription)

Example Result

Contextual correction can fix errors that would be impossible to resolve without external knowledge.

Before Correction

Transcript:
Alright team, let's sync up on the Q3 project deliverables for Bahamian bureaus. The primary goal is to finalize the user interface mockups by Wednesday.

After Correction

Context Provided: The company they are talking about is called Bartholomew Bros, correct any potential misinterpretations in the script.Transcript:
Alright team, let's sync up on the Q3 project deliverables for Bartholomew Bros. The primary goal is to finalize the user interface mockups by Wednesday.

Deeper Use Cases

This feature is also very useful for dynamic formatting work and subtle adjustments to anything in the text:

Before Contextual Adjustment

Transcript:
The Fennec fox is a small fox native to the deserts of North Africa, ranging from Western Sahara and Mauritania to the Sinai Peninsula.
Its most distinctive feature is its unusually large ears, which serve to dissipate heat and listen for underground prey.
The fennec is the smallest fox species. Its coat, ears, and kidney functions have adapted to the desert environment with high temperatures and little water.
The Fennec fox mainly eats insects, small mammals, and birds. It has a lifespan of up to fourteen years in captivity and about ten years in the wild.
Pups are preyed upon by the pharaoh eagle owl. Both adults and pups may possibly fall prey to jackals and striped hyenas.
Fennec families dig out burrows in the sand for habitation and protection, which can be as large as 120 meters squared, and adjoin the burrows of other families.
Precise population figures are not known, but are estimated from the frequency of sightings.
These indicate that the fennec fox is currently not threatened by extinction.
Knowledge of social interactions is limited to information gathered from captive animals.
The fennec fox is commonly trapped for exhibition or sale in North Africa, and it is considered an exotic pet in some parts of the world.

After Contextual Adjustment

Context Provided: De-capitalize all proper nouns, unless they are the start of a sentenceTranscript:
The fennec fox is a small fox native to the deserts of north africa, ranging from western sahara and mauritania to the sinai peninsula.
Its most distinctive feature is its unusually large ears, which serve to dissipate heat and listen for underground prey.
The fennec is the smallest fox species. Its coat, ears, and kidney functions have adapted to the desert environment with high temperatures and little water.
The fennec fox mainly eats insects, small mammals, and birds. It has a lifespan of up to fourteen years in captivity and about ten years in the wild.
pups are preyed upon by the pharaoh eagle owl. Both adults and pups may possibly fall prey to jackals and striped hyenas.
fennec families dig out burrows in the sand for habitation and protection, which can be as large as 120 meters squared, and adjoin the burrows of other families.
Precise population figures are not known, but are estimated from the frequency of sightings.
These indicate that the fennec fox is currently not threatened by extinction.
Knowledge of social interactions is limited to information gathered from captive animals.
The fennec fox is commonly trapped for exhibition or sale in north africa, and it is considered an exotic pet in some parts of the world.

Tips for Writing Effective Context

  • Be Specific: Instead of writing “The book is called ‘Agoraphobia in Romanesque Society’” in the context field, write “The book being talked about is ‘Agoraphobia in Romanesque Society’, please ensure that anything that seems like it could be a misinterpretation of the title is replaced with this book title. Also, anytime someone says an abbreviation of the title (ARS) or what sounds like an abbreviation, replace it with the title.”
  • Provide Correct Spellings: Include a list of correctly spelled names and jargon, e.g., “Key terms to replace in this script: OAuth 2.0, Kubernetes, FastAPI, Pydantic.”
  • Keep it Concise: A few clear sentences are more effective than a long, rambling paragraph. Specific examples are helpful as well.