I am trying to set up Mycroft for the first time but it refuses to listen to me…
If I run start-mycroft.sh audiotest, it records the audio I am playing on the computer, so I can run (for example) espeak “hey mycroft”, which it records, but if I speak in the microphone, it does nothing.
Audacity records just fine and I can record on command line with
arecord -f dat -D hw:0,0 -d 5 test.wav
arecord -f dat -D sysdefault:CARD=PCH -d 5 test.wav
(it doesn’t work if I leave the -D out though)
pavucontrol and alsamixer don’t give me any useful options.
The mycroft.conf file has options to change how the sound is played, but I can’t find any setting for recording. I changed something in /util/init.py so the command is the same as before (with -f and -D added):
if duration > 0: return subprocess.Popen( ["arecord", "-f dat -D hw:0,0 -r", str(rate), "-c", str(channels), "-d", str(duration), file_path]) else: return subprocess.Popen( ["arecord", "-f dat -D hw:0,0 -r", str(rate), "-c", str(channels), file_path])
…but of course, this still doesn’t change anything (and it doesn’t even make a difference if I change arecord to xarecordx for example).
I’ve been working on it for the last few hours and ran some commands below, but I’m not sure what to do with it.
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC255 Analog [ALC255 Analog]
Subdevice #0: subdevice #0
pactl list sources short
0 alsa_output.pci-0000_00_1f.3.analog-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
amixer sget Capture
Simple mixer control ‘Capture’,0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 63
Front Left: Capture 51 [81%] [21.00dB] [on]
Front Right: Capture 51 [81%] [21.00dB] [on]
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xb4520000 irq 140
vi /etc/pulse/default.pa: disabled suspend-on-idle
pactl set-default-source 0
Can anyone tell me how to record from microphone?