@frodrd00 Hey sorry i didn’t try this. Maybe i find time in the Christmas vacations but exams are near so i can’t promise you :P
Read the statement by Michael Teeuw here.
Posts made by GinSeng
-
RE: VoiceControl module
-
RE: VoiceControl module
@Jeff
Lets see if i can make a complete list for you.
Step 1. cd in your MagicMirror/module folder then git clone the modul ( https://github.com/alexyak/voicecontrol.git )
Step 2. cd in the voice module and install dependencies ( sudo apt-get install python-pyaudio python3-pyaudio sox )
Step 3. Create snowboy files and copy them into the ( im not sure which works i copied them in 3 placed) 1. voice control module 2. mm-music-player module and MagicMirror folder
Step 4. cd into your mm-music-player and sudo nano mm-music-player.js add following lines after this lines:
start: function() {
Log.info("Starting module: " + this.name);
},->> Add this
notificationReceived: function(notification, payload, sender) {
if (notification === “PLAY”){
var playButton = document.getElementById(‘play-button’);
playButton.click();if (notification === “STOP”){
var pauseButton = document.getElementById(‘pause-button’);
pauseButton.click();then go down to
playButton.className = "play"; playButton.innerHTML = '<i class="fa fa-play" aria-hidden="true"></i>';
playButton.id = ‘play-button’;
pauseButton.className = "pause"; pauseButton.innerHTML = '<i class="fa fa-pause" aria-hidden="true"></i>';
pauseButton.id = ‘pause-button’;
Then cd in your MagicMirror config and sudo nano config.js
and add the following lines
{
module: ‘voicecontrol’,
position: ‘bottom_right’,
config: {
models: [
{
keyword: “play music”, // keyword
description:
file: “yourfile.pmdl”,
message: “PLAY”,
},
{
keyword: “stopmusic”, // keyword
description:
file: “yourfile.pmdl”,
message: “STOP”
},This should be all.
If it doesn’t work, feel free to write me a PM.
greez GinSeng -
Voicecontrol : Microphone stopped working
Hey everybody, i use the voicecontrol from @alexyak and the mm-music-player from @EoF. I managed to control the music player with my voice (play, stop, back, forward) it worked pretty well for about 2 days. Then suddenly it stopped working, the modules and everything works fine. So i take a look at the pm2 logs mm. This is the log :
pi@raspberrypi:~ $ pm2 logs mm
[TAILING] Tailing last 10 lines for [mm] process (change the value with --lines option)
/home/pi/.pm2/logs/mm-error-0.log last 10 lines:
0|mm | File “./modules/voicecontrol/snowboy/kws-multiple.py”, line 34, in
0|mm | detector = snowboydecoder.HotwordDetector(models, sensitivity=sensitivity)
0|mm | File “/home/pi/MagicMirror/modules/voicecontrol/snowboy/snowboydecoder.py”, line 115, in init
0|mm | stream_callback=audio_callback)
0|mm | File “/usr/lib/python2.7/dist-packages/pyaudio.py”, line 747, in open
0|mm | stream = Stream(self, *args, **kwargs)
0|mm | File “/usr/lib/python2.7/dist-packages/pyaudio.py”, line 442, in init
0|mm | self._stream = pa.open(**arguments)
0|mm | IOError: [Errno Invalid sample rate] -9997So i tested the microphone (snowboy homepage), it doesn’t record anything. Next stepped i plugged my micro into my laptop and tested it there - works perfect.
I googled around the error messages but i couldn’t find any help which worked for me.I would be glad if someone can help me. Thanks in advance
Greetings
GinSeng
-
RE: VoiceControl module
I want to say a big thank your @gismo2006 for helping me at the voice control via message. I want to share my solution and gismos help just in case someones also struggles with this.
- It is important to record your voice with the raspberry pi and the connected microphone ( Was my first mistake i record them at my laptop with the internal microphone)
- Copy the .pdml files in the home/pi/MagicMirror folder and just in case also in the voicecontroll module.
- Copy the name of the pdml files and don’t write them manually in the config.js
Again a big thank you at @gismo2006 for the help and @alexyak for the module :).
Greetings GinSeng
-
RE: Mobile app (bachelor thesis)
Done ! :)
Good luck with your bachelor thesis.
-
RE: VoiceControl module
ger: Kein Problem :) Ja bin auch deutsch. Okay wäre super und auch einfacher für mich :D
eng: No Problem :) Yep also german. That would be great and also easier for me
-
RE: VoiceControl module
Hey Gismo, i would really appreciate that :) Thank you.
Maybe you can also help me with the pdml files. I’m not sure if i copied them into the right folder ( example: sudo mv machmusik.pdml / root).Greets GinSeng