4 Mic Linear Array not recognized

Applications/questions using Raspberry Pi with Seeed products, please post it here.

Moderators: lily.li, violet, salmanfarisvp

carsten
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Sat May 18, 2019 10:27 pm

4 Mic Linear Array not recognized

Post by carsten » Sat May 18, 2019 10:31 pm

I am little stuck when trying to install the 4 Mic linear array with my raps 3 B+.
I have installed the kernel drivers (seeed-voicecard) and rebooted.
However the mics are not recognized:

arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
default
ac108
dmixer
ac101

Also the snips audio server does not see the device.
arecord -Dac108 -f S32_LE -r 16000 -c 4 a.wav
says: invalid value for card.

bill.yu
Elementary-5
Elementary-5
Posts: 597
Joined: Mon Apr 02, 2018 11:05 am

Re: 4 Mic Linear Array not recognized

Post by bill.yu » Mon May 20, 2019 4:00 pm

Hi there,

It seems the driver is not installed correctly. Please uninstall the driver and install it again. If you still can not get it work, you can download the image 2018-08-06-raspbian-for-respeaker.zip with the driver installed. thanks.
https://v2.fangcloud.com/share/7395fd13 ... ario=share

Code: Select all

cd seeed-voicecard
sudo ./uninstall.sh 
sudo reboot
cd seeed-voicecard
sudo ./install.sh

bill.yu
Elementary-5
Elementary-5
Posts: 597
Joined: Mon Apr 02, 2018 11:05 am

Re: 4 Mic Linear Array not recognized

Post by bill.yu » Wed May 22, 2019 2:55 pm

Hi there,

Previously the driver is not compatible with Linux raspberrypi 4.19.42-v7+. We just updated the driver by following below instructions. thanks.

Code: Select all

cd seeed-voicecard
sudo ./uninstall.sh 
sudo reboot
cd seeed-voicecard
sudo ./install.sh

Code: Select all

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.19.42-v7+ #1219 SMP Tue May 14 21:20:58 BST 2019 armv7l GNU/Linux
pi@raspberrypi:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: seeed4micvoicec [seeed-4mic-voicecard], device 0: bcm2835-i2s-ac10x-codec0 ac10x-codec.1-003b-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
pi@raspberrypi:~ $ 

carsten
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Sat May 18, 2019 10:27 pm

Re: 4 Mic Linear Array not recognized

Post by carsten » Sat Jun 01, 2019 6:07 pm

Thanks, that solved the issue.

david_palacios
Pre-kindergarten
Pre-kindergarten
Posts: 8
Joined: Wed Feb 27, 2019 5:22 am

Re: 4 Mic Linear Array not recognized

Post by david_palacios » Fri Jun 07, 2019 12:36 pm

Hi,
I've followed the installation instructions. When I check the record device I get the following:

pi@raspberrypi:~/griefbot/griefbot $ arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
ac108
dmixer
ac101
default
Playback/recording through the PulseAudio sound server
sysdefault:CARD=seeed8micvoicec
seeed-8mic-voicecard,
Default Audio Device
dmix:CARD=seeed8micvoicec,DEV=0
seeed-8mic-voicecard,
Direct sample mixing device
dsnoop:CARD=seeed8micvoicec,DEV=0
seeed-8mic-voicecard,
Direct sample snooping device
hw:CARD=seeed8micvoicec,DEV=0
seeed-8mic-voicecard,
Direct hardware device without any conversions
plughw:CARD=seeed8micvoicec,DEV=0
seeed-8mic-voicecard,
Hardware device with all software conversions

Which is not exactly the same as the list I see on your webpage.

I am able to record and play the a.wav file correctly, but when I try to run my python project (a chatbot) It doesn't seem to work, I just don't get an answer. I think there is a problem with ALSA.

When I run my project I get this:

(bot.py:18525): Gtk-CRITICAL **: gtk_widget_get_preferred_width_for_height: assertion 'height >= 0' failed

(bot.py:18525): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width 586 and height -1
hola
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib pcm_dmix.c:990:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
connect(2) call to /tmp/jack-0/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
1111+00000000-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000GRABANDO

Sorry for all the text. Hope you can help.


Best


David

bill.yu
Elementary-5
Elementary-5
Posts: 597
Joined: Mon Apr 02, 2018 11:05 am

Re: 4 Mic Linear Array not recognized

Post by bill.yu » Fri Jun 14, 2019 5:29 pm

Hi David,

The driver is updated and wiki page is not updated yet. We will update the wiki page. Which code you do run and then you face the issue? thanks.

david_palacios
Pre-kindergarten
Pre-kindergarten
Posts: 8
Joined: Wed Feb 27, 2019 5:22 am

Re: 4 Mic Linear Array not recognized

Post by david_palacios » Tue Jun 18, 2019 9:40 am

I run a python script, a chatbot to be precise

sasitamizh69
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Tue Jun 18, 2019 2:37 pm

Re: 4 Mic Linear Array not recognized

Post by sasitamizh69 » Tue Jun 18, 2019 2:44 pm

You blog post is just completely quality and informative. Many new facts and information which I have not heard about before. Keep sharing more blog posts.

bill.yu
Elementary-5
Elementary-5
Posts: 597
Joined: Mon Apr 02, 2018 11:05 am

Re: 4 Mic Linear Array not recognized

Post by bill.yu » Tue Jun 18, 2019 3:27 pm

david_palacios wrote:
Tue Jun 18, 2019 9:40 am
I run a python script, a chatbot to be precise

What about the wiki alexa demo? Does it work correctly? thanks.

david_palacios
Pre-kindergarten
Pre-kindergarten
Posts: 8
Joined: Wed Feb 27, 2019 5:22 am

Re: 4 Mic Linear Array not recognized

Post by david_palacios » Fri Jun 21, 2019 8:02 am

It doesn't work either :/

Post Reply