Thank you very very much @romain ! I will go for AlexaPi with MMM-AlexaPi. I spent all yesterday trying to set it up, and I will continue today, your input is very valuable. Just a few newbie, extra questions:
-
AlexaPi service, when running, is “Always On”? It is always listening? How to test it directly without having integrated with MMM-AlexaPi Yet?
-
Where can the activation word be configured? If I just say “Alexa”, should it work?
-
Finally, I spent hours troubleshooting the microphone. It is a very standard Logitech Microphone. I just could not get it working.
Here are:
Result from >lsusb command:
pi@raspberrypi:~ $ lsusb
Bus 001 Device 006: ID 17ef:6019 Lenovo
Bus 001 Device 005: ID 04b3:3025 IBM Corp. NetVista Full Width Keyboard
Bus 001 Device 004: ID 046d:0a03 Logitech, Inc. Logitech USB Microphone
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
result from the > arecord -L command:
pi@raspberrypi:~ $ arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
sysdefault:CARD=Microphone
Logitech USB Microphone, USB Audio
Default Audio Device
front:CARD=Microphone,DEV=0
Logitech USB Microphone, USB Audio
Front speakers
surround21:CARD=Microphone,DEV=0
Logitech USB Microphone, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Microphone,DEV=0
Logitech USB Microphone, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Microphone,DEV=0
Logitech USB Microphone, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Microphone,DEV=0
Logitech USB Microphone, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Microphone,DEV=0
Logitech USB Microphone, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Microphone,DEV=0
Logitech USB Microphone, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Microphone,DEV=0
Logitech USB Microphone, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Microphone,DEV=0
Logitech USB Microphone, USB Audio
Direct sample mixing device
dsnoop:CARD=Microphone,DEV=0
Logitech USB Microphone, USB Audio
Direct sample snooping device
hw:CARD=Microphone,DEV=0
Logitech USB Microphone, USB Audio
Direct hardware device without any conversions
plughw:CARD=Microphone,DEV=0
Logitech USB Microphone, USB Audio
Hardware device with all software conversions
Log from AlexaPi
● AlexaPi.service - Alexa client for all your devices
Loaded: loaded (/usr/lib/systemd/system/AlexaPi.service; enabled)
Active: active (running) since Mon 2017-04-24 10:59:14 CDT; 7s ago
Docs: https://github.com/alexa-pi/AlexaPi/wiki
Main PID: 1626 (python)
CGroup: /system.slice/AlexaPi.service
├─1626 /usr/bin/python /opt/AlexaPi/src/main.py --daemon
├─1638 /usr/bin/pulseaudio --start --log-target=syslog
└─1657 sox -q /opt/AlexaPi/src/resources/hello.mp3 -t alsa default vol -6 dB pad 0 0
Apr 24 10:59:20 raspberrypi pulseaudio[1638]: [pulseaudio] module-udev-detect.c: Tried to configure /devices… 10s
Apr 24 10:59:21 raspberrypi python[1626]: Exception in thread Thread-1:
Apr 24 10:59:21 raspberrypi python[1626]: Traceback (most recent call last):
Apr 24 10:59:21 raspberrypi python[1626]: File “/usr/lib/python2.7/threading.py”, line 810, in __bootstrap_inner
Apr 24 10:59:21 raspberrypi python[1626]: self.run()
Apr 24 10:59:21 raspberrypi python[1626]: File “/usr/lib/python2.7/threading.py”, line 763, in run
Apr 24 10:59:21 raspberrypi python[1626]: self.__target(*self.__args, **self.__kwargs)
Apr 24 10:59:21 raspberrypi python[1626]: File “/opt/AlexaPi/src/alexapi/triggers/pocketsphinxtrigger.py”, …hread
Apr 24 10:59:21 raspberrypi python[1626]: inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NORMAL, …ce’])
Apr 24 10:59:21 raspberrypi python[1626]: ALSAAudioError: Input/output error [front:CARD=Microphone,DEV=0]
Hint: Some lines were ellipsized, use -l to show in full.
Thank you so much for your help, I don’t mean to take too much from your time but I am really frustrated :(
Gerardo
Mexico City