Comments (5)
@krisgesling , yes, I see those there. In the back of my mind I figured they were for localization.
However, as skills scale up, starting complex drastically increases complexity. For example, I will be trying to create a skill that creates other skills. It will be much. much easier to accomplish that small feat with a simplified 'seed' skill, that references a single file holding json data for all intents, dialog, vocab, etc.. than trying to create and write to all those files.. localization could be done within that..
Step by step Im appreciating the complexity (and therefore power) of mycroft, but I always try to start dirt simple, because it has saved me from overcomplicating code many times. That said, I may have to come back to some of the builtin complexity of mycroft as I learn more functionality. ..until then though, Im hoping not.. ;)
..so I hope you can see the counterargument for not using all those various files.. and not trying to cause any rifts here, as were all on the same team! just explaining
from mycroft-skills.
Actually, just putting:
self.speak('what was that?')
self.bus.emit(Message('mycroft.mic.listen'))
return True
in place of:
#self.speak_dialog('unknown')
in fallback-unknown seems to work..
from mycroft-skills.
Hey, we strongly encourage the use of dialog and vocab files rather than having the messages directly in the code. It is generally easier to read the code, and makes it translatable for those using Mycroft in other languages.
Did you have a dialog/en-us/unknown.dialog
file for the above?
from mycroft-skills.
Speaking of, I need to understand 'contexts' next, and/or how I can use some kind of fallback skill to catch all commands of a single context, without having the commands overlap intents, Open Chrome vs Open Homepage or Open file for example.
from mycroft-skills.
Yeah totally understand starting simple and building up :)
For contexts, the docs need some love but here are some example skills to give you an idea:
However for the open examples, I'd probably use Adapt intents, each would require two keywords
- "open"
- [ application, webpage, file ]
I believe someone else took a similar approach and dynamically generated the 2nd keyword but I can't find it right now :(
from mycroft-skills.
Related Issues (20)
- QuestionsAnswersSkill times out HOT 2
- [Feature] Support Ring HOT 1
- Feature request: Intercom HOT 3
- Remove deprecated values from Skills settingsmeta HOT 7
- Make tagged releases of skills HOT 2
- New Skill: CLI-Command-Skill HOT 5
- [Improvement] Home in languages other than English HOT 1
- New Skill: desktop window tool and dictation HOT 4
- [WIP] Adding interval support to timer HOT 1
- Skill test for updated skills fails, can't extract author
- Skill Meta Editor - icon prefix changed in FA 5
- Removal of mycroft-stock from test config wiping default.yml
- Mycroft-weather doesn't seem to upgrade cleanly HOT 2
- Pulseaudio daemon sometimes fails on startup in CI
- [CI] Docker prunes may clash
- LLM integration skill HOT 1
- New skill: LLM integration HOT 1
- Feature request: Add Vocab File Auto test if language is set to a value other than `en-us` HOT 6
- msm update - Error running update_skill on fallback-query: Fast-forwarding not possible HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mycroft-skills.