Тёмный

How to Create a Custom Skill for Mycroft AI Voice Assistant on Raspberry Pi | Digi-Key Electronics 

DigiKey
Подписаться 159 тыс.
Просмотров 19 тыс.
50% 1

In this tutorial, we will build a custom skill for the Mycroft AI voice assistant to listen for custom phrases, respond with a voice prompt, and control some hardware.
Smart speakers use voice assistants, like Alexa and Siri, to respond to spoken commands and perform a number of tasks, such as giving us the weather forecast, news updates, search results, etc. They can even order items and play games with us.
However, many of the popular voice assistants are proprietary, which are difficult to customize. As a result, we can turn to the open-source Mycroft AI platform if we want to easily implement our own functionality, which is known as a “skill.”
In this tutorial, we show you how to load the Mycroft AI service onto a Raspberry Pi using a pre-built image known as Picroft. We register the device on the Mycroft homepage, as the voice assistant requires powerful machine learning programs that run on Internet-connected servers.
Next, we connect an LED and servomotor to the Raspberry Pi and install dependencies that will allow us to control the hardware via Python.
Finally, we create a custom Mycroft skill using Python that listens for a couple of key phrases and responds by blinking the LED and moving the servo. The skill will also respond using a custom phrase with Mycroft’s voice synthesis program.
The written form of this guide can be found here:
www.digikey.co...
The idea for this tutorial came from Jayy’s desire for a companion bot that can hold a conversation or perform simple actions when requested. By using a voice assistant program, we can begin to create something that approximates artificial intelligence and offer a higher degree of interaction with humans.
Creating a Mycroft skill requires implementing several functions in a custom class that inherits the MycroftSkill class. Mycroft will automatically instantiate an object of our class and call certain functions within that class. We use a decorator and callback function to handle commands that have been interpreted by Mycroft’s intention parser and that match our declared intention statements.
The Mycroft skill documentation can be found here: mycroft-ai.git...
Product Links:
Raspberry Pi 4B:
www.digikey.co...
Pololu Micro Maestro servo controller:
www.digikey.co...
Related Videos:
Jayy’s companion bot with Mycroft AI:
/ 1495921164497076224
Related Project Links:
How to Create a Custom Skill for Mycroft AI on Raspberry Pi:
www.digikey.co...
Related Articles:
Python Programming Tutorial: Getting Started with the Raspberry Pi:
www.digikey.co...
Learn more:
Maker.io - www.digikey.co...
Digi-Key’s Blog - TheCircuit www.digikey.co...
Connect with Digi-Key on Facebook / digikey.electronics
And follow us on Twitter / digikey

Опубликовано:

 

23 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@SolidusPie
@SolidusPie 2 года назад
👏👏 I love this project you have explained this perfectly
@CD3MC
@CD3MC Год назад
Just a heads up, using anything from a GitHub that is named FRC and then 4 numbers is usually a bad idea, as chances are it was coded for the First Robotics Competition, and therefore won't be even close to maintained...
@samsungtelevision695
@samsungtelevision695 2 года назад
Mycroft is really awesome. This project is exciting a f
@JureS
@JureS 2 года назад
this was great!
@floridasurfersrule
@floridasurfersrule Год назад
Jayy needs a youtube channel...or does he have one already?
@Jerseylance1
@Jerseylance1 2 года назад
Great video 🔥🔥🔥🔥🔥
@Jerseylance1
@Jerseylance1 2 года назад
Can I use a AX-12 dynamixel servo?
@claudioguendelman
@claudioguendelman 2 года назад
Great. thanks, i want to know how can i use php to interact with mycroft ? Thanks from Chile Claudio
@OhHeyTrevorFlowers
@OhHeyTrevorFlowers 2 года назад
I like this topic and both people but the audio clipping made the video unwatchable for me.
Далее
Raspberry Pi AI: Picroft Voice Assistant
21:34
Просмотров 164 тыс.
Control ANY COMPUTER with these Pi KVMs!
17:46
Просмотров 828 тыс.
Picroft: A Raspberry Pi voice assistant named Mycroft
26:59
4 Ai Personal Assistants (3 Tested)
6:19
Просмотров 62 тыс.