I read through the W3C docs on this and I'm thinking that custom words come from custom grammar, but I tried going to this demo and in the console entered the following javascript:
recognition.grammars.addFromString('foo');
Which ran fine and recognition.grammars[0].src
returns: "data:application/xml,foo"
Note: 'foo' is not the word I'm interested in, but the word I'm interested in isn't an english word, using 'foo' for the example. When I speak my custom word normally, it thinks I'm saying something else (which makes sense). I'm using 'foo' here to protect my brand :)
So what I want is to be able to say "Hey, foo" similar to how "Ok, Google" works. But my "foo" word is not an actual word so the SpeechRecognitionResult
doesn't have my custom word.
Am I misunderstanding how to add custom words, or is this not possible today?