standards-positions
standards-positions copied to clipboard
Web Speech API Contextual Biasing
WebKittens
@marcoscaceres
Title of the proposal
Web Speech API Contextual Biasing
URL to the spec
https://webaudio.github.io/web-speech-api/#speechreco-phrase
URL to the spec's repository
https://webaudio.github.io/web-speech-api/
Issue Tracker URL
No response
Explainer URL
No response
TAG Design Review URL
No response
Mozilla standards-positions issue URL
https://github.com/mozilla/standards-positions/issues/1255
WebKit Bugzilla URL
No response
Radar URL
No response
Description
The Web Speech API's contextual biasing functionality allows developers to improve the accuracy of speech recognition by providing a list of specific words or phrases that are likely to be spoken. This is accomplished by creating a SpeechRecognitionPhraseList containing SpeechRecognitionPhrase objects, each with a text string and a numerical "boost" value to indicate how much more likely that phrase is. This enables the speech recognizer to be tailored to the specific context of a web application, such as one containing unique brand names or technical jargon. By giving the recognizer these hints, it is less likely to misinterpret these specific terms, leading to a more accurate and reliable user experience.