<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rishabh doshi on Medium]]></title>
        <description><![CDATA[Stories by Rishabh doshi on Medium]]></description>
        <link>https://medium.com/@doshirishabh26?source=rss-1a6099c77c47------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*lFLywEUsp8Pb_3Ei.jpg</url>
            <title>Stories by Rishabh doshi on Medium</title>
            <link>https://medium.com/@doshirishabh26?source=rss-1a6099c77c47------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 16:25:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@doshirishabh26/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A beginner’s guide for developing Mycroft skills]]></title>
            <link>https://medium.com/@doshirishabh26/a-beginners-guide-for-developing-mycroft-skills-deeca0448510?source=rss-1a6099c77c47------2</link>
            <guid isPermaLink="false">https://medium.com/p/deeca0448510</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[mycroftai]]></category>
            <dc:creator><![CDATA[Rishabh doshi]]></dc:creator>
            <pubDate>Sat, 22 Jun 2019 16:01:44 GMT</pubDate>
            <atom:updated>2019-06-22T16:01:44.400Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*kchpZ9HOWaNop1zUsLOOBw.png" /></figure><p>“As i woke up with sound of my brother talking to Google Assistant. I was thinking how deeply integrated our life is going to be on AI assistants. This feeling makes me happy and sad at the same time ”</p><p>This thought made me wonder if there are any open source AI assistant’s , so I looked up and sure enough , I was able to find <strong>Mycroft</strong> .</p><p>we have always been pondering upon how Alexa or google assistant work , sure enough we are able to see this in Mycroft .</p><p>What is more cool we can also make a skill for this assistant , which is really really simple.</p><p><a href="https://mycroft.ai/">Mycroft - The Open Source Privacy-Focused Voice Assistant - Mycroft</a></p><h3>Prerequisites</h3><p>One must have a Linux based Operating system with git /docker installed.</p><p>There is a another process for those who are familiar with docker .</p><p><a href="https://hub.docker.com/r/mycroftai/docker-mycroft/dockerfile/">mycroft</a>-for-docker</p><p><strong>Steps to set up Mycroft</strong></p><p>Go to the github repo of mycroft and clone it on your computer.</p><pre>$ git clone <a href="https://github.com/MycroftAI/mycroft-core.git">https://github.com/MycroftAI/mycroft-core.git</a></pre><p>We go to the Mycroft-core directory and run the setup script .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*RvgECPQou0tIl9u4VNeSAA.png" /></figure><pre>$ bash dev_setup.sh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*OMqZgUAsVoWRgRvJXeCpMg.png" /></figure><p>The final step is to start Mycroft just go inside the Mycroft-core directory and run any of the following</p><pre>$ ./start-mycroft.sh debug</pre><pre>$./start-mycroft.sh cli</pre><p>I prefer the first one as it generates the log and will be helpful to you in the future if you work on Mycroft .</p><p>This is what you get on the terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EJ3d1pqHoM4TN2MuYKkhcg.png" /></figure><p>After this ,you may pair up your device by making a account at M<a href="http://mycroft.ai/">ycroft</a> and click on profile pic , then devices . now you are all set up for testing your device ,now to look at the sample skills you may explore Mycroft-core directory for skills or you may clone this directory</p><p><a href="https://github.com/MycroftAI/mycroft-skills.git">mycroft skills</a></p><p>Opening up Mycroft skills directory you may see skill template directory open this up in explorer in Ubuntu or int list the directories and the files</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*r8SB_Tz-8WzhI-ks9IX8ww.png" /><figcaption>the skill template</figcaption></figure><p>you may not see the test directory as I used it for integration tests.</p><p>The dialog directory contains the sentences to be spoken by Mycroft .</p><p>The vocab directory contains the list of the user sentences which will be spoken by the user</p><p>When we go inside the dialog or the vocab directory we will be seeing a folder for different languages the default language is en-us , you may search for more language codes at the website .</p><p>Opening any file with extension .dialog for the dialog folder (.voc for the vocab folder)</p><pre>$ cat hello.world.dialog<br>Hello world<br>Hello<br>Hi to you too</pre><p>you will see multiple lines , Mycroft will speak one of the lines randomly when the particular intent (sentence is invoked ) has been invoked.</p><p>similarly inside the voc file the particular intent will be triggered by any of the sentences written inside it.</p><pre>$ cat ThankYouKeyword.voc<br>thank you<br>thanks</pre><h4>So let’s discuss about “Intent”</h4><p>Intents are the action that will be generated when the user has spoken a sentence for eg- if user speaks “thank you” than the Mycroft will search for “thank you”in the .voc file if it exists , then it will trigger the intent from the __init__ .py file and a suitable dialog will be spoken by the Mycroft .</p><p>in 00_skill_template folder/directory we will also find a script __init__ which is the python script that will be first loaded by the Mycroft interpreter when the skill has been loaded . when opened we can see that there are three modules imported , these packages are already installed in virtual environment which has been set up when we have ran the bash setup script.</p><p>next we can define the author name as follows</p><pre>__author__ = &#39;doshirishabh26&#39;</pre><p>We should change the name of the class to the name of the skill to the desired name of our choice .</p><p>here we have named our skill to the Helloworld skill , our class is inheriting the MycroftSkill class</p><pre>class HelloWorldSkill(MycroftSkill):</pre><p>now the next step is to define the constructor where we can define the following</p><pre>def __init__(self):<br>        super(HelloWorldSkill, self).__init__(name=&quot;HelloWorldSkill&quot;)</pre><p>next we define the intent handlers which we define the name by ourselves</p><pre>@intent_handler(IntentBuilder(&quot;helloWorld&quot;).require(&quot;hello&quot;))<br>    def handle_query_time(self, message):<br>        self.speak_dialog(&quot;hello.world&quot;)</pre><p>this the actual intent whose name is helloWorld , .require is the name of the .voc file means that we will have hello.voc file in the vocab folder , also there is dialog file which has a name of the hello.world.dialog in the dialog folder which will be said by the Mycroft when the .voc file has been said by the user .</p><p><strong>Task : make a hello world skill which when said “hello” should return the value “hi”</strong></p><p>you may finally test the skill by copying the whole 00__skill__template to the mycroft-core/skills folder . and then running the Mycroft cli .</p><p>What’s more that can generate your own skills for your own use , also you can contribute to the skills by going to the github page of Mycroft skills , also to debug your issues and to learn more about mycroft you can visit the chat room of MycroftAI <a href="https://mycroft.ai/">chat-room-link</a>.</p><p><em>Thanks for reading! If you enjoyed this story, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it! Feel free to leave a comment </em>💬<em> below.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=deeca0448510" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>