Giter VIP home page Giter VIP logo

Comments (5)

auwsom avatar auwsom commented on June 11, 2024 1

@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.

auwsom avatar auwsom commented on June 11, 2024

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.

krisgesling avatar krisgesling commented on June 11, 2024

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.

auwsom avatar auwsom commented on June 11, 2024

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.

krisgesling avatar krisgesling commented on June 11, 2024

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

  1. "open"
  2. [ 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.