Solved Problems with speech recognition
-
Hello bugsounet, tried what you wrote, the file .asoundrc does not exist and the recording started and played back without error.
cd ~ && cat .asoundrc cat: .asoundrc: No such file or directory
admin@raspberrypi:~ $ arecord -D default -q -r 16000 -c 1 -t wav -f S16_LE -d 3 test.wav && aplay test.wav Wiedergabe: WAVE 'test.wav' : Signed 16 bit Little Endian, Rate: 16000 Hz, mono
admin@raspberrypi:~ $ ps aux | grep record admin 3575 0.0 0.0 3536 1552 pts/0 S+ 12:53 0:00 grep --color=auto record
-
Hi,
For me it’s good.
So, Can you try to disable all modules in your config except:
MMM-GoogleAssistant
EXT-Detector
Gateway
EXT-Alert
and retry ?
-
Hello bugsounet, unfortunately, nothing has changed. The file is still not present and the recording worked and was played back. After deactivating the modules, the MagicMirror just stays black and I can no longer reach the gateway
admin@raspberrypi:~ $ cd ~ && cat .asoundrc cat: .asoundrc: No such file or directory
admin@raspberrypi:~ $ arecord -D default -q -r 16000 -c 1 -t wav -f S16_LE -d 3 test.wav && aplay test.wav Wiedergabe: WAVE 'test.wav' : Signed 16 bit Little Endian, Rate: 16000 Hz, mono
admin@raspberrypi:~ $ ps aux | grep record admin 2602 0.0 0.0 3536 1660 pts/0 S+ 23:48 0:00 grep --color=auto record
-
@bugsounet said in Problems with speech recognition:
Hi,
For me it’s good.
So, Can you try to disable all modules in your config except:
MMM-GoogleAssistant
EXT-Detector
Gateway
EXT-Alert
and retry ?
It’s mean Start only MagicMirror with this
And try if it’s works.
I suspect another module that use your
Microphone Because command lines works -
Hi, I have now disabled all modules except yours. Unfortunately, the speech recognition still does not respond. It still comes to the warning in the terminal output from the gateway
[22.03.2023 15:03.37.228] [LOG] [LPCM16] WARN: arecord: main:830: Error when opening the device: File or directory not found
Here is my config file
/*** GENERATED BY @bugsounet Gateway v3.0.0 ***/ /*** https://forum.bugsounet.fr **/ var config = { address: 'localhost', port: 8080, basePath: '/', ipWhitelist: [ '127.0.0.1', '::ffff:127.0.0.1', '::1' ], useHttps: false, httpsPrivateKey: '', httpsCertificate: '', language: 'de', locale: 'de-DE', logLevel: [ 'INFO', 'LOG', 'WARN', 'ERROR' ], timeFormat: 24, units: 'metric', modules: [ /***{ module: 'alert' }, { module: 'updatenotification', position: 'top_bar' }, { module: 'clock', position: 'top_left', config: { timeFormat: 24, timezone: 'Europe/Berlin' } }, { module: 'calendar', header: 'Kalender', position: 'top_left', config: { calendars: [ { symbol: 'calendar-alt', url: ******** } ] } }, { module: 'compliments', position: 'lower_third' }, /***{ module: 'weather', position: 'top_right', config: { weatherProvider: 'openweathermap', type: 'current', location: 'Kleinaitingen', locationID: '2889814', apiKey: '***********' } }, { module: 'weather', position: 'top_right', header: 'Weather Forecast', config: { weatherProvider: 'openweathermap', type: 'forecast', location: 'Kleinaitingen', locationID: '2889814', apiKey: '*************' } }, { module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { title: 'ARD News', url: 'http://www.tagesschau.de/xml/rss2' } ], showSourceTitle: true, showPublishDate: true, broadcastNewsFeeds: true, broadcastNewsUpdates: true } }, { module: 'MMM-SmartTouch', position: 'bottom_center', config: {} }, { module: 'MMM-Face-Recognition-SMAI', position: 'top_right', config: {} },***/ { module: 'MMM-GoogleAssistant', configDeepMerge: true, config: { debug: false, stopCommand: 'stop', assistantConfig: { lang: 'de-DE', latitude: 48.21953, longitude: 10.86797 }, responseConfig: { useFullscreen: false, chimes: {}, imgStatus: {}, zoom: {} }, recipes: [] } }, { module: 'Gateway', config: { debug: false, port: 8081, username: 'admin', password: 'admin', noLogin: false, usePM2: false, PM2Id: 0, useMapping: false, portMapping: 8081 } }, { module: 'EXT-Detector', position: 'top_left', disabled: false, configDeepMerge: true, config: { debug: false, useIcon: true, touchOnly: false, porcupineAccessKey: '*************', porcupineCustomModel: null, detectors: [ { detector: 'Snowboy', Model: 'jarvis', Sensitivity: null }, { detector: 'Porcupine', Model: 'ok google', Sensitivity: null }, { detector: 'Porcupine', Model: 'hey google', Sensitivity: null } ] } }, { module: 'EXT-Alert', config: { debug: false, ignore: [] } }, { module: 'EXT-UpdateNotification', position: 'top_bar', configDeepMerge: true, disabled: false, config: { debug: false, updateInterval: 600000, startDelay: 60000, ignoreModules: [], updateCommands: [], notification: { useTelegramBot: true, sendReady: true, useScreen: true, useCallback: true }, update: { autoUpdate: true, autoRestart: true, usePM2: false, PM2Name: '0', defaultCommand: 'git --reset hard && git pull && npm install', logToConsole: true, timeout: 120000 } } } ] } /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== 'undefined') {module.exports = config;}
-
and Detector wake words works ?
-
No, it does not respond to any voice input at all.The only thing that works, is when I make a request to Google through the gateway tools, it is answered and displayed on the mirror.
-
Hi, I just saw that there is a new error in the terminal output.
[22.03.2023 15:21.54.957] [LOG] [LPCM16] WARN: ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
-
have you tried this solution ?
-
Hi bugsounet, the topic can be closed, I started the project completely from scratch, reinstalled everything and started with Google Assistant first. Now the voice input works, thanks for your work and help
-