Giter Club home page Giter Club logo

seeed-voicecard's Introduction

seeed-voicecard

The drivers for ReSpeaker Mic Hat, ReSpeaker 4 Mic Array, 6-Mics Circular Array Kit, and 4-Mics Linear Array Kit for Raspberry Pi.

Install seeed-voicecard

Get the seeed voice card source code and install all linux kernel drivers

git clone https://github.com/respeaker/seeed-voicecard
cd seeed-voicecard
sudo ./install.sh
sudo reboot

Note If you have 64-bit version of Rasperry Pi OS, use install_arm64.sh script for driver installation.

ReSpeaker Documentation

Up to date documentation for reSpeaker products can be found in Seeed Studio Wiki!

Coherence

Estimate the magnitude squared coherence using Welch’s method. 4-mics-linear-array-kit coherence
Note: 'CO 1-2' means the coherence between channel 1 and channel 2.

# How to get the coherence of the captured audio(a.wav for example).
sudo apt install python-numpy python-scipy python-matplotlib
python tools/coherence.py a.wav

# Requirement of the input audio file:
- format: WAV(Microsoft) signed 16-bit PCM
- channels: >=2

uninstall seeed-voicecard

If you want to upgrade the driver , you need uninstall the driver first.

pi@raspberrypi:~/seeed-voicecard $ sudo ./uninstall.sh 
...
------------------------------------------------------
Please reboot your raspberry pi to apply all settings
Thank you!
------------------------------------------------------

Enjoy !

Technical support

For hardware testing purposes we made a Rasperry Pi OS 5.10.17-v7l+ 32-bit image with reSpeaker drivers pre-installed, which you can download by clicking on this link.

We provide official support for using reSpeaker with the following OS:

  • 32-bit Raspberry Pi OS
  • 64-bit Raspberry Pi OS (experimental support)

And following hardware platforms:

  • Raspberry Pi 3 (all models), Raspberry Pi 4 (all models), Raspberry Pi Zero and Zero W

Anything beyond the scope of official support is considered to be community supported. Support for other OS/hardware platforms can be added, provided MOQ requirements can be met.

If you have a technical problem when using reSpeaker with one of the officially supported platforms/OS, feel free to create an issue on Github. For general questions or suggestions, please use Seeed forum.

seeed-voicecard's People

Contributors

aiwintermuteai avatar andremarschalek avatar baorepo avatar fleker avatar gitter-badger avatar hhuysqt avatar hintak avatar jerryyip avatar killingjacky avatar lancechentw avatar norbusan avatar pcmulder avatar pernat1y avatar pillar1989 avatar psychokiller1888 avatar rotdrop avatar samhithpottem avatar turmary avatar xiongyihui avatar yexiaobo-seeedstudio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

seeed-voicecard's Issues

Wake word not working

Hi, I have been trying to accomplish Alexa project for about a week now, trying it on Raspberry Pi Zero W, and Raspberry Pi 3, without a real success. I followed your manual, disabled onboard sound card, and everything work except wake word. I can start service by clicking button on java app. Sound otherwise works correctly. I have uploaded my alsa setting on: http://www.alsa-project.org/db/?f=7fd636fe60521a6709d83356a5c03fa401a7ebcb ,and this is terminal output when I try to use alexa avs wakeword terminal shows:

INFO:main: Starting Wake Word Agent
INFO:WakeWordAgent: State set to IDLE(2)
INFO:Initializing Sensory library | library name: TrulyHandsfree | library version: 5.0.0-beta.10.2 | model file: ../ext/resources/spot-alexa-rpi.snsr
WARNING:Library expires on: License expires on 28 Feb 2018 00:00:00 GMT
ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card
INFO:SensoryWakeWordEngine: mainLoop thread started
ERROR:An error happened in the mainLoop of SensoryWakeWord snsrRun(): task: Input channel audio-pcm: ALSA error: No such file or directory
INFO:SensoryWakeWordEngine: mainLoop thread ended
INFO:WakeWordIPCSocket::mainLoop thread started
INFO:WakeWordIPCSocket: init socket on port:5123
INFO:===> Connected to AVS client <===
INFO:WakeWordAgent: thread started

, and there is no response when I say "Alaxa". After pressing "java button" :

INFO:main: Starting Wake Word Agent
INFO:WakeWordAgent: State set to IDLE(2)
INFO:Initializing Sensory library | library name: TrulyHandsfree | library version: 5.0.0-beta.10.2 | model file: ../ext/resources/spot-alexa-rpi.snsr
WARNING:Library expires on: License expires on 28 Feb 2018 00:00:00 GMT
ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card
INFO:SensoryWakeWordEngine: mainLoop thread started
ERROR:An error happened in the mainLoop of SensoryWakeWord snsrRun(): task: Input channel audio-pcm: ALSA error: No such file or directory
INFO:SensoryWakeWordEngine: mainLoop thread ended
INFO:WakeWordIPCSocket::mainLoop thread started
INFO:WakeWordIPCSocket: init socket on port:5123
INFO:===> Connected to AVS client <===
INFO:WakeWordAgent: thread started
INFO:WakeWordAgent: IPC Command received:3
INFO:WakeWordAgent: State set to WAKE_WORD_PAUSE_REQUESTED(5)
INFO:SensoryWakeWordEngine: handling pause
INFO: *** THREAD JOINING: Sensory ***
INFO:WakeWordAgent: State set to WAKE_WORD_PAUSED(6)
INFO:WakeWordAgent: IPC Command received:4
INFO:WakeWordAgent: State set to WAKE_WORD_RESUME_REQUESTED(7)
INFO:SensoryWakeWordEngine: handling resume
ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card
INFO:WakeWordAgent: State set to IDLE(2)
INFO:SensoryWakeWordEngine: mainLoop thread started
ERROR:An error happened in the mainLoop of SensoryWakeWord snsrRun(): task: Input channel audio-pcm: ALSA error: No such file or directory
INFO:SensoryWakeWordEngine: mainLoop thread ended

Other problem, when I playing any radio stream or news, I cant stop it only pause it. I can see problem with ALSA, but I dont really know how to solve it
Please can you help me with this.

树莓派zero w 上面安装4mic

我在树莓派zero w上面插入4mic 安装4mic驱动,显示安装成功,但是 arecord -L的时候显示
default
playback
dmixed
ac108
multiapps
就没有声卡这些信息。像default:CARD=seeed4micvoicec 这些东西,然后录音也没有设备

Cannot set pcm format

I am trying on Pi raspbian "stretch" (all up to date) to record with the 4mic respeaker card and following this guide:-
http://wiki.seeed.cc/ReSpeaker_4_Mic_Array_for_Raspberry_Pi/

Here is the error:-
pi@pigoogle:~ $ arecord -D ac108 -f S32_LE -r 16000 -c 4 hello.wav
Recording WAVE 'hello.wav' : Signed 32 bit Little Endian, Rate 16000 Hz, Channels 4
ALSA lib pcm_ac108.c:48:(ac108_slave_hw_params_half) Cannot set pcm format
ALSA lib pcm_ac108.c:323:(ac108_hw_params) ac108_slave_hw_params_half error

arecord: set_params:1363: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S32_LE
SUBFORMAT: STD
SAMPLE_BITS: 32
FRAME_BITS: 128
CHANNELS: 4
RATE: 16000
PERIOD_TIME: 125000
PERIOD_SIZE: 2000
PERIOD_BYTES: 32000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 8000
BUFFER_BYTES: 128000
TICK_TIME: [0 0]
pi@pigoogle:~ $

Further the cards is installed:-
pi@pigoogle:~ $ arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
default
playback
dmixed
ac108
sysdefault:CARD=Audio
USB Audio, USB Audio
Default Audio Device
front:CARD=Audio,DEV=0
USB Audio, USB Audio
Front speakers
surround21:CARD=Audio,DEV=0
USB Audio, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Audio,DEV=0
USB Audio, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Audio,DEV=0
USB Audio, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Audio,DEV=0
USB Audio, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Audio,DEV=0
USB Audio, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Audio,DEV=0
USB Audio, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Audio,DEV=0
USB Audio, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Audio,DEV=0
USB Audio, USB Audio
Direct sample mixing device
dsnoop:CARD=Audio,DEV=0
USB Audio, USB Audio
Direct sample snooping device
hw:CARD=Audio,DEV=0
USB Audio, USB Audio
Direct hardware device without any conversions
plughw:CARD=Audio,DEV=0
USB Audio, USB Audio
Hardware device with all software conversions
sysdefault:CARD=seeed4micvoicec
seeed-4mic-voicecard,
Default Audio Device
dmix:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Direct sample mixing device
dsnoop:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Direct sample snooping device
hw:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Direct hardware device without any conversions
plughw:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Hardware device with all software conversions
pi@pigoogle:~ $

Audio capture during audio playback

I am running an AVS Java sample app with RPi3 + PiHAT 2mic on Raspian. I have the java client playing a radio, then I try to use the "listen" button to stop the radio, which works fine on a real Amazon Echo. At first I got a Java Exception "can't obtain source audio line error". After that I disabled the mp3 playback function in recordingStarted() in App.js, now the java client app just ignores my voice comment.

My question is: Is the PiHAT 2 mic (HW or SW) capable of recording while playing back an audio?

Can't find seeed-4mic drivers on RPI3 Raspbian Stretch

Hi,

I am running Raspbian Stretch on RPI3. After i installed the drivers and rebooted. i can't see the 4mic array drivers. Below is what i see when i list my audio drivers:

image

I have installed google assistant sdk previously and that's why you see voice drivers. I don't know what would be the ideal way to reset these drivers with respeaker ones.

here is the status of the seed voice card on my pi when i execute: systemctl status seeed-voicecard.service

image

Thoughts on how to resolve this issue?

Thanks.

Recording not working

arecord -Dac108 -f S32_LE -r 16000 -c 4 a.wav -d 10
arecord: main:788: audio open error: File or folder doesn't exist

The pixel ring is working with the example files. Only can't seem to get the mic's working on the ReSpeaker 4mic model.

What can I do to fix this?

RESPEAKER -2MIC HAT JST2.0 Speaker OUT

Hi,
I have a question regarding JST2.0 Speaker Out. Is it possible to connect a raw speaker directly on the Speaker Out terminals? or does it need any audio amplifier to connect with it. What is the output power on this Speaker out..? Is it 1W similar to Respeaker Core or is it different?
Looking forward to hear from you soon.
Regards
Suresh

scripts/basic/fixdep: 1: scripts/basic/fixdep: Syntax error: "(" unexpected

I am trying transplanting the seeed-voicecard into PYNQ Board ( ARM+FPGA ). When I run make, something wrong shows "scripts/basic/fixdep: 1: scripts/basic/fixdep: Syntax error: "(" unexpected" and its whole log shows below.
What can I do to figure out what causes this bug?

xilinx@pynq:~/seeed-voicecard$ make
make -C /lib/modules/4.9.0-xilinx/build M=/home/xilinx/seeed-voicecard modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.0-xilinx'
  CC [M]  /home/xilinx/seeed-voicecard/wm8960.o
scripts/basic/fixdep: 1: scripts/basic/fixdep: Syntax error: "(" unexpected
scripts/Makefile.build:293: recipe for target '/home/xilinx/seeed-voicecard/wm8960.o' failed
make[2]: *** [/home/xilinx/seeed-voicecard/wm8960.o] Error 2
Makefile:1490: recipe for target '_module_/home/xilinx/seeed-voicecard' failed
make[1]: *** [_module_/home/xilinx/seeed-voicecard] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-xilinx'
Makefile:12: recipe for target 'all' failed
make: *** [all] Error 2

Can't install seeed board. Doesn't find the right kernel and Hash mismatch

My system:

  • raspberry pi zero w
  • ReSpeaker 2-Mics Pi HAT
  • 2017-09-07-raspbian-stretch

I follow the steps of installing seeed-voicecard and I get following output:

sudo ./install.sh 2mic
Hit:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
168 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  raspberrypi-kernel-headers
The following packages will be upgraded:
  raspberrypi-kernel
1 upgraded, 1 newly installed, 0 to remove and 167 not upgraded.
Need to get 47.1 MB of archives.
After this operation, 99.4 MB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian stretch/main armhf raspberrypi-kernel armhf 1.20171029-1 [31.7 MB]
Err:1 http://archive.raspberrypi.org/debian stretch/main armhf raspberrypi-kernel armhf 1.20171029-1           
  Hash Sum mismatch
  Hashes of expected file:
   - SHA256:f1925be3c10ad34230fa241aed1ed1ce0c05808eeba3dc53bf834e55962f7940
   - SHA1:b5b02c78e9595a31883707406c62192419ecec56 [weak]
   - MD5Sum:ec0e37c6cf356c9f65500ee1dd029d40 [weak]
   - Filesize:31738888 [weak]
  Hashes of received file:
   - SHA256:ed77f3e5f520c7eb3337550f8496a6cb5f7621c0572538cb75fa7e24a050dd0c
   - SHA1:6fe5c808729bdc13272d5509631a5635a5214005 [weak]
   - MD5Sum:ac323dfb4b2795049b7cd9ec5e13b9ec [weak]
   - Filesize:17375232 [weak]
  Last modification reported: Mon, 30 Oct 2017 11:51:47 +0000
Get:2 http://archive.raspberrypi.org/debian stretch/main armhf raspberrypi-kernel-headers armhf 1.20171029-1 [15.3 MB]
19% [2 raspberrypi-kernel-headers 11.4 MB/15.3 MB 74%]                                                6,690 B/s 1h 28min 50s^Fetched 32.7 MB in 1h 2min 31s (8,720 B/s)                                                                                  
E: Failed to fetch http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel_1.20171029-1_armhf.deb  Hash Sum mismatch
   Hashes of expected file:
    - SHA256:f1925be3c10ad34230fa241aed1ed1ce0c05808eeba3dc53bf834e55962f7940
    - SHA1:b5b02c78e9595a31883707406c62192419ecec56 [weak]
    - MD5Sum:ec0e37c6cf356c9f65500ee1dd029d40 [weak]
    - Filesize:31738888 [weak]
   Hashes of received file:
    - SHA256:ed77f3e5f520c7eb3337550f8496a6cb5f7621c0572538cb75fa7e24a050dd0c
    - SHA1:6fe5c808729bdc13272d5509631a5635a5214005 [weak]
    - MD5Sum:ac323dfb4b2795049b7cd9ec5e13b9ec [weak]
    - Filesize:17375232 [weak]
   Last modification reported: Mon, 30 Oct 2017 11:51:47 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Reading package lists... Done
Building dependency tree       
Reading state information... Done
dkms is already the newest version (2.3-2).
0 upgraded, 0 newly installed, 0 to remove and 168 not upgraded.
card driver already installed
cp wm8960_asound.state /var/lib/alsa/asound.state
------------------------------------------------------
Please reboot your raspberry pi to apply all settings
Enjoy!
------------------------------------------------------

Is there a patch for stretch?

Installation works but recording does not as the configuration seems to be wrong

Im on Raspbian Jessie Lite and for the installation of the ac108 driver to work i had to do the following steps:

  1. sudo dpkg --configure -a
  2. edit the following line in install.sh:
    apt-get -y install raspberrypi-kernel-headers raspberrypi-kernel to apt-get -y --force-yes install raspberrypi-kernel-headers raspberrypi-kernel
  3. run sudo ./install.sh 4mic

After rebooting and entering arecord -L I only see PulseAudio. Then when i enter sudo systemctl restart seeed-voicecard i get the voice card to be listed, but it looks like the following:
null Discard all samples (playback) or generate zero samples (capture) pulse PulseAudio Sound Server default Playback/recording through the PulseAudio sound server playback dmixed ac108 multiapps sysdefault:CARD=seeed4micvoicec seeed-4mic-voicecard, Default Audio Device dmix:CARD=seeed4micvoicec,DEV=0 seeed-4mic-voicecard, Direct sample mixing device dsnoop:CARD=seeed4micvoicec,DEV=0 seeed-4mic-voicecard, Direct sample snooping device hw:CARD=seeed4micvoicec,DEV=0 seeed-4mic-voicecard, Direct hardware device without any conversions plughw:CARD=seeed4micvoicec,DEV=0 seeed-4mic-voicecard, Hardware device with all software conversions

When trying to record anything I get the following message:
ALSA lib pcm_direct.c:999:(snd1_pcm_direct_initialize_slave) unable to install hw params
ALSA lib pcm_dsnoop.c:629:(snd_pcm_dsnoop_open) unable to initialize slave
arecord: main:722: audio open error: Invalid argument

How can I bring this to work?

Windows IoT Core support

If y'all could cross compile to support Windows IoT Core, that would be great. With Cortana already being built into Windows IoT Core, it would be great to have a mic like this!

Voice response too fast when using google assistand SDK with Hotword

Myself and quite a number of others are having issues with this device when using the google assistant SDK.

Audio tests seem to work correctly using the steps in "Configure and test the audio" from the official sdk, however when running the assistant the playback is sped up considerably, to the point where it is unintelligible.

This issue occurs with both the Supplied raspbian image and a manual installation.

Install errors: Your kernel headers for kernel 4.14.21+ cannot be found at...

Description

I had previously had this working on a Raspberry Pi 3 B however after recently updating via rpi-update the seeed cards no longer appeared. aplay -l only lists the default card, and arecord -l lists nothing.

OS
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"

uname -a
Linux raspberrypi3 4.14.21-v7+ #1095 SMP Fri Feb 23 18:21:29 GMT 2018 armv7l GNU/Linux

I have ran an uninstall and observed the following error messages:

rm: cannot remove '/lib/modules/4.14.21-v7+/kernel/sound/soc/codecs/snd-soc-wm8960.ko': No such file or directory
rm: cannot remove '/lib/modules/4.14.21-v7+/kernel/sound/soc/codecs/snd-soc-ac108.ko': No such file or directory
rm: cannot remove '/lib/modules/4.14.21-v7+/kernel/sound/soc/generic/snd-soc-simple-card.ko': No such file or directory

During install I see the following errors:

DKMS: build completed.
Error! echo
Your kernel headers for kernel 4.14.21+ cannot be found at
/lib/modules/4.14.21+/build or /lib/modules/4.14.21+/source.
Error! echo
Your kernel headers for kernel 4.14.21-v7+ cannot be found at
/lib/modules/4.14.21-v7+/build or /lib/modules/4.14.21-v7+/source.

After reading #3 I have ran sudo apt-get install dkms raspberrypi-kernel-headers which tells me that both those packages are already the latest version.

The /lib/modules/4.14.21+ folder and /lib/modules/4.14.21-v7 exist but there is no build or source directories in there

不知道是不是新版驱动问题,我的4麦录音一直在阻塞

我的录音代码如下:
`

"""PyAudio example: Record a few seconds of audio and save to a WAVE file."""

import pyaudio
import wave

CHUNK = 320
FORMAT = pyaudio.paInt16
CHANNELS = 4
RATE = 16000
RECORD_SECONDS = 5
WAVE_OUTPUT_FILENAME = "output.wav"

p = pyaudio.PyAudio()

device_index=None

channels=4
for i in range(p.get_device_count()):
dev =p.get_device_info_by_index(i)
if dev['maxInputChannels'] == channels:
device_index = i
print(device_index)
break
stream = p.open(format=FORMAT,
channels=CHANNELS,
rate=RATE,
input=True,
frames_per_buffer=CHUNK,
input_device_index=device_index,
)

print(" recording")

frames = []

for i in range(0, int(RATE / CHUNK * RECORD_SECONDS)):

一直阻塞在这里

data = stream.read(CHUNK)
frames.append(data)

print("* done recording")

stream.stop_stream()
stream.close()
p.terminate()

wf = wave.open(WAVE_OUTPUT_FILENAME, 'wb')
wf.setnchannels(CHANNELS)
wf.setsampwidth(p.get_sample_size(FORMAT))
wf.setframerate(RATE)
wf.writeframes(b''.join(frames))
wf.close()

`
我看到这些警告都无所谓,关键是 阻塞在了这块,data = stream.read(CHUNK)

pi@raspberrypi:~ $ python3 1.py
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
ALSA lib pcm_dsnoop.c:556:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib pcm_dsnoop.c:556:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
connect(2) call to /tmp/jack-1000/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
recording
然后就没有打印了。我重新下载看系统,重新安装都不行,一直阻塞,开始我认为是声卡选择问题,但是我选择正确的还是不行,而且不仅仅是python,我以前写的c版,可以用的,现在也不行了,我怀疑是这般驱动有问题。

Can respeak 4-mic be used with hifiberry sound card for audio output

My respeaker 4-mic array is working properly and i can output the recorded audio with aplay onto the headphone. But now i would like to use my hifiberry amp+ to output sound.
From the documentation for the amp+ i have to edit /boot/config.txt and do the following:

  • remove 'dtparam=audio=on'
  • add 'dtoverlay=hifiberry-amp'

Now when i reboot with the changes above, then i cannot find my respeaker wiht arecord -L but see the hifiberry device listest with aplay -L. I then added 'dtoverlay=seeed-4mic-voicecard' to the config.txt with no luck. When i then add 'dtparam=audio=on' again, the respeaker mic is listed again but the hifiberry is not.

Can this somehow be resolved? I really want to output audio with a proper soundcard and not raspberry pi's integrated audio channel.

Cannot compile on ArchlinuxARM

Hi
Hi just cloned your repository under my RPIZero
I correct the install.sh to use pacman (and install the right packages for ArchlinuxARM) rather than apt
When DKMS goes to build the module make exit with this error (using GCC7.2.1 bundled in ArchlinuxARM)

/var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c: In function 'asoc_simple_card_dai_link_of':
/var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c:360:61: error: macro "asoc_simple_card_parse_clk_cpu" requires 4 arguments, but only 3 given
  ret = asoc_simple_card_parse_clk_cpu(cpu, dai_link, cpu_dai);
                                                             ^
/var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c:360:8: error: 'asoc_simple_card_parse_clk_cpu' undeclared (first use in this function); did you mean 'asoc_simple_card_parse_clk'?
  ret = asoc_simple_card_parse_clk_cpu(cpu, dai_link, cpu_dai);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        asoc_simple_card_parse_clk
/var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c:360:8: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c:364:67: error: macro "asoc_simple_card_parse_clk_codec" requires 4 arguments, but only 3 given
  ret = asoc_simple_card_parse_clk_codec(codec, dai_link, codec_dai);
                                                                   ^
/var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c:364:8: error: 'asoc_simple_card_parse_clk_codec' undeclared (first use in this function); did you mean 'asoc_simple_card_parse_clk_cpu'?
  ret = asoc_simple_card_parse_clk_codec(codec, dai_link, codec_dai);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        asoc_simple_card_parse_clk_cpu
make[1]: *** [scripts/Makefile.build:329: /var/lib/dkms/seeed-voicecard/0.3/build/simple-card.o] Error 1
make: *** [Makefile:1519: _module_/var/lib/dkms/seeed-voicecard/0.3/build] Error 2
make: Leaving directory '/usr/lib/modules/4.14.29-1-ARCH/build'

Turn Off LED Permanently

just wondering if there's a quick/easy way to turn off the white LED on the board that is switched on by default?

integrating DOA with KWS(pocketsphinx) with 4-mic array

hi so I am having a really bad time for a week now trying to integrate pocketsphinx for KWS instead of snowboy(I don't want to use snow boy in my project). and at the same time I also want to do DOA
I have tried to hack and modify the codes in voice-engine. but nothing seems to works for me can anyone please help me in modifying the codes so that I can use KWS(using pocketsphinx) and DOA at the same time

I know there is a library for respeaker as well and it supports pocketsphinx but how can I use it to do both KWS and DOA at the same time with respeaker 4-mics hat with SPI based connection

Error! Bad return status for module build on kernel: 4.14.30-v7+ (armv7l)

arecord -l didn't show Respeaker
then sudo ./install.sh 4mic resulted in:

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make -j4 KERNELRELEASE=4.14.30+ -C /lib/modules/4.14.30+/build M=/var/lib/dkms/seeed-voicecard/0.3/build.....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.14.30+ (armv7l)
Consult /var/lib/dkms/seeed-voicecard/0.3/build/make.log for more information.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make -j4 KERNELRELEASE=4.14.30-v7+ -C /lib/modules/4.14.30-v7+/build M=/var/lib/dkms/seeed-voicecard/0.3/build......(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.14.30-v7+ (armv7l)
Consult /var/lib/dkms/seeed-voicecard/0.3/build/make.log for more information.

Please reboot your raspberry pi to apply all settings
Enjoy!

/var/lib/dkms/seeed-voicecard/0.3/build/make.log states:

DKMS make.log for seeed-voicecard-0.3 for kernel 4.14.30-v7+ (armv7l)
Fri 30 Mar 01:13:50 BST 2018
make: Entering directory '/usr/src/linux-headers-4.14.30-v7+'
AR /var/lib/dkms/seeed-voicecard/0.3/build/built-in.o
CC [M] /var/lib/dkms/seeed-voicecard/0.3/build/wm8960.o
CC [M] /var/lib/dkms/seeed-voicecard/0.3/build/ac108.o
CC [M] /var/lib/dkms/seeed-voicecard/0.3/build/ac101.o
CC [M] /var/lib/dkms/seeed-voicecard/0.3/build/simple-card.o
/var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c: In function ‘asoc_simple$
/var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c:364:61: error: macro "aso$
ret = asoc_simple_card_parse_clk_cpu(cpu, dai_link, cpu_dai);
^
/var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c:364:8: error: ‘asoc_simpl$
ret = asoc_simple_card_parse_clk_cpu(cpu, dai_link, cpu_dai);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c:364:8: note: each undecla$
/var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c:368:67: error: macro "aso$
ret = asoc_simple_card_parse_clk_codec(codec, dai_link, codec_dai);
^
/var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c:368:8: error: ‘asoc_simpl$
ret = asoc_simple_card_parse_clk_codec(codec, dai_link, codec_dai);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/Makefile.build:328: recipe for target '/var/lib/dkms/seeed-voicecard/0.$
make[1]: *** [/var/lib/dkms/seeed-voicecard/0.3/build/simple-card.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:1519: recipe for target 'module/var/lib/dkms/seeed-voicecard/0.3/bui$
make: *** [module/var/lib/dkms/seeed-voicecard/0.3/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.14.30-v7+'

RPi Restarts when powering up LEDs

I have the 4 microphone ReSpeaker board connected to a RPi zero and the microphones seem to be working alright; however, anytime I attempt to use the LEDs the Pi crashes. To use the LEDs I power on GPIO5, which I gather is the "on" switch to start using the APA102s, after which the pi promptly stops responding and restarts. The python script I'm using is:

from gpiozero import LED
led = LED(5)
led.on()

I've read all over the place and don't seem to see anyone else with the same issues. Am I doing something wrong or is my board a lemon?

Thanks!

image

ReSpeaker_2_Mics_Pi_HAT ALSA Configuration..!

Hi all ! This is my first post !

I've purchased the ReSpeaker 2-Mics HAT for the Raspberry PI and

would love to use it !

I've followed the instructions on the wiki -

http://wiki.seeedstudio.com/ReSpeaker_2_Mics_Pi_HAT/

but no sound in the headphone port of 2mics hat. i have 3 audio

outputs in my pi. built in audio, HDMI and 2-mics hat. then i

disable builtin sound device via boot config file.

[code]aplay -l && arecord -l

**** List of PLAYBACK Hardware Devices ****
card 0: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-

i2s-wm8960-hifi wm8960-hifi-0 []
Subdevices: 0/1
Subdevice #0: subdevice #0
**** List of CAPTURE Hardware Devices ****
card 0: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-

i2s-wm8960-hifi wm8960-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@SmartMirror:/home/pi#[/code]

[code]sudo nano /boot/config.txt

Enable audio (loads snd_bcm2835)

#dtparam=audio=on
start_x=1
gpu_mem=128
DISPLAY_ROTATE=0
dtoverlay=i2s-mmap[/code]

then i copy asound.conf and asound.state files from the source dist

of the re-speaker driver on github and installing them according to

the instructions (put asound.conf in /etc, use alsactl command to

install asound.state)

[IMG]http://i67.tinypic.com/20toyv5.png[/IMG]

[code]sudo nano /etc/asound.conf

The IPC key of dmix or dsnoop plugin must be unique

If 555555 or 666666 is used by other processes, use another one

pcm.!default {
type asym
playback.pcm "playback"
capture.pcm "capture"
}

pcm.playback {
type plug
slave.pcm "dmixed"
}

pcm.capture {
type plug
slave.pcm "array"
}

pcm.dmixed {
type dmix
slave.pcm "hw:0,0"
ipc_key 555555
}

pcm.array {
type dsnoop
slave {
pcm "hw:0,0"
channels 2
}
ipc_key 666666
}
[/code]

still no sound in 2-mics hat. alsa.conf also not changed.

[code]sudo nano /usr/share/alsa/alsa.conf

defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 0
defaults.pcm.subdevice -0
defaults.pcm.nonblock 1
defaults.pcm.compat 0
defaults.pcm.minperiodtime 5000 # in us
defaults.pcm.ipc_key 5678293
defaults.pcm.ipc_gid audio
defaults.pcm.ipc_perm 0660
defaults.pcm.dmix.max_periods 0
defaults.pcm.dmix.rate 48000
defaults.pcm.dmix.format "unchanged"
defaults.pcm.dmix.card defaults.pcm.card
defaults.pcm.dmix.device defaults.pcm.device
defaults.pcm.dsnoop.card defaults.pcm.card
defaults.pcm.dsnoop.device defaults.pcm.device
defaults.pcm.front.card defaults.pcm.card
defaults.pcm.front.device defaults.pcm.device
defaults.pcm.rear.card defaults.pcm.card
[/code]

this is my .asoundrc file
[code]sudo nano ~/.asoundrc

pcm.!default {
type asym
playback.pcm
{
type hw
card 0
device 0
}
capture.pcm
{
type hw
card 0
device 0
}
}[/code]

when i use omxplayer command without conditions, i can listen the

song via TV HDMI interface.
[code]omxplayer vaa.mp3[/code]

if i force omxplayer with alsa.. theirs no sound in HDMI or 2-mics

hat headphone port.
[code]omxplayer vaa.mp3 -o alsa[/code]
[code]omxplayer vaa.mp3 -o alsa:hw:0,0
Audio codec mp3 channels 2 samplerate 44100 bitspersample 16
Subtitle count: 0, state: off, index: 1, delay: 0[/code]

when i check speaker by..
[code]arecord -f cd -Dhw:0 | aplay -Dhw:0
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100

Hz, Stereo
Warning: rate is not accurate (requested = 44100Hz, got = 48000Hz)
please, try the plug plugin
aplay: main:788: audio open error: Device or resource busy[/code]

Hardware;

  • Raspberry pi 3b
  • seeedstudio 2-mics Hat
  • 22" HDMI TV
  • usb powerd speakers connected to 3.5mm jack of 2-mics Hat

Software;
Raspian Stretch
[email protected]
[email protected]
[email protected]_65-b17
[email protected]

Note: PulseAudio not installed.

Please save my life..

JST connector Speaker

Before installing Pulseaudio I can speak to the google assistant and It recognizes my speech. Using "speaker-test -t wav" I can hear the test sound. But whenever I'm asking something to the Google Assistant I can't hear the response. I can hear the JST connected speaker making a little beep when giving output and the beep disappearing when the response finished. I've tried a few things in Alsamixer but nothing (I tried) improved this.

So then I installed Pulseaudio and ran it in the background (as in the tutorial). The problem now here is I can select only one profile: Output or Input. I want to use both. The JST connected speaker and the microphone on the board. How can I do this?

Raspberry Pi 3 B with the latest Raspbian image. Using the ReSpeaker 2-Mics Pi HAT and I followed this tutorial: http://wiki.seeed.cc/Respeaker_2_Mics_Pi_HAT/

Any help is really appreciated!

Capturing 4mic with ffmpeg spikes cpu to 100%+ and crashes

Using latest master (b462e8a) with ffmpeg 3.4.2. I can capture with arecord with no issues.

Versions:

$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
$ ffmpeg -version
ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1) 20170516
configuration: --prefix=/usr --disable-static --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libx264 --enable-omx --enable-omx-rpi --enable-nonfree --enable-shared --enable-version3
libavutil      55. 78.100 / 55. 78.100
libavcodec     57.107.100 / 57.107.100
libavformat    57. 83.100 / 57. 83.100
libavdevice    57. 10.100 / 57. 10.100
libavfilter     6.107.100 /  6.107.100
libswscale      4.  8.100 /  4.  8.100
libswresample   2.  9.100 /  2.  9.100
libpostproc    54.  7.100 / 54.  7.100
$ arecord --version
arecord: version 1.1.5 by Jaroslav Kysela <[email protected]>

ffmpeg Command:

$ ffmpeg -y -nostdin -f alsa -c:a pcm_s32le -ac 4 -ar 16000 -guess_layout_max 0 -i ac108 -c:a copy test.wav
ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1) 20170516
  configuration: --prefix=/usr --disable-static --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libx264 --enable-omx --enable-omx-rpi --enable-nonfree --enable-shared --enable-version3
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, alsa, from 'ac108':
  Duration: N/A, start: 1519291996.206432, bitrate: 2048 kb/s
    Stream #0:0: Audio: pcm_s32le, 16000 Hz, 4 channels, s32, 2048 kb/s
Output #0, wav, to 'test.wav':
  Metadata:
    ISFT            : Lavf57.83.100
    Stream #0:0: Audio: pcm_s32le ([1][0][0][0] / 0x0001), 16000 Hz, 4 channels, s32, 2048 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
[alsa @ 0x4ba930] ALSA buffer xrun.trate=1864.9kbits/s speed=0.561x
[alsa @ 0x4ba930] ALSA buffer xrun.trate=1050.1kbits/s speed=0.855x

Kernel Log:

Feb 22 01:23:42 raspberrypi kernel: [ 1744.752723] ac10x_read error1 -11 tried 0
Feb 22 01:23:42 raspberrypi kernel: [ 1744.752726] ac10x_read error1 -11 tried 0
Feb 22 01:23:42 raspberrypi kernel: [ 1744.752729] ac10x_read error1 -11 tried 0
Feb 22 01:23:46 raspberrypi kernel: [ 1749.428370] ac10x_read error1 -11 tried 0
Feb 22 01:23:46 raspberrypi kernel: [ 1749.428377] ac10x_read error1 -11 tried 0
Feb 22 01:23:46 raspberrypi kernel: [ 1749.428380] ac10x_read error1 -11 tried 0
Feb 22 01:23:46 raspberrypi kernel: [ 1749.428382] ac10x_read error1 -11 tried 0
Feb 22 01:23:52 raspberrypi kernel: [ 1755.120939] i2c-bcm2835 3f804000.i2c: i2c transfer timed out
Feb 22 01:23:52 raspberrypi kernel: [ 1755.120949] ac10x_read error1 -110 tried 0
Feb 22 01:23:53 raspberrypi kernel: [ 1756.160930] i2c-bcm2835 3f804000.i2c: i2c transfer timed out
Feb 22 01:23:53 raspberrypi kernel: [ 1756.160939] ac10x_read error1 -110 tried 0
Feb 22 01:23:54 raspberrypi kernel: [ 1757.200933] i2c-bcm2835 3f804000.i2c: i2c transfer timed out
Feb 22 01:23:54 raspberrypi kernel: [ 1757.200942] ac10x_read error1 -110 tried 0
Feb 22 01:23:55 raspberrypi kernel: [ 1758.240930] i2c-bcm2835 3f804000.i2c: i2c transfer timed out
Feb 22 01:23:55 raspberrypi kernel: [ 1758.240939] ac10x_read error1 -110 tried 0
Feb 22 01:23:55 raspberrypi kernel: [ 1758.241490] ac10x_read error1 -5 tried 0
Feb 22 01:23:55 raspberrypi kernel: [ 1758.241515] ac10x_read error1 -5 tried 0
Feb 22 01:24:01 raspberrypi kernel: [ 1764.000935] i2c-bcm2835 3f804000.i2c: i2c transfer timed out
Feb 22 01:24:01 raspberrypi kernel: [ 1764.000944] ac10x_read error1 -110 tried 0
Feb 22 01:24:02 raspberrypi kernel: [ 1765.040933] i2c-bcm2835 3f804000.i2c: i2c transfer timed out
Feb 22 01:24:02 raspberrypi kernel: [ 1765.040942] ac10x_read error1 -110 tried 0
Feb 22 01:24:03 raspberrypi kernel: [ 1766.080926] i2c-bcm2835 3f804000.i2c: i2c transfer timed out
Feb 22 01:24:03 raspberrypi kernel: [ 1766.080934] ac10x_read error1 -110 tried 0
Feb 22 01:24:04 raspberrypi kernel: [ 1767.120931] i2c-bcm2835 3f804000.i2c: i2c transfer timed out
Feb 22 01:24:04 raspberrypi kernel: [ 1767.120939] ac10x_read error1 -110 tried 0
Feb 22 01:24:04 raspberrypi kernel: [ 1767.121185] ac10x_read error1 -5 tried 0
Feb 22 01:24:04 raspberrypi kernel: [ 1767.121216] ac10x_read error1 -5 tried 0

arecord Command

arecord -Dac108 -f S32_LE -r 16000 -c 4 --verbose out.wav
Recording WAVE 'out.wav' : Signed 32 bit Little Endian, Rate 16000 Hz, Channels 4
Plug PCM: Hardware PCM card 1 'seeed-4mic-voicecard' device 0 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S32_LE
  subformat    : STD
  channels     : 4
  rate         : 16000
  exact rate   : 16000 (16000/1)
  msbits       : 32
  buffer_size  : 8000
  period_size  : 2000
  period_time  : 125000
  tstamp_mode  : NONE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min    : 2000
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 8000
  silence_threshold: 0
  silence_size : 0
  boundary     : 2097152000
  appl_ptr     : 0
  hw_ptr       : 0

This is not working - No Respeaker card gets installed

Again @Pillar1989 like i mentioned to you in different streams thank you for trying but the new build command does not build anything.

pi@raspberrypi:~ $ arecord -f cd | aplay
arecord: main:788: audio open error: No such file or directory
aplay: playback:2787: read error
pi@raspberrypi:~ $

I followed your new guide to the letter:

"git clone https://github.com/respeaker/seeed-voicecard -b install
cd seeed-voicecard/
pi@raspberrypi:~/seeed-voicecard $ sudo ./install.sh "

pi@raspberrypi:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0

is this suppose to run on Raspbian stretch with desktop only? I m on Raspbian Jessie lite. DO i need to install a specific version of python maybe?

The install only gets instaled when i execute git clone https://github.com/respeaker/seeed-voicecard.git
with ".git" at the end but then i run into all the other problems i described in the other posts.

Respeaker 2-mic channel 1 has failed

Following is the command execution and error:

$>google-assistant-demo --device_model_id respeaker
device_model_id: respeaker
device_id: FB29E975434B822C7AD45E3AADB1AFFF

ON_MUTED_CHANGED:
{'is_muted': False}
ON_START_FINISHED
[1528:1558:ERROR:mic_failure_detector.cc(140)] [assistant] Channel 1 has failed. Powers -inf and -inf

Also test "arecord -f cd -Dhw:1 | aplay -Dhw:1" is failed. The mics could not pick up the voice.

ReSpeaker 4mic for Raspbian Jessie: unable to record (arecord: main:722: audio open error: Invalid argument)

Hello. Please help. Have installed/uninstalled many times. (all failed) Please advise....

  1. Enabled SPI and i2c.
  2. sudo apt-get install i2c-tools
  3. sudo ./install.sh 4mic
  4. sudo reboot
  5. sudo systemctl restart seeed-voicecard

$arecord -Dac108 -f S32_LE -r 16000 -c 4 hello.wav
ALSA lib pcm_direct.c:999:(snd1_pcm_direct_initialize_slave) unable to install hw params
ALSA lib pcm_dsnoop.c:629:(snd_pcm_dsnoop_open) unable to initialize slave
arecord: main:722: audio open error: Invalid argument

$dmesg:
[ 33.349595] i2c_id number : 0
[ 33.349610] ac10x data protocol: 0
[ 33.370589] ac10x codec count : 1
[ 33.371536] ac108_set_sysclk :24000000
[ 33.380092] asoc-simple-card soc:sound: ac10x-codec0 <-> 3f203000.i2s mapping ok
[ 91.940526] bcm2835-i2s 3f203000.i2s: bcm2835_i2s_hw_params:bad format
[ 91.940612] bcm2835-i2s 3f203000.i2s: ASoC: can't set 3f203000.i2s hw params: -22

$i2cdetect -y -r 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

$ arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
playback
dmixed
ac108
multiapps
default
sysdefault:CARD=seeed4micvoicec
seeed-4mic-voicecard,
Default Audio Device
dmix:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Direct sample mixing device
dsnoop:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Direct sample snooping device
hw:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Direct hardware device without any conversions
plughw:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Hardware device with all software conversions

Run Seed 4mic array in a container app

I am trying to run a python app that uses a respeaker microphone on RPI3. The app works when i run in on the device but i am not able to access the microphone when i run the app inside a container.

Here is the docker command i use to run the container app:

docker run -i -t myimageid

I am not able to find the device inside the container app, here is a code snippet i am using:

from pyaudio import *
print("=================Looking for sound devices =======================")
p = PyAudio()
for i in range(p.get_device_count()):
    name = p.get_device_info_by_index(i)['name']
    if 'seeed-4mic' in name:
        audio_device_index = i
        print('Using audio input device %d: %s' % (i, name))
        break
    else:
        print(name) 

Is there a way i can access a microphone device in a container app? i read little bit about --device switch but it didn't work.

This is what i tried:

docker run -i -t myimageid --device

安装驱动后,树莓派没有了声音

我安装驱动后,树莓派没有了声音,即使我在面板下修改成3.5还是不行 raspi-config,只要我卸载了就没问题了,后来我定位是 /etc/asound 删除就可以了,我看安装脚本 是asound_4mic.conf 拷贝进去的,问下如何解决?

error in seed-voicecard install : Error! Bad return status for module build on kernel: 3.6-trunk-rpi (armv6l)


Deleting module version: 0.3
completely from the DKMS tree.

Done.

Creating symlink /var/lib/dkms/seeed-voicecard/0.3/source ->
/usr/src/seeed-voicecard-0.3

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....(bad exit status: 2)
make -j1 KERNELRELEASE=3.6-trunk-rpi -C /lib/modules/3.6-trunk-rpi/build M=/var/lib/dkms/seeed-voicecard/0.3/build.....(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.6-trunk-rpi (armv6l)
Consult /var/lib/dkms/seeed-voicecard/0.3/build/make.log for more information.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area.....
make -j1 KERNELRELEASE=4.14.30+ -C /lib/modules/4.14.30+/build M=/var/lib/dkms/seeed-voicecard/0.3/build..........^Ap........(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.14.30+ (armv6l)
Consult /var/lib/dkms/seeed-voicecard/0.3/build/make.log for more information.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area.....
make -j1 KERNELRELEASE=4.14.30-v7+ -C /lib/modules/4.14.30-v7+/build M=/var/lib/dkms/seeed-voicecard/0.3/build..................(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.14.30-v7+ (armv6l)
Consult /var/lib/dkms/seeed-voicecard/0.3/build/make.log for more information.
mkdir: cannot create directory ‘/etc/voicecard’: File exists

Please reboot your raspberry pi to apply all settings
Enjoy!

$lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.4 (stretch)
Release: 9.4
Codename: stretch

2mic not listed in aplay

After driver installation and reboot on a vanilla Raspbian Stretch lite, i can't find the soundcard.

The RGB LED's are working over the SPI. However the aplay list only shows the bcm2835 default device.

Device: Raspberry Pi Zero W
Soundcard: ReSpeaker 2-mics Pi HAT v1.0
Linux raspberrypi 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT 2017 armv6l

Install log:
https://pastebin.com/3DLwkaU7

Unable to get Status Code 204

I followed the sets of commands given in following article
http://wiki.seeed.cc/ReSpeaker_4_Mic_Array_for_Raspberry_Pi/

But after being done with the commands. No Status code 204 is received after running
"python ns_kws_doa_alexa_with_light.py"

Please help me to find the issue.

Following is the log file.........

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
ALSA lib pcm_dmix.c:990:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_ac108.c:469:(_snd_pcm_ac108_open) a108 is only for capture
connect(2) call to /tmp/jack-1000/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
INFO:/home/pi/env/local/lib/python2.7/site-packages/voice_engine-0.0.3-py2.7.egg/voice_engine/source.pyc:0:bcm2835 ALSA: - (hw:0,0) with 0 input channels
INFO:/home/pi/env/local/lib/python2.7/site-packages/voice_engine-0.0.3-py2.7.egg/voice_engine/source.pyc:1:bcm2835 ALSA: IEC958/HDMI (hw:0,1) with 0 input channels
INFO:/home/pi/env/local/lib/python2.7/site-packages/voice_engine-0.0.3-py2.7.egg/voice_engine/source.pyc:2:seeed-4mic-voicecard: - (hw:1,0) with 2 input channels
INFO:/home/pi/env/local/lib/python2.7/site-packages/voice_engine-0.0.3-py2.7.egg/voice_engine/source.pyc:3:sysdefault with 0 input channels
INFO:/home/pi/env/local/lib/python2.7/site-packages/voice_engine-0.0.3-py2.7.egg/voice_engine/source.pyc:4:playback with 0 input channels
INFO:/home/pi/env/local/lib/python2.7/site-packages/voice_engine-0.0.3-py2.7.egg/voice_engine/source.pyc:5:dmixed with 0 input channels
INFO:/home/pi/env/local/lib/python2.7/site-packages/voice_engine-0.0.3-py2.7.egg/voice_engine/source.pyc:6:ac108 with 4 input channels
INFO:/home/pi/env/local/lib/python2.7/site-packages/voice_engine-0.0.3-py2.7.egg/voice_engine/source.pyc:Use ac108
INFO:avs.alexa:Refreshing access_token
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.amazon.com
DEBUG:urllib3.connectionpool:https://api.amazon.com:443 "POST /auth/o2/token HTTP/1.1" 200 977
DEBUG:avs.alexa:{
"product_id": "ReSpeaker",
"access_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"refresh_url": "https://api.amazon.com/auth/o2/token",
"expiry": "Thu Dec 07 12:49:45 2017",
"api": "v20160207",
"client_id": "amzn1.application-oa2-client.xxxxxxxxxxxxxxxxxxxxxxxxxx",
"host_url": "avs-alexa-na.amazon.com",
"client_secret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"refresh_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
DEBUG:hyper.http20.connection:Selected NPN protocol: h2
DEBUG:hyper.http20.connection:recv for stream 0 with set([]) already present
INFO:hyper.http20.connection:Received unhandled event <RemoteSettingsChanged changed_settings:{ChangedSetting(setting=SettingCodes.MAX_CONCURRENT_STREAMS, original_value=None, new_value=100), ChangedSetting(setting=SettingCodes.INITIAL_WINDOW_SIZE, original_value=65535, new_value=2147483647), ChangedSetting(setting=SettingCodes.max_header_list_size, original_value=None, new_value=40960)}>
INFO:hyper.http20.connection:Received unhandled event <WindowUpdated stream_id:0, delta:2147418112>
DEBUG:hpack.hpack:HPACK encoding <generator object inner at 0x73e4ac88>
DEBUG:hpack.hpack:Adding (':method', 'GET') to the header table
ALSA lib pcm.c:8306:(snd_pcm_recover) overrun occurred
DEBUG:hpack.hpack:Encoding 2 with 7 bits
DEBUG:hpack.hpack:Adding (':scheme', 'https') to the header table
DEBUG:hpack.hpack:Encoding 7 with 7 bits
DEBUG:hpack.hpack:Adding (':authority', 'avs-alexa-na.amazon.com') to the header table
DEBUG:hpack.hpack:Encoding 1 with 6 bits
DEBUG:hpack.hpack:Encoding 17 with 7 bits
DEBUG:hpack.hpack:Adding (':path', '/v20160207/directives') to the header table
DEBUG:hpack.hpack:Encoding 4 with 6 bits
DEBUG:hpack.hpack:Encoding 15 with 7 bits
DEBUG:hpack.hpack:Adding ('authorization', 'Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx') to the header table
DEBUG:hpack.hpack:Encoding 23 with 4 bits
DEBUG:hpack.hpack:Encoding 474 with 7 bits
DEBUG:hpack.hpack:Encoded header block to ��A��t,:
�kT5�H����z�D��� :Ć��I�������Q�[��>��2x�w&Z��RpŲ�d����gl2{�����(���{6���Vtلz����U������ii̋%�I�ʍ���q��{/���إg6�l����~���1�k�����������͎Д�?W������&�ut{�5�
�O��n��o�f�sg)|���g纟ވl�;4���tMژ�F�y��E�s�ڰ����˶O�:ͨ�|���^�mr^"�
Y����lכVP6���ǫ$��-��p�O#~�߽�������[����zeoe����������ѥ�)ܣ�����+����W�o��ڒ���vJ{���}E�??�1X�+vF�<�,�ͺb� �;gf��ӣV����;�;����g��çk �)EӮH�����O>|;��T��E�0mK;,)�{A�U���߿Q�FyÛoK�۵���;��e����P�WNhݮ�f DEBUG:hyper.http20.connection:recv for stream 1 with set([]) already present INFO:hyper.http20.connection:Received unhandled event <SettingsAcknowledged changed_settings:{ChangedSetting(setting=SettingCodes.ENABLE_PUSH, original_value=1, new_value=0)}> INFO:hyper.http20.connection:Received unhandled event <SettingsAcknowledged changed_settings:{}> DEBUG:hyper.http20.connection:recv for stream 1 with set([]) already present DEBUG:hpack.hpack:Decoding �T�*@�����R����BM'���tOK,�fBH�K�DrE�����.1���"��k9#/F%��H�mR�P,��,��$��Q>�,��� A�ǩ=
DEBUG:hpack.hpack:Decoded 8, consumed 1 bytes DEBUG:hpack.hpack:Decoded (':status', '200'), consumed 1 DEBUG:hpack.hpack:Decoded 20, consumed 1 bytes DEBUG:hpack.hpack:Decoded 1, consumed 1 bytes DEBUG:hpack.hpack:Decoded ('access-control-allow-origin', <memory at 0x73eb4f80>), total consumed 3 bytes, indexed True DEBUG:hpack.hpack:Decoded 12, consumed 1 bytes DEBUG:hpack.hpack:Decoded 44, consumed 1 bytes DEBUG:hpack.hpack:Decoded ('x-amzn-requestid', '06c728fffe3dcd94-00004c6d-0000c350-3d16aba23a82e67b-6d39ad0b-1'), total consumed 59 bytes, indexed True DEBUG:hpack.hpack:Decoded 31, consumed 1 bytes DEBUG:hpack.hpack:Decoded 47, consumed 1 bytes DEBUG:hpack.hpack:Decoded ('content-type', 'multipart/related; boundary=------abcde123; type=application/json'), total consumed 49 bytes, indexed True INFO:hyper.http20.connection:Received unhandled event <PriorityUpdated stream_id:1, weight:16, depends_on:0, exclusive:False> DEBUG:hpack.hpack:HPACK encoding <generator object inner at 0x73e5c210> DEBUG:hpack.hpack:Adding (':method', 'POST') to the header table DEBUG:hpack.hpack:Encoding 3 with 7 bits DEBUG:hpack.hpack:Adding (':scheme', 'https') to the header table DEBUG:hpack.hpack:Encoding 7 with 7 bits DEBUG:hpack.hpack:Adding (':authority', 'avs-alexa-na.amazon.com') to the header table DEBUG:hpack.hpack:Encoding 63 with 7 bits DEBUG:hpack.hpack:Adding (':path', '/v20160207/events') to the header table DEBUG:hpack.hpack:Encoding 4 with 6 bits DEBUG:hpack.hpack:Encoding 12 with 7 bits DEBUG:hpack.hpack:Adding ('content-type', 'multipart/form-data; boundary=seeed-voice-engine') to the header table DEBUG:hpack.hpack:Encoding 31 with 6 bits DEBUG:hpack.hpack:Encoding 34 with 7 bits DEBUG:hpack.hpack:Adding ('authorization', 'Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx') to the header table DEBUG:hpack.hpack:Encoding 23 with 4 bits DEBUG:hpack.hpack:Encoding 474 with 7 bits DEBUG:hpack.hpack:Encoded header block to ���D�c��� :�{���_����j�bX��R��H�Ԍ�� ��� Rȷs��X�Lj�����Q�[��>��2x�w&Z��RpŲ�d����gl2{�����(���{6���Vtلz����U������ii̋%�I�ʍ���q��{/���إg6�l����~���1�k�����������͎Д�?W������&�ut{�5� �O��n��o�f�sg)|���g纟ވl�;4���tMژ�F�y��E�s�ڰ����˶O�:ͨ�|���^�mr^"���u���������6 Y����lכVP6���ǫ$��-��p�O#~�߽�������[����zeoe����������ѥ�)ܣ�����+����W�o��ڒ���vJ{���}E�??�1X�+vF�<�,�ͺb� �;gf��ӣV����;�;����g��çk �)EӮH�����O>|;��T��E�0mK;,)�{A�U���߿Q�FyÛoK�۵���;��e����P�WNhݮ�f
DEBUG:avs.alexa:metadata: {
"event": {
"header": {
"namespace": "System",
"name": "SynchronizeState",
"messageId": "65a2d68cece747bd8b4f0fa40936e073"
},
"payload": {}
},
"context": [
{
"header": {
"namespace": "SpeechSynthesizer",
"name": "SpeechState"
},
"payload": {
"token": "",
"playerActivity": "FINISHED",
"offsetInMilliseconds": 0
}
},
{
"header": {
"namespace": "Speaker",
"name": "VolumeState"
},
"payload": {
"volume": 50,
"muted": false
}
},
{
"header": {
"namespace": "AudioPlayer",
"name": "PlaybackState"
},
"payload": {
"token": "",
"playerActivity": "IDLE",
"offsetInMilliseconds": 0
}
},
{
"header": {
"namespace": "Alerts",
"name": "AlertsState"
},
"payload": {
"allAlerts": [],
"activeAlerts": []
}
}
]
}
INFO:avs.alexa:wait for response
DEBUG:hyper.http20.connection:recv for stream 3 with set([1]) already present
%��3�T���ck.hpack:Decoding ������tOK,�fBH�K�DrE�����.1���"��k9#/F�?_Ħ��j�bX��
&=LtA��� ,��,8�!B&~Бؘ)*G �5��D��p/��}��e���u�b
DEBUG:hpack.hpack:Decoded 8, consumed 1 bytes
DEBUG:hpack.hpack:Decoded (':status', '200'), consumed 1
DEBUG:hpack.hpack:Decoded 64, consumed 1 bytes
DEBUG:hpack.hpack:Decoded ('access-control-allow-origin', <memory at 0x73eb4f80>), consumed 1
DEBUG:hpack.hpack:Decoded 63, consumed 2 bytes
DEBUG:hpack.hpack:Decoded 44, consumed 1 bytes
DEBUG:hpack.hpack:Decoded ('x-amzn-requestid', '06c728fffe3dcd94-00004c6d-0000c350-3d16aba23a82e67b-6d39ad0b-3'), total consumed 47 bytes, indexed True
DEBUG:hpack.hpack:Decoded 31, consumed 1 bytes
DEBUG:hpack.hpack:Decoded 68, consumed 1 bytes
DEBUG:hpack.hpack:Decoded ('content-type', 'multipart/related;boundary=------abcde123;start=metadata.1512627619030;type="application/json"'), total consumed 70 bytes, indexed True
INFO:hyper.http20.connection:Received unhandled event <PriorityUpdated stream_id:3, weight:16, depends_on:0, exclusive:False>
INFO:avs.alexa:status code: 200
INFO:avs.alexa:Found 176 bytes of None application/json, first_payload_block=True
INFO:avs.alexa:Finished downloading JSON
DEBUG:avs.alexa:{u'directive': {u'header': {u'namespace': u'System', u'name': u'SetEndpoint', u'messageId': u'cc59261c-59ef-4629-8650-2816e28a37f7'}, u'payload': {u'endpoint': u'https://avs-alexa-eu.amazon.com'}}}
DEBUG:avs.alexa:{
"header": {
"namespace": "System",
"name": "SetEndpoint",
"messageId": "cc59261c-59ef-4629-8650-2816e28a37f7"
},
"payload": {
"endpoint": "https://avs-alexa-eu.amazon.com"
}
}
DEBUG:avs.alexa:ping at Thu Dec 07 11:53:48 2017
INFO:hyper.http20.connection:Received unhandled event
DEBUG:avs.alexa:ping at Thu Dec 07 11:57:48 2017
DEBUG:avs.alexa:ping at Thu Dec 07 12:01:49 2017

Raspberry Pi zero W incompatibility

Hi, I'm trying to use the 2mic version of Seeed HAT on a Raspberry Pi zero W. I managed to compile the modules on 4.9.59+ kernel over a Raspbian Stretch(the 4.9.77+ does not have headers at the moment, so I freezed it at the stable branch).

The HAT is not recognized in aplay/arecord and I have these errors:

60.592823] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[ 60.947960] wm8960 1-001a: Failed to issue reset
[ 60.948135] wm8960: probe of 1-001a failed with error -121

on dmesg

and

snd_soc_ac108: loading out-of-tree module taints kernel.

before. I expected the latter.

I can't use the HAT in any way.

I tested the same exact configuration on a RPI3 (I swapped the microSDs and mounted the HAT on it) and it's fully working here, LEDs and Google Assistant tested and functioning with audio in and out.

This is the HAT mounting (without the speaker at the moment, to simplify things)

image

I have no error on compilation and already tried the "./uninstall 4mic ./uninstall 2mic reboot ./install 2mic" procedure with no success.

Tested the dev branch too. Tried to use a Jessie with a 4.9.35+ kernel and a 4.9.59+ too but no joy here. Let me know if you need any log and/or test. Happy to help pinpoint the issue.

Thanks a lot, can't wait to use this product to its full extents.

voicecard install failed

$ git clone --depth=1 https://github.com/respeaker/seeed-voicecard
$ cd seeed-voicecard
$ sudo ./install.sh

...
DKMS: add completed.
Error! echo
Your kernel headers for kernel 4.9.24-v7+ cannot be found at
/lib/modules/4.9.24-v7+/build or /lib/modules/4.9.24-v7+/source.

Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux

Driver for banana pi

Can i use this respeaker 2 mic hat in banana pi.
How can i use this driver in banana pi.

nothing recorded but errors in dmesg

[ 3.179662] i2c_id number :0
[ 3.179674] ac108 codec_index :0
[ 3.179679] ac108 I2S data protocol type :1
[ 3.189993] ac108_write error->[REG-0x00,val-0x12]
[ 3.196053] ac108_set_sysclk :24000000
[ 3.228844] asoc-simple-card soc:sound: ac108-codec0 <-> 3f203000.i2s mapping ok
...
[ 28.566916] ac108_write error->[REG-0x33,val-0x0f]
[ 28.568356] ac108_read error1
[ 28.569789] ac108_read error1
[ 28.571239] ac108_write error->[REG-0x35,val-0x33]
[ 28.572681] ac108_read error1
[ 28.574113] ac108_write error->[REG-0x60,val-0x04]
[ 28.575545] ac108_write error->[REG-0x66,val-0x0f]
[ 28.575551] AC108 PLL freq_in match:24000000, freq_out:22579200

[ 28.576985] ac108_read error1
[ 28.578418] ac108_write error->[REG-0x14,val-0xa9]
[ 28.579849] ac108_read error1
[ 28.581291] ac108_write error->[REG-0x13,val-0x40]
[ 28.582729] ac108_read error1
[ 28.584162] ac108_write error->[REG-0x12,val-0xa5]
[ 28.585593] ac108_read error1
[ 28.587024] ac108_write error->[REG-0x11,val-0x90]
[ 28.588454] ac108_read error1
[ 28.589884] ac108_write error->[REG-0x18,val-0xa7]
[ 28.591331] ac108_read error1
[ 28.592776] ac108_write error->[REG-0x10,val-0xaf]
[ 28.594211] ac108_read error1
[ 28.595642] ac108_write error->[REG-0x20,val-0x8f]
[ 28.597073] ac108_write error->[REG-0x21,val-0x93]
....

if i record on the ac108 device (arecord/audacity) more from this errors will appened.

Muffled audio via 3.5mm audio jack

I have installed the linux kernel drivers for my Respeaker 2 mic pHat on my Pi Zero W and can confirm the microphone works perfectly (recorded audio out to file and played it back via a bluetooth speaker). However, when playing audio with the headphones connected to the headphone jack, the audio is barely audible and sounds garbled/muffled.

Does this sound like a hardware issue that may require a replacement Resepeaker 2 mic board?

Command used to test arecord -f cd -Dhw:1 | aplay -Dhw:1

Independent hp out and spk out?

2-mic HAT.
As there are 2 independent controls in alsamixer, one for headphones and one for speaker, how do I find the hp device in order to update alsa asoundrc file to play audio only to headphones?

arecord doesn't show available devices/drivers

Hi,

I am running raspbian stretch on RPI3. After installing seeed driver for my respeaker 4 mic array, i am not able to use see seeed mic device because driver issues.

When i execute "arecord -L" in terminal window, i see a stripped version of the expected output with details for installed drivers..etc.

See below:

image

do you know what i need to do to fix this issue ? so i can see the 4mic array driver as it is supposed to be.

Thanks.

Can't aplay -l the dev in raspberrypi3

I'm using "Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux" in raspberry pi 3. Try the "ReSpeaker_Mic_Array_firmware_xvsm_0x032_20170324.bin" and the factory bin.
I'm using the install.sh script to install the module.
Reboot, and found that
new full-speed USB device number 7 using dwc_otg
[ 1400.294505] usb 1-1.5: not running at top speed; connect to a high speed hub
[ 1400.295890] usb 1-1.5: config 1 interface 4 altsetting 0 has 2 endpoint descriptors, different from the interface descriptor's value: 1
[ 1400.297259] usb 1-1.5: config 1 interface 4 altsetting 0 has 2 endpoint descriptors, different from the interface descriptor's value: 1
[ 1400.298374] usb 1-1.5: New USB device found, idVendor=2886, idProduct=0007
[ 1400.298384] usb 1-1.5: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[ 1400.298392] usb 1-1.5: Product: ReSpeaker Microphone Array
[ 1400.298400] usb 1-1.5: Manufacturer: SeeedStudio
[ 1402.521110] hid-generic 0003:2886:0007.0002: hidraw0: USB HID v1.10 Device [SeeedStudio ReSpeaker Microphone Array] on usb-3f980000.usb-1.5/input4

When aplay -l the output was
**** List of PLAYBACK Hardware Devices ****
card 1: UAC20 [ReSpeaker MicArray UAC2.0], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

Thanks!!!

Android things driver Support

Hi,
Do you know how to install voice card driver on Android things installed in Raspberrypi 3. If its not already available, can you help me in showing some pointer on how it can be written for android things.
Looking forward to hear from you soon.
Regards
Suresh

Respeaker 2mic driver does not work on PI 3 B

I have Raspberry Pi 3 B and hooked with respeaker 2-Mics Pi HAT. I use Linux Rasberrypi OS 4.9.59-v7+ built on 10/29/2017. When the system up, "speaker-test -t wav" is OK. I did following to install the 2-mics driver:
$git clone https://github.com/respeaker/seeed-voicecard.git
$cd seeed-voicecard
$sudo ./install.sh 2mic
$reboot
after system reboot, the "speaker-test -t wav" is broken. The test
$ arecord -f cd -Dhw:1 | aplay -Dhw:1
Is broken. No record no playback.
Please help rootcause the issue. It looks like "sudo ./install 2mic" 2mic driver has some issue.

Doesn't compile in Raspberry PI zero W (or any other) with latest versions of Rasbian Stretch

Following the instructions on the wiki, I haven't been able to add support for the ReSpeaker 2Mic because it doesn't compile... The module is never created

Here are the logs when issuing the command: sudo ./install.sh 2mic related to the module building:

`Building module:
cleaning build area.....
make -j1 KERNELRELEASE=4.14.30+ -C /lib/modules/4.14.30+/build M=/var/lib/dkms/seeed-voicecard/0.3/build............................(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.14.30+ (armv6l)
Consult /var/lib/dkms/seeed-voicecard/0.3/build/make.log for more information.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area.....
make -j1 KERNELRELEASE=4.14.30-v7+ -C /lib/modules/4.14.30-v7+/build M=/var/lib/dkms/seeed-voicecard/0.3/build.......................(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.14.30-v7+ (armv6l)
Consult /var/lib/dkms/seeed-voicecard/0.3/build/make.log for more information.
Created symlink /etc/systemd/system/sysinit.target.wants/seeed-voicecard.service → /lib/systemd/system/seeed-voicecard.service.

Please reboot your raspberry pi to apply all settings
Enjoy! `

Reviewing the logs:
DKMS make.log for seeed-voicecard-0.3 for kernel 4.14.30-v7+ (armv6l) Wed Mar 28 23:12:19 UTC 2018 make: Entering directory '/usr/src/linux-headers-4.14.30-v7+' AR /var/lib/dkms/seeed-voicecard/0.3/build/built-in.o CC [M] /var/lib/dkms/seeed-voicecard/0.3/build/wm8960.o LD [M] /var/lib/dkms/seeed-voicecard/0.3/build/snd-soc-wm8960.o CC [M] /var/lib/dkms/seeed-voicecard/0.3/build/ac108.o CC [M] /var/lib/dkms/seeed-voicecard/0.3/build/ac101.o LD [M] /var/lib/dkms/seeed-voicecard/0.3/build/snd-soc-ac108.o CC [M] /var/lib/dkms/seeed-voicecard/0.3/build/simple-card.o /var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c: In function <E2><80><98>asoc_simple_card_dai_link_of<E2><80><99>: /var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c:364:61: error: macro "asoc_simple_card_parse_clk_cpu" requires 4 arguments, but only 3 given ret = asoc_simple_card_parse_clk_cpu(cpu, dai_link, cpu_dai); ^ /var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c:364:8: error: <E2><80><98>asoc_simple_card_parse_clk_cpu<E2><80><99> undeclared (first use in this function) ret = asoc_simple_card_parse_clk_cpu(cpu, dai_link, cpu_dai); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c:364:8: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c:368:67: error: macro "asoc_simple_card_parse_clk_codec" requires 4 arguments, but only 3 given ret = asoc_simple_card_parse_clk_codec(codec, dai_link, codec_dai); ^ /var/lib/dkms/seeed-voicecard/0.3/build/simple-card.c:368:8: error: <E2><80><98>asoc_simple_card_parse_clk_codec<E2><80><99> undeclared (first use in this function) ret = asoc_simple_card_parse_clk_codec(codec, dai_link, codec_dai); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scripts/Makefile.build:328: recipe for target '/var/lib/dkms/seeed-voicecard/0.3/build/simple-card.o' failed make[1]: *** [/var/lib/dkms/seeed-voicecard/0.3/build/simple-card.o] Error 1 Makefile:1519: recipe for target '_module_/var/lib/dkms/seeed-voicecard/0.3/build' failed make: *** [_module_/var/lib/dkms/seeed-voicecard/0.3/build] Error 2 make: Leaving directory '/usr/src/linux-headers-4.14.30-v7+'

For two days I've been trying different versions of Stretch, even jessie, but still no luck...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.