Read the statement by Michael Teeuw here.
Hello-Lucy using Adafruit Voice Bonnet
-
@sdetweil said in Hello-Lucy using Adafruit Voice Bonnet:
so it should be
microphone: “2,0”,Thanks for replying. This config is what I had when I posted. As I mentioned, I’ve tried “0,0”, “1,0”, and “2,0”; all result in the microphone error.
-
@sinbad339 can u try this
arecord -D default -q -r 16000 -c 1 -t wav -f S16_LE >test.wavthe replace default with
arecord -D hw:2,0 -q -r 16000 -c 1 -t wav -f S16_LE >test.wav -
@sdetweil
With MM running, if I issuearecord -D default -q -r 16000 -c 1 -t wav -f S16_LE >test.wavI get a good .wave file that I can play.
With MM still running, specifying the hw explicitly results in an error.arecord -D hw:2,0 -q -r 16000 -c 1 -t wav -f S16_LE >test2.wav arecord: main:830: audio open error: Device or resource busy pi@Magic:~/MagicMirror/config $ arecord -l **** List of CAPTURE Hardware Devices **** card 2: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 [bcm2835-i2s-wm8960-hifi wm8960-hifi-0] Subdevices: 0/1 Subdevice #0: subdevice #0 -
@sinbad339 said in Hello-Lucy using Adafruit Voice Bonnet:
With MM still running, specifying the hw explicitly results in an error.
ok, so MM is using that device
while mm is running do
ps -ef | grep arec
u should see the arecord process and the parms passed
from one of my apps that uses arecordarecord -D default -q -r 16000 -c 1 -t wav -f S16_LE -the trailing dash means stream content to stdout (which is captured by the upstream library)
-
-
@sdetweil
So the arecord -l lists card2 as my expected capture device (seeed-2mic-voicecard). I find it interesting that it enumverates as #2 with no #0 or #1.Anyway, I ran your ps command; not sure what this output means (as I’m sure you’re aware by now, I’m a Noob on Linux).
ps -ef | grep arec pi 1953 1927 0 11:04 pts/0 00:00:00 grep --color=auto arec -
@sinbad339 hm…
should have used arecord…
try
ps -ef | grep rec(there are only 2 apps… arecord or rec )
the output from ps
pi 1953 1927 0 11:04 pts/0 00:00:00 grep --color=auto arecuser that started process
the process id
the parent process id +
(i don’t know, 0)
the time the process was started
(i don’t know, pts/ )
how much cpu time has been used since started, in seconds
the string used to start the process, pgm name and then parms -
ps -ef | grep rec root 76 2 0 11:02 ? 00:00:00 [vchiq-recy/0] pi 2320 1927 0 11:24 pts/0 00:00:00 grep --color=auto recNot sure what vchiq-recy is…
But no arec or arecord. -
@sinbad339 said in Hello-Lucy using Adafruit Voice Bonnet:
But no arec or arecord.
well, that explains the error…
you did run the installation dependencies script, right?
cd Hello-Lucy/installers bash dependencies.sh -
@sdetweil
Yes, I did run it. Its been a while, and I remember warning about depreciated versions, but nothing that I thought could be an issue. OK to run it again?
