Alexyak this is great thanks! The iex API seems to only support US stocks. Any chance of integrating Alphavantage into this great module? Would love to get some CDN ( TSX ) stocks into it
Thanks!
Alexyak this is great thanks! The iex API seems to only support US stocks. Any chance of integrating Alphavantage into this great module? Would love to get some CDN ( TSX ) stocks into it
Thanks!
@sean is it possible you can elaborate on these settings in config? I only want to use Google assistant, so have commented out the “MIRROR” hotword, but sometime the MIC picks up on words that are not like my trained model, and sits on the assistant logo waiting for something, and there’s no way to get out of it without restarting the mirror. ie, these settings in particular:
sensitivity:
{
file: "resources/google.pmdl",
sensitivity: 0.7,
hotwords : "ASSISTANT" //One of models should be "ASSISTANT"
}
silence and verbose:
record: {
threshold: 0, //Ignore this. I think you don't need to change this.
verbose:false, //true for checking recording status.
recordProgram: 'arecord', //You can use 'rec', 'sox'. But I recommend use 'arecord'.
silence: 2.0 //Ignore this. I think you don't need to change this.
},
Thanks again!
Really looking forward to seeing this akshaybahadur21 Thanks very much
Just wanted to repost here, @sean thanks and got it going. This is an INCREDIBLE module and thank you. My problem was with my MIC after setup. If anyone else is coming across this, this link here helped to get my MIC setup properly:
Great module @sean absolutely incredible! Thanks
Thanks very much @sean appreciated. I did re install, and ran google-auth then electron-rebuild. After that, I did have to rename the folders from electron-v1.4-linux-arm-{libc} to electron-v1.4-linux-arm-glibc and everything loaded! :) I created my own models smartmirror.pmdl, and snowboy.pmdl ) with snowboy from the RPI that is running MM with the MIC, and running the following two commands I can record and play back WAV files with arecord:
arecord --device=plughw:1,0 --format S16_LE --rate 44100 -c1 test.wav
aplay --device=plughw:0,0 test.wav
When MM startups up, I can here an initial ding, but cannot trigger any key word detection for some reason? I was wondering if my config might be off? Below is my configuration:
{
module: 'MMM-Assistant',
position: 'bottom_left',
config: {
assistant: {
auth: {
keyFilePath: "secret.json", //When you want to change the location of this file, set this.
savedTokensPath: "resources/tokens.js" //When you want to change the location of this file, set this.
},
audio: {
encodingIn: "LINEAR16", //Ignore this. I think you don't need to change this.
sampleRateOut: 16000 //Ignore this. I think you don't need to change this.
}
},
snowboy: {
models: [
{
file: "resources/smartmirror.pmdl",
sensitivity: 0.5,
hotwords : "MIRROR" //One of models should be "MIRROR"
},
{
file: "resources/snowboy.pmdl",
sensitivity: 0.5,
hotwords : "ASSISTANT" //One of models should be "ASSISTANT"
}
]
},
record: {
threshold: 0, //Ignore this. I think you don't need to change this.
verbose:false, //true for checking recording status.
recordProgram: 'arecord', //You can use 'rec', 'sox'. But I recommend use 'arecord'.
silence: 2.0 //Ignore this. I think you don't need to change this.
},
stt: {
auth: [{
projectId: 'smartmirror-XXXXX-REMOVED', //ProjectId from Google Console
keyFilename: 'config.stt.auth.json'
}], //You can use multi accounts for saving money.
request: {
encoding: 'LINEAR16', //Ignore this. I think you don't need to change this.
sampleRateHertz: 16000, //Ignore this. I think you don't need to change this.
languageCode: 'en-US' //See https://cloud.google.com/speech/docs/languages
},
},
speak: {
useAlert: true, //If you want to show the text of speech, set this true. But It could be ignored by command of modules directly.
language: 'en-US', //If you want to set the default language of speech of command result, set this.
},
alias: [
{
"help :command" : ["teach me :command", "what is :command"]
}
] // You can use aliases for difficult pronunciation or easy using.
}
},
I am trying to activate using snowboy, smartmirror, assistant, google, etc but it never triggers.
Thanks @sean really appreciated.
Awesome, and chance of getting alpha api to work for Canadian Stocks? ;) Thanks
Thank you @Sean appreciated! I tried that ( also tried the steps outlined here ) : https://github.com/eouia/MMM-Assistant/wiki/Urgent-Issue-on-installation
And after install Ihad two folders in /home/pi/MagicMirror/modules/MMM-Assistant/node_modules/grpc/src/node/extension_binary/
electron-v1.4-linux-arm-{libc}
and
node-v48-linux-arm-glibc
I renamed the folder electron-v1.4-linux-arm-{libc} to electron-v1.7-linux-arm-glibc but when I run
cd /modules/MMM-Assistant
node google-auth.js
I get the following error:
pi@smartmirror1:~/MagicMirror/modules/MMM-Assistant $ node google-auth.js
module.js:597
return process.dlopen(module, path._makeLong(filename));
^
Error: Module version mismatch. Expected 48, got 50.
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/pi/MagicMirror/modules/MMM-Assistant/node_modules/google-assistant/node_modules/grpc/src/node/src/grpc_extension.js:38:15)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
pi@smartmirror1:~/MagicMirror/modules/MMM-Assistant $
I am also getting this error unfortunately… I beleive it might be due to this:
“Currently under Electron 1.7, there might be non-compatible issues of grpc. I will make a patch for this, but it will take somewhat time. sorry.”
Alexyak this is great thanks! The iex API seems to only support US stocks. Any chance of integrating Alphavantage into this great module? Would love to get some CDN ( TSX ) stocks into it
Thanks!