seeed-voicecard/README.md

55 lines
2.3 KiB
Markdown
Raw Normal View History

# seeed-voicecard
2017-09-14 14:22:02 +02:00
The drivers for [ReSpeaker Mic Hat](https://www.seeedstudio.com/ReSpeaker-2-Mics-Pi-HAT-p-2874.html), [ReSpeaker 4 Mic Array](https://www.seeedstudio.com/ReSpeaker-4-Mic-Array-for-Raspberry-Pi-p-2941.html), [6-Mics Circular Array Kit](), and [4-Mics Linear Array Kit]() for Raspberry Pi.
2017-09-29 04:21:47 +02:00
2018-02-01 09:07:26 +01:00
### Install seeed-voicecard
Get the seeed voice card source code and install all linux kernel drivers
2017-09-18 08:31:53 +02:00
```bash
2017-07-06 04:40:45 +02:00
git clone https://github.com/respeaker/seeed-voicecard
2017-04-27 11:28:29 +02:00
cd seeed-voicecard
sudo ./install.sh
2017-09-29 04:21:47 +02:00
sudo reboot
2017-04-27 12:00:49 +02:00
```
It may probably happen that the driver won't compile with the latest kernel when raspbian rolls out new patches to the kernel. If so, please try `sudo ./install.sh --compat-kernel` which uses an older kernel but ensures that the driver can work.
2017-04-27 12:00:49 +02:00
## ReSpeaker Documentation
2017-09-29 04:21:47 +02:00
Up to date documentation for reSpeaker products can be found in [Seeed Studio Wiki](https://wiki.seeedstudio.com/ReSpeaker/)!
![](https://files.seeedstudio.com/wiki/ReSpeakerProductGuide/img/Raspberry_Pi_Mic_Array_Solutions.png)
2017-09-29 04:21:47 +02:00
2018-03-12 07:39:43 +01:00
### Coherence
Estimate the magnitude squared coherence using Welchs method.
2018-03-12 11:05:37 +01:00
![4-mics-linear-array-kit coherence](https://user-images.githubusercontent.com/3901856/37277486-beb1dd96-261f-11e8-898b-84405bfc7cea.png)
2018-03-12 07:39:43 +01:00
Note: 'CO 1-2' means the coherence between channel 1 and channel 2.
```bash
# 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
2018-03-12 11:05:37 +01:00
# Requirement of the input audio file:
- format: WAV(Microsoft) signed 16-bit PCM
2018-03-12 07:39:43 +01:00
- channels: >=2
```
2017-09-27 05:18:27 +02:00
### uninstall seeed-voicecard
If you want to upgrade the driver , you need uninstall the driver first.
```
2018-02-01 09:07:26 +01:00
pi@raspberrypi:~/seeed-voicecard $ sudo ./uninstall.sh
2018-02-01 09:52:35 +01:00
...
2017-09-27 05:18:27 +02:00
------------------------------------------------------
Please reboot your raspberry pi to apply all settings
Thank you!
------------------------------------------------------
```
2017-09-07 03:40:34 +02:00
2017-05-22 05:59:22 +02:00
Enjoy !
2018-07-30 09:44:47 +02:00
### FAQ
2018-07-30 09:51:18 +02:00
When you encounter any installation and use problems when you start your ReSpeaker Pi hat, please use the following image for testing. We have installed seeed-voicecard based on the latest PI image, which can be used by burning it directly on SD. If this still cannot solve your problem, you can ask in the issue. We will try our best to solve your problem.
2018-07-30 09:44:47 +02:00