Chapter 14, Voice Communication with a Robot Using Mycroft
Why would the user define multiple variations for each vocabulary part?
When you talk, you naturally use synonyms: different ways to say the same thing. Without expressing those in the vocabulary file, Mycroft is not able to pick them up.
Similarly, why would they do this for the dialogs?
To make Mycroft's responses seem more natural, as it will randomly pick synonymous phrases from the dialog
Why did we wrap our intent with a try/catch?
So we can ensure that Mycroft speaks to us if it fails to contact the robot, and logs the problem somewhere
What is the significance of the en-usstring in the vocab/dialog file structures?
This is a language code. Mycroft will be allowing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.