Best Practices
Apply Noise Cancellation
For optimal translation quality, apply Krisp Noise Cancellation to the input audio before sending it to the Voice Translation SDK. Cleaner audio improves speech recognition accuracy and downstream translation quality, especially in noisy environments.
Use Custom Vocabulary
Use Custom Vocabulary to improve speech-to-text accuracy by supplying domain-specific words, names, acronyms, or phrases that are uncommon in everyday speech.
Custom Vocabulary influences transcription probabilistically and is applied at session startup. Improving recognition upstream directly improves translation quality, particularly for proper nouns and technical terminology.
INSERT - code snippet and format
Use Custom Dictionary
Use Custom Dictionary to explicitly control how specific terms are transcribed or translated by defining input-to-output mappings.
Unlike Custom Vocabulary, Custom Dictionary applies deterministic overrides, ensuring consistent and predictable output. It is best suited for standardizing terminology, enforcing preferred spellings, and normalizing known variants or misrecognitions.
INSERT - code snippet and format
Vocabulary vs. Dictionary (When to Use Which)
- Use Custom Vocabulary to help the system recognize new or rare terms.
- Use Custom Dictionary to enforce how recognized terms should appear in the translated output.
Updated 21 days ago
