Tout fonctionne merci énormément 😁😁😁
merci pour votre aide et votre patience pour le noob que je suis
🤩
Tout fonctionne merci énormément 😁😁😁
merci pour votre aide et votre patience pour le noob que je suis
🤩
haa d’accord merci beaucoup
pi@raspberrypi:~ $ arecord -D plughw:2 -q -r 16000 -c 1 -t wav -f S16_LE -d 3 test.wav
pi@raspberrypi:~ $ aplay test.wav
Lecture WAVE 'test.wav' : Signed 16 bit Little Endian, Fréquence 16000 Hz, Mono
pi@raspberrypi:~ $ arecord -D plughw:2 -q -r 16000 -c 1 -t wav -f S16_LE -d 3 test.wav
arecord: main:828: erreur à l'ouverture audio: Périphérique ou ressource occupé
@killerjoe34 said in MMM-GoogleAssistant note here:
aplay --format=S16_LE --rate=48000 out.raw
i think no ^^
pipi@raspberrypi:~ $ arecord --format=S16_LE --duration=5 --rate=48000 --file-type=raw out.raw
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM input
arecord: main:828: erreur à l'ouverture audio: Aucun fichier ou dossier de ce type
pi@raspberrypi:~ $ arecord --format=S16_LE --duration=5 --rate=48000 --file-type=raw out.raw
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM input
arecord: main:828: erreur à l'ouverture audio: Aucun fichier ou dossier de ce type
voici ma config.js et le
arecord -l


Merci encore pour votre aide
@sdetweil oui j essai d appeler jarvis ou google mais pas de réponse
peut etre il ne prend pas en compte mon micro usb
hey @Bugsounet and @sdetweil
i delete it re install it and now is since to work but is not on my mirror
here my npm start :
pi@raspberrypi:~/MagicMirror $ npm start
> magicmirror@2.12.0 start /home/pi/MagicMirror
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
[2020-07-15 01:23:28.851] [LOG] Starting MagicMirror: v2.12.0
[2020-07-15 01:23:28.867] [LOG] Loading config ...
[2020-07-15 01:23:28.876] [LOG] Loading module helpers ...
[2020-07-15 01:23:28.882] [LOG] No helper found for module: alert.
[2020-07-15 01:23:28.989] [LOG] Initializing new module helper ...
[2020-07-15 01:23:28.991] [LOG] Module helper loaded: updatenotification
[2020-07-15 01:23:28.993] [LOG] No helper found for module: clock.
[2020-07-15 01:23:29.821] [LOG] Initializing new module helper ...
[2020-07-15 01:23:29.823] [LOG] Module helper loaded: calendar
[2020-07-15 01:23:29.824] [LOG] No helper found for module: compliments.
[2020-07-15 01:23:29.826] [LOG] No helper found for module: currentweather.
[2020-07-15 01:23:29.827] [LOG] No helper found for module: weatherforecast.
[2020-07-15 01:23:33.352] [LOG] Initializing new module helper ...
[2020-07-15 01:23:33.355] [LOG] Module helper loaded: MMM-GoogleAssistant
[2020-07-15 01:23:33.358] [LOG] No helper found for module: MMM-SwissCommute.
[2020-07-15 01:23:34.709] [LOG] Initializing new module helper ...
[2020-07-15 01:23:34.711] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify
[2020-07-15 01:23:34.795] [LOG] Initializing new module helper ...
[2020-07-15 01:23:34.798] [LOG] Module helper loaded: newsfeed
[2020-07-15 01:23:34.799] [LOG] All module helpers loaded.
[2020-07-15 01:23:35.213] [LOG] Starting server on port 8080 ...
[2020-07-15 01:23:35.243] [INFO] You're using a full whitelist configuration to allow for all IPs
[2020-07-15 01:23:35.267] [LOG] Server started ...
[2020-07-15 01:23:35.269] [LOG] Connecting socket for: updatenotification
[2020-07-15 01:23:35.273] [LOG] Connecting socket for: calendar
[2020-07-15 01:23:35.276] [LOG] Starting node helper for: calendar
[2020-07-15 01:23:35.278] [LOG] Connecting socket for: MMM-GoogleAssistant
[2020-07-15 01:23:35.281] [LOG] Connecting socket for: MMM-NowPlayingOnSpotify
[2020-07-15 01:23:35.284] [LOG] Connecting socket for: newsfeed
[2020-07-15 01:23:35.288] [LOG] Starting node helper for: newsfeed
[2020-07-15 01:23:35.290] [LOG] Sockets connected & modules started ...
[2020-07-15 01:23:35.621] [LOG] Launching application.
[2020-07-15 01:23:41.914] [LOG] Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/maxart3.3%40gmail.com/private-b5e26bc2232a38edcb73772a3242221e/basic.ics - Interval: 300000
[2020-07-15 01:23:42.376] [LOG] Create new news fetcher for url: https://www.lemonde.fr/international/rss_full.xml - Interval: 300000
[2020-07-15 01:23:42.532] [INFO] Checking git for module: MMM-GoogleAssistant
[2020-07-15 01:23:42.621] [INFO] Checking git for module: MMM-SwissCommute
[2020-07-15 01:23:42.706] [INFO] Checking git for module: MMM-NowPlayingOnSpotify
[2020-07-15 01:23:42.800] [LOG] [ASSISTANT] MMM-GoogleAssistant Version: 2.2.1
[2020-07-15 01:23:42.831] [ERROR] (node:25329) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[2020-07-15 01:23:42.835] [ERROR] (node:25329) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[2020-07-15 01:23:44.440] [LOG] Refreshed access token because it has expired. Expired at: 01:23:42 now is: 01:23:44
[2020-07-15 01:23:44.509] [LOG] Refreshed access token because it has expired. Expired at: 02:23:44 now is: 01:23:44
[2020-07-15 01:23:45.202] [INFO] Newsfeed-Fetcher: Broadcasting 20 items.
[2020-07-15 01:23:45.224] [LOG] Refreshed access token because it has expired. Expired at: 02:23:44 now is: 01:23:45
[2020-07-15 01:23:47.028] [LOG] [SNOWBOY] Model selected: jarvis
[2020-07-15 01:23:47.042] [LOG] [SNOWBOY] snowboy v1.5.0 Initialized...
[2020-07-15 01:23:47.067] [LOG] [ASSISTANT] RECIPE_LOADED: with-MMM-TelegramBot.js
[2020-07-15 01:23:47.073] [LOG] [ASSISTANT] Use native program (mpg321) for audio response
[2020-07-15 01:23:47.078] [LOG] [SOUND] mpg321 Initialized
[2020-07-15 01:23:47.083] [LOG] [ASSISTANT] Google Assistant is initialized.
[2020-07-15 01:23:48.183] [INFO] Calendar-Fetcher: Broadcasting 4 events.
here my confi.js
/* Magic Mirror Config Sample
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*/
var config = {
port: 8080,
ipWhitelist: [], // Set [] to allow all IP addresses.
language: "fr",
timeFormat: 24,
units: "metric",
modules: [
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_left"
},
{
module: "calendar",
header: "Calendrier",
position: "top_left",
config: {
calendars: [
{
symbol: "calendar-check-o ",
url: "https://calendar.google.com/calendar/ical/maxart3.3%40gmail.com/private-b5e26bc2232a38edcb73772a3242221e/basic.ics"
}
]
}
},
{
module: "compliments",
position: "lower_third"
},
{
module: "currentweather",
position: "top_left",
config: {
location: "Genève",
locationID: "2660646", //ID from http://www.openweathermap.org/help/city_list.txt
appid: "a159eb40caad1348cda97718adc69d6d"
}
},
{
module: "weatherforecast",
position: "top_left",
header: "Météo",
config: {
location: "Genève",
locationID: "2660646", //ID from http://www.openweathermap.org/help/city_list.txt
appid: "a159eb40caad1348cda97718adc69d6d"
}
},
{
module: "weatherforecast",
position: "top_right",
header: "Météo",
config: {
location: "",
locationID: "", //ID from http://www.openweathermap.org/help/city_list.txt
appid: ""
}
},
{
module: "MMM-GoogleAssistant",
position: "top_right",
config: {
debug: false,
assistantConfig: {
lang: "en-US",
projectId: "", // Required to use gaction.
modelId: "", // (OPTIONAL for gaction)
instanceId: "", // (OPTIONAL for gaction)
latitude: 51.508530,
longitude: -0.076132,
},
responseConfig: {
useScreenOutput: true,
screenOutputCSS: "screen_output.css",
screenOutputTimer: 5000,
activateDelay: 250,
useAudioOutput: true,
useChime: true,
newChime: false,
useNative: true,
playProgram: "mpg321"
},
micConfig: { // put there configuration generated by auto-installer
recorder: "arecord",
device: "plughw:2",
},
customActionConfig: {
autoMakeAction: false,
autoUpdateAction: false, // in RPI, gaction CLI might have some trouble.(current version should be 2.2.4, but for linux-arm, Google haven't updated) so leave this as false in RPI. I don't know it is solved or not.
actionLocale: "en-US", // At this moment, multi-languages are not supported, sorry. Someday I'll work.
},
snowboy: {
audioGain: 2.0,
Frontend: true,
Model: "jarvis",
Sensitivity: null
},
A2DServer: {
useA2D: false,
stopCommand: "stop"
},
recipes: [ "with-MMM-TelegramBot.js" ]
}
},
{
module: 'MMM-SwissCommute',
position: 'top_left',
header: 'En Louche',
config: {
from: 'Perly, En Louche', // Start train station
to: 'Lancy-Bachet', // Destination station
maximumEntries: 4, // Max departures displayed
minWalkingTime: 10 // Minimum time to get to the station
}
},
{
module: "MMM-NowPlayingOnSpotify",
position: "top_right",
config: {
clientID: "622ad97f8ed24ad9aa3b81531aae033f",
clientSecret: "418079ac53a848679c37ac9613485136",
accessToken: "BQCWLLN5elD8_f9zR7q9947jqCacUYNQ-6RzF8W_R1vx89DVTwkZBjpa1AR89PNw-yLdFziPjg_-hth6WVTPgQvekE5YPnz5ywbBzY0V_TBEa2N1hyucipaXSrmtBx5e2VaFf_SGrjzIkIeeKQ",
refreshToken: "AQA-F5RgN04XC8NP5oOymHEWY_HqW4EwzUCx28GBHfjtLiCf3ordxs55HDxSjy1NwDWJlxthmAVKCRwNUrN3sqDX51JDRVjHP6y6wDnwZ1gs2RJ2tLPwIxJM3SuAgXOAlOk"
}
},
{
module: "newsfeed",
position: "lower_third",
config: {
feeds: [
{
title: "Le Monde, Paris",
url: "https://www.lemonde.fr/international/rss_full.xml"
}
],
showSourceTitle: true,
showPublishDate: true
}
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
hello my MMM-Google assistant in loaded correctly but no google assistant :crying_face:

i@raspberrypi:~/MagicMirror $ npm start
> magicmirror@2.12.0 start /home/pi/MagicMirror
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
[2020-07-15 01:13:03.427] [LOG] Starting MagicMirror: v2.12.0
[2020-07-15 01:13:03.441] [LOG] Loading config ...
[2020-07-15 01:13:03.450] [LOG] Loading module helpers ...
[2020-07-15 01:13:03.455] [LOG] No helper found for module: alert.
[2020-07-15 01:13:03.545] [LOG] Initializing new module helper ...
[2020-07-15 01:13:03.547] [LOG] Module helper loaded: updatenotification
[2020-07-15 01:13:03.548] [LOG] No helper found for module: clock.
[2020-07-15 01:13:04.978] [LOG] Initializing new module helper ...
[2020-07-15 01:13:04.980] [LOG] Module helper loaded: calendar
[2020-07-15 01:13:04.983] [LOG] No helper found for module: compliments.
[2020-07-15 01:13:04.985] [LOG] No helper found for module: currentweather.
[2020-07-15 01:13:04.987] [LOG] No helper found for module: weatherforecast.
[2020-07-15 01:13:08.874] [LOG] Initializing new module helper ...
[2020-07-15 01:13:08.876] [LOG] Module helper loaded: MMM-GoogleAssistant
[2020-07-15 01:13:08.879] [LOG] No helper found for module: MMM-SwissCommute.
[2020-07-15 01:13:10.039] [LOG] Initializing new module helper ...
[2020-07-15 01:13:10.040] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify
[2020-07-15 01:13:10.090] [LOG] Initializing new module helper ...
[2020-07-15 01:13:10.091] [LOG] Module helper loaded: newsfeed
[2020-07-15 01:13:10.092] [LOG] All module helpers loaded.
[2020-07-15 01:13:10.394] [LOG] Starting server on port 8080 ...
[2020-07-15 01:13:10.443] [INFO] You're using a full whitelist configuration to allow for all IPs
[2020-07-15 01:13:10.474] [LOG] Server started ...
[2020-07-15 01:13:10.477] [LOG] Connecting socket for: updatenotification
[2020-07-15 01:13:10.482] [LOG] Connecting socket for: calendar
[2020-07-15 01:13:10.485] [LOG] Starting node helper for: calendar
[2020-07-15 01:13:10.489] [LOG] Connecting socket for: MMM-GoogleAssistant
[2020-07-15 01:13:10.492] [LOG] Connecting socket for: MMM-NowPlayingOnSpotify
[2020-07-15 01:13:10.495] [LOG] Connecting socket for: newsfeed
[2020-07-15 01:13:10.497] [LOG] Starting node helper for: newsfeed
[2020-07-15 01:13:10.499] [LOG] Sockets connected & modules started ...
[2020-07-15 01:13:10.826] [LOG] Launching application.
[2020-07-15 01:13:16.935] [LOG] Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/maxart3.3%40gmail.com/private-b5e26bc2232a38edcb73772a3242221e/basic.ics - Interval: 300000
[2020-07-15 01:13:17.444] [LOG] Create new news fetcher for url: https://www.lemonde.fr/international/rss_full.xml - Interval: 300000
[2020-07-15 01:13:17.566] [INFO] Checking git for module: MMM-GoogleAssistant
[2020-07-15 01:13:17.609] [INFO] Checking git for module: MMM-SwissCommute
[2020-07-15 01:13:17.644] [INFO] Checking git for module: MMM-NowPlayingOnSpotify
[2020-07-15 01:13:17.706] [LOG] [ASSISTANT] MMM-GoogleAssistant Version: 2.2.1
[2020-07-15 01:13:17.723] [ERROR] (node:24880) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[2020-07-15 01:13:17.726] [ERROR] (node:24880) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[2020-07-15 01:13:19.013] [LOG] Refreshed access token because it has expired. Expired at: 01:13:17 now is: 01:13:19
[2020-07-15 01:13:19.096] [LOG] Refreshed access token because it has expired. Expired at: 02:13:19 now is: 01:13:19
[2020-07-15 01:13:19.233] [LOG] Refreshed access token because it has expired. Expired at: 02:13:19 now is: 01:13:19
[2020-07-15 01:13:20.148] [INFO] Newsfeed-Fetcher: Broadcasting 20 items.
[2020-07-15 01:13:21.741] [LOG] [SNOWBOY] Model selected: jarvis
[2020-07-15 01:13:21.756] [LOG] [SNOWBOY] snowboy v1.5.0 Initialized...
[2020-07-15 01:13:21.768] [LOG] [ASSISTANT] RECIPE_LOADED: with-MMM-TelegramBot.js
[2020-07-15 01:13:21.772] [LOG] [ASSISTANT] Use native program (mpg321) for audio response
[2020-07-15 01:13:21.780] [LOG] [SOUND] mpg321 Initialized
[2020-07-15 01:13:21.785] [LOG] [ASSISTANT] Google Assistant is initialized.
[2020-07-15 01:13:22.926] [INFO] Calendar-Fetcher: Broadcasting 4 events.
okay thanks a lot for you help i going buy a new card a i tell you if it’s working 😃
i have that in my shelle when i try to run it
[2020-07-14 17:13:37.219] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/@bugsounet/snowboy/lib/node/index.js:12
DetectionResult[DetectionResu.ts",
^^
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:722:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
at Module.load (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)
at Module.require (internal/modules/cjs/loader.js:685:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/@bugsounet/snowboy/index.js:6:18)
at Module._compile (internal/modules/cjs/loader.js:786:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
at Module.load (internal/modules/cjs/loader.js:645:32)
okay i going right now buy a new sd card and i try it again
really beceause without google assitant my magic mirror running
this is my config.js
{
module: "MMM-GoogleAssistant",
position: "fullscreen_above",
config: {
debug: false,
assistantConfig: {
lang: "en-US",
projectId: "", // Required to use gaction.
modelId: "", // (OPTIONAL for gaction)
instanceId: "", // (OPTIONAL for gaction)
latitude: 51.508530,
longitude: -0.076132,
},
responseConfig: {
useScreenOutput: true,
screenOutputCSS: "screen_output.css",
screenOutputTimer: 5000,
activateDelay: 250,
useAudioOutput: true,
useChime: true,
newChime: false,
useNative: true,
playProgram: "mpg321"
},
micConfig: { // put there configuration generated by auto-installer
recorder: "arecord",
device: "plughw:2",
},
customActionConfig: {
autoMakeAction: false,
autoUpdateAction: false, // in RPI, gaction CLI might have some trouble.(current version should be 2.2.4, but for linux-arm, Google haven't updated) so leave this as false in RPI. I don't know it is solved or not.
actionLocale: "en-US", // At this moment, multi-languages are not supported, sorry. Someday I'll work.
},
snowboy: {
audioGain: 2.0,
Frontend: true,
Model: "jarvis",
Sensitivity: null
},
A2DServer: {
useA2D: false,
stopCommand: "stop"
},
recipes: [ "with-MMM-TelegramBot.js" ]
}
},
{
module:
i have a black screen in my mirror
at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/@bugsounet/snowboy/index.js:6:18)
at Module._compile (internal/modules/cjs/loader.js:786:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
at Module.load (internal/modules/cjs/loader.js:645:32)
[2020-07-14 16:59:18.379] [ERROR] Whoops! There was an uncaught exception...
[2020-07-14 16:59:18.380] [ERROR] /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/@bugsounet/snowboy/lib/node/index.js:12
DetectionResult[DetectionResu.ts",
^^
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:722:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
at Module.load (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)
at Module.require (internal/modules/cjs/loader.js:685:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/@bugsounet/snowboy/index.js:6:18)
at Module._compile (internal/modules/cjs/loader.js:786:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
at Module.load (internal/modules/cjs/loader.js:645:32)
[2020-07-14 16:59:18.388] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[2020-07-14 16:59:18.389] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[2020-07-14 16:59:18.557] [LOG] Launching application.
hello i try to install many time the google asssistant but is not apear in my magic mirror but is loaded
thanks ou for your help
Hey thanks you this step is done
but know im lost when i write the line
cd ~/MagicMirror/modules/MMM-GoogleAssistant
node auth_and_test.js
i got this error
pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ node auth_and_test.js
/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/google-assistant/components/auth.js:27
const oauthClient = new OAuth2(key.client_id, key.client_secret, key.redirect_uris[0]);
^
TypeError: Cannot read property 'client_id' of undefined
at new Auth (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/google-assistant/components/auth.js:27:38)
at new GoogleAssistant (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/google-assistant/index.js:21:16)
at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/auth_and_test.js:60:19)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
thank you again for your help
honestly i think this is in my credentials :
{"web":{"client_id":"109652145873-5nkqrfro300pe1pi6r5gd0v9sutdolmm.apps.googleusercontent.com","project_id":"smart-mirrorr-b3d55","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"hYgsFML7eyHnsy7HClmmUSzR","redirect_uris":["https://smart-mirrorr-b3d55.firebaseapp.com/__/auth/handler"],"javascript_origins":["http://localhost","http://localhost:5000","https://smart-mirrorr-b3d55.firebaseapp.com"]}}