Voicecontrol
Voice Control module for MagicMirror based on Snowboy
Install / Use
/learn @alexyak/VoicecontrolREADME
Module: Voice Control
The voicecontrol module allows to use voice control in the MagicMirror.
This module based on the https://snowboy.kitt.ai/. The snowboy.kitt has a few dependencies which you can install running this command line on your raspberry pi:
sudo apt-get install python-pyaudio python3-pyaudio sox
Using the module
In order to use this module you should create a trained model for each command/keyword at https://snowboy.kitt.ai/. Download the model and copy it into the root of the MagicMirror directory. Besides recognizing the voice commands the module could display a list of commands on the mirror.
To use this module, add it to the modules array in the config/config.js file with the following settings:
modules: [
{
module: 'voicecontrol',
position: 'bottom_left',
config: {
models: [
{
keyword: "playMusic", // keyword
description: "Say 'Play Music' to start playing",
file: "playMusic.pmdl", // trained model file name
message: "PLAY_MUSIC" // notification message that's broadcast in the MagicMirror app
},
{
keyword: "stopMusic",
description: "Say 'Stop Music' to stop playing",
file: "stopMusic.pmdl",
message: "STOP_MUSIC"
},
]
}
}
]
When a command is detected a notification message is send with sendNotification to every other module. You will need to subscribe for a specific type of message in your module:
notificationReceived: function(notification, payload, sender) {
if (notification === "PLAY_MUSIC"){
this.media.play();
}
if (notification === "STOP_MUSIC"){
this.media.pause();
}
},
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
