The phrase is what the decoder attempts to match to speech.
A phrase can be in one or more of the following formats.
One of more words.
Examples:
"California"
"how do I"
BNF format.
Example:
"[that's] (right | correct)" - that's right, that's correct , right or correct
Raw phonemes (inclosed in curly braces {} )
Example:
"{Y EH S P L IY Z}" - yes please
Combination of above formats
Example:
"is that ( correct | {R AY T} )" - is that correct or is that right
The engine has an internal dictionary of approxiamately 120,000 words. There is also a robust phonetic speller for words not found in the dictionary. The only valid punctuation marks are the apostrophe (') and the dash. Dashes should be used for multiple words that should be looked up in the internal dictionary as a single word, an example being new-orleans. If the multiple words do not exist in the dictionary the dashes will be replaced by spaces words will be looked up in the dictionary separately.
BNF is an acronym for "Backus Naur Form". We use only terminal symbols. The pipe "|" is an OR operator and the square brackets "[ ]" surround optional words. The parenthesis clarify order of operation and nesting. Here are some examples.
( (I would like to speak | Please connect me ) with ) John Doe [please]
translates to these variations:
I WOULD LIKE TO SPEAK WITH JOHN DOE PLEASE
PLEASE CONNECT ME WITH JOHN DOE PLEASE
I WOULD LIKE TO SPEAK WITH JOHN DOE
PLEASE CONNECT ME WITH JOHN DOE
I ( want | need ) [ to ( know | hear ) ] [ the ] directions [ to ]
I WANT TO KNOW THE DIRECTIONS TO
I NEED TO KNOW THE DIRECTIONS TO
I WANT TO HEAR THE DIRECTIONS TO
I NEED TO HEAR THE DIRECTIONS TO
I WANT THE DIRECTIONS TO
I NEED THE DIRECTIONS TO
I WANT TO KNOW DIRECTIONS TO
I NEED TO KNOW DIRECTIONS TO
I WANT TO HEAR DIRECTIONS TO
I NEED TO HEAR DIRECTIONS TO
I WANT DIRECTIONS TO
I NEED DIRECTIONS TO
I WANT TO KNOW THE DIRECTIONS
I NEED TO KNOW THE DIRECTIONS
I WANT TO HEAR THE DIRECTIONS
I NEED TO HEAR THE DIRECTIONS
I WANT THE DIRECTIONS
I NEED THE DIRECTIONS
I WANT TO KNOW DIRECTIONS
I NEED TO KNOW DIRECTIONS
I WANT TO HEAR DIRECTIONS
I NEED TO HEAR DIRECTIONS
I WANT DIRECTIONS
I NEED DIRECTIONS