@sdetweil
thank you,
I have set in the config of MMM-voice the microphone 1, but there is still an error.
I will ask the developer of MMM-voice.
Manfred
@sdetweil
thank you,
I have set in the config of MMM-voice the microphone 1, but there is still an error.
I will ask the developer of MMM-voice.
Manfred
@sdetweil
pi@raspberrypi:~ $ which arecord
/usr/bin/arecord
pi@raspberrypi:~ $ ls /usr/bin/arecord -laF
lrwxrwxrwx 1 root root 5 16. Apr 2021 /usr/bin/arecord -> aplay*
Is it that way that I have to set the microphone in MM separately so that the Module MMM-voice will recognize the micophone which is on card 1 device 0.
@sdetweil
Thank you for your reply.
pi@raspberrypi:/ $ arecord --format=S16_LE --duration=5 --rate=16000 --file-type=wav out.wav
Aufnahme: WAVE ‘out.wav’ : Signed 16 bit Little Endian, Rate: 16000 Hz, mono
out.wav: Keine Berechtigung
This ist the arecord without sudo
pi@raspberrypi:/ $ sudo arecord --format=S16_LE --duration=5 --rate=16000 --file-type=wav out.wav
Aufnahme: WAVE ‘out.wav’ : Signed 16 bit Little Endian, Rate: 16000 Hz, mono
and here the task with sudo.
ls arecord or find arecord – file or folder not found.
I assume that arecord is part of aplay probably of the alsa family.
But why do tasks of the same family ask for different rights.
Manfred
Hello
I installed a USB-Micro and a speaker on the headphone socket.
I used aplay and arecord to test.
when typing aplay … and enter it runs and plays the sound
when typing arecord…out.wav it says no rights
so I tried sudo arecord… it runs and records the file, which I can listen to via aplay.
MagicMirror cannot access the micro because of sudo.
How can I change the rights for arecord so MM can use it?
Manfred
@vince
I read the read.md of maykle1 and according to the Moduls config entry in MM’s config.js there is no way to add a second country.
I will not advise you to tamper the NODE HELPER file but contact maykle1 personally to add a country-2 run for getting the data.
Manfred