From f49d8966130c41334f8294601d83f6a82714d458 Mon Sep 17 00:00:00 2001 From: Baozhu Zuo Date: Thu, 1 Feb 2018 16:07:26 +0800 Subject: [PATCH] update readme add dkms version --- README.md | 42 ++++++++++++++---------------------------- dkms.conf | 2 +- 2 files changed, 15 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 599ffa3..147de9e 100644 --- a/README.md +++ b/README.md @@ -4,22 +4,21 @@ The drivers of [ReSpeaker Mic Hat](https://www.seeedstudio.com/ReSpeaker-2-Mics-Pi-HAT-p-2874.html) and [ReSpeaker 4 Mic Array](https://www.seeedstudio.com/ReSpeaker-4-Mic-Array-for-Raspberry-Pi-p-2941.html) for Raspberry Pi. +### Install seeed-voicecard +Get the seeed voice card source code. and install all linux kernel drivers +```bash +git clone https://github.com/respeaker/seeed-voicecard +cd seeed-voicecard +sudo ./install.sh +sudo reboot +``` + ## ReSpeaker Mic Hat [![](https://github.com/SeeedDocument/MIC_HATv1.0_for_raspberrypi/blob/master/img/mic_hatv1.0.png?raw=true)](https://www.seeedstudio.com/ReSpeaker-2-Mics-Pi-HAT-p-2874.html) - While the upstream wm8960 codec is not currently supported by current Pi kernel builds, upstream wm8960 has some bugs, we had fixed it. we must it build manually. -Get the seeed voice card source code. -```bash -git clone https://github.com/respeaker/seeed-voicecard -cd seeed-voicecard -#for ReSpeaker 2-mic -sudo ./install.sh 2mic -sudo reboot -``` - Check that the sound card name matches the source code seeed-voicecard. ```bash @@ -49,6 +48,9 @@ card 1: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hif Subdevice #0: subdevice #0 pi@raspberrypi:~/seeed-voicecard $ ``` +If you want to change the alsa settings, You can use `sudo alsactl --file=/etc/voicecard/wm8960_asound.state store` to save it. + + #### Next step Go to https://github.com/respeaker/mic_hat to build voice enabled projects with Google Assistant SDK or Alexa Voice Service. @@ -59,15 +61,6 @@ Go to https://github.com/respeaker/mic_hat to build voice enabled projects with The 4 Mic Array uses ac108 which includes 4 ADCs, we also write ac108 rapberry pi linux kernel driver. -```bash -git clone https://github.com/respeaker/seeed-voicecard -cd seeed-voicecard -sudo ./install.sh 4mic - -#reboot your Raspbian OS -sudo reboot -``` - Check that the sound card name matches the source code seeed-voicecard. ```bash @@ -100,7 +93,7 @@ plughw:CARD=seeed4micvoicec,DEV=0 Hardware device with all software conversions pi@raspberrypi:~ $ ``` -If you want to change the alsa settings, You can use `sudo alsactl --file=asound.state store` to save it. +If you want to change the alsa settings, You can use `sudo alsactl --file=/etc/voicecard/ac108_asound.state store` to save it. Test: ```bash @@ -118,7 +111,7 @@ arecord -Dac108 -f S32_LE -r 16000 -c 4 a.wav If you want to upgrade the driver , you need uninstall the driver first. ``` -pi@raspberrypi:~/seeed-voicecard $ sudo ./uninstall.sh 4mic +pi@raspberrypi:~/seeed-voicecard $ sudo ./uninstall.sh delete dtoverlay=seeed-4mic-voicecard in /boot/config.txt delete snd-soc-ac108 in /etc/modules ------------------------------------------------------ @@ -136,14 +129,7 @@ Thank you! ------------------------------------------------------ ``` -### with Google Assistant -if you run the assistant but the playback is speed up considerably, try to configure alsa: -```bash -sudo cp asound.conf /etc/asound.conf -``` - -If the alsa configuration doesn't solve the issue, try to use pulseaudio. See [#4](https://github.com/respeaker/seeed-voicecard/issues/4) Enjoy ! diff --git a/dkms.conf b/dkms.conf index 5904bf6..da7ace9 100644 --- a/dkms.conf +++ b/dkms.conf @@ -1,5 +1,5 @@ PACKAGE_NAME="seeed-voicecard" -PACKAGE_VERSION="0.2" +PACKAGE_VERSION="0.3" BUILT_MODULE_NAME[0]="snd-soc-wm8960" BUILT_MODULE_NAME[1]="snd-soc-ac108" DEST_MODULE_LOCATION[0]="/kernel/sound/soc/codecs"