AssemblyAI Keyterms
Speech recognition enhancement feature that biases transcription models toward specific words or phrases, improving accuracy for domain-specific vocabulary and trigger phrases in voice interface applications.
Core Functionality
Transcription Biasing
Vocabulary Enhancement: Increases likelihood of correctly recognizing specified terms even when pronunciation or acoustic conditions might otherwise cause misrecognition.
Context Adaptation: Adapts general speech recognition models to specific use cases without requiring custom model training.
Multi-language Support: Works across different language models while maintaining the same API interface and configuration patterns.
Integration Patterns
Wake-Word Reinforcement: Enhances recognition of wake-words like "Xiexie" that may be uncommon in general training data, reducing false negatives in voice activation systems.
Command Recognition: Improves accuracy for specific command phrases like "thank you" that serve as conversation termination signals.
Domain Vocabulary: Boosts recognition of technical terms, proper nouns, or specialized vocabulary relevant to specific applications.
Implementation Strategy
Keyterm Selection
High-Value Terms: Focus on words that are critical to application functionality but may be poorly represented in general ASR training data.
Phonetic Variants: Include alternative spellings or phonetic representations of the same concept to catch different pronunciation patterns.
Graceful Degradation: System should function correctly even when keyterms are not recognized, providing fallback mechanisms.
Configuration Management
{
"word_boost": [
{"word": "Xiexie", "boost": "high"},
{"word": "thank you", "boost": "high"},
{"word": "merci", "boost": "medium"}
]
}
Boost Levels: Different intensity levels for different terms based on their importance to application functionality.
Dynamic Updates: Ability to modify keyterm lists based on user behavior or application state changes.
Voice Interface Applications
Conversation Flow Control
Session Initiation: Wake-word keyterms enable reliable voice activation without manual triggers.
Natural Termination: Close-word detection through keyterms provides intuitive conversation ending without timeouts.
Context Switching: Different keyterm sets for different application modes or conversation states.
User Experience Enhancement
Reduced Friction: More reliable recognition of user commands reduces need for repetition or manual interaction.
Natural Language: Supports conversational patterns that feel natural to users rather than rigid command structures.
Accessibility: Particularly valuable for applications targeting users who may have difficulty with traditional input methods.
Technical Implementation
Real-time Processing
Streaming Integration: Works with AssemblyAI's real-time transcription API to provide immediate keyterm recognition.
Partial Transcript Monitoring: Enables detection of keyterms in partial transcripts before sentence completion for responsive interaction.
Confidence Scoring: Provides confidence metrics for keyterm matches to enable application-level decision making.
Performance Considerations
Processing Overhead: Minimal impact on transcription latency while providing significant accuracy improvements for target vocabulary.
Memory Usage: Keyterm lists are held in memory during transcription sessions, requiring consideration for resource-constrained environments.
API Limits: Understanding rate limits and usage patterns for applications with continuous keyterm-enhanced transcription.
Production Deployment
Quality Assurance
A/B Testing: Compare recognition accuracy with and without keyterms to quantify improvement for specific use cases.
User Feedback Integration: Monitor user correction patterns to identify additional keyterms that should be added.
Performance Monitoring: Track keyterm hit rates and false positive patterns to optimize boost levels.
Maintenance Patterns
Vocabulary Evolution: Regular updates to keyterm lists based on application usage patterns and user feedback.
Language Adaptation: Adjusting keyterm sets for different user populations or geographic regions.
Version Control: Tracking keyterm configuration changes alongside application releases for debugging and rollback capabilities.
See also
- End-to-End Voice AI Pipelines
- Conversational AI Architectures
- openwakeword
- xiexie-senior-safety-app