• Stars
    star
    286
  • Rank 144,648 (Top 3 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 7 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DOA, VAD and KWS for ReSpeaker Microphone Array

Mic Array

Utils for ReSpeaker Microphone Array. It includes DOA (Direction of Arrival), VAD (Voice Activity Detection), KWS (Keyword Spotting or Keyword Search) and etc.

  • pixel_ring.py - control the pixel ring
  • mic_array.py - read 8 channels raw audio from the Mic Array and estimate sound's DOA (Direction of Arrival)
  • vad_doa.py - do VAD (Voice Activity Detection) and then estimate DOA
  • kws_doa.py - search keyword and then estimate DOA

Requirements

Get started

  1. Run pixel_ring.py to control the pixel ring of the Mic Array through USB HID

    sudo pip install pyusb
    sudo python pixel_ring.py
    

    If you don't want to access USB device with sudo, add a udev .rules file to /etc/udev/rules.d:

    echo 'SUBSYSTEM=="usb", MODE="0666"' | sudo tee -a /etc/udev/rules.d/60-usb.rules
    sudo udevadm control -R  # then re-plug the usb device
    
  2. Read 8 channels audio from the Mic Array and estimate sound's DOA

    sudo apt-get install python-numpy    # or pip install numpy
    python mic_array.py
    
  3. Do VAD and then estimate DOA

    sudo pip install webrtcvad
    python vad_doa.py
    
  4. Do KWS and then estimate DOA

    Get snowboy work and run python kws_doa.py

    git submodule init
    git submodule update
    cd snowboy/swig/Python
    sudo apt-get install python-dev libatlas-base-dev swig           # requiremetns to compile snowboy
    make                                                 # if got an error of swig3.x.x, edit the Makefile and disable the swig version check.
    echo 'from snowboydetect import *' > __init__.py     # create __init__.py for a python module
    cd ../../..                                          # chang to the root directory of the repository
    ln -s snowboy/swig/Python snowboydetect
    python kws_doa.py
    

For Raspberry Pi

Google released Google Assistant Library for Raspberry Pi to provide hotword detection ("Ok Google" or "Hey Google"), audio recording, assistant response playback and etc. We can add LED lights indicator based on the library to make a device very similar with Google Home.

  1. Follow the guide to install Google Assistant Library.
  2. Run python google_assistant_for_raspberry_pi.py

Use 4 Mic Array with ODAS to sound source localization and tracking

ODAS is a very cool project to perform sound source localization, tracking, separation and post-filtering. Let's have a try!

  1. get ODAS and build it
sudo apt-get install libfftw3-dev libconfig-dev libasound2-dev
git clone https://github.com/introlab/odas.git --branch=phoenix
mkdir odas/build
cd odas/build
cmake ..
make
  1. get ODAS Studio from https://github.com/introlab/odas_web/releases and open it. You can run ODAS Studio on a computer or the Raspberry Pi

The odascore will be at odas/bin/odascore, the config file is at odas.cfg. Change odas.cfg based on your sound card number.

    interface: {
        type = "soundcard";
        card = 1;
        device = 0;
    }

If you run the ODAS Studio on a computer, you should also need to change IP address from 127.0.0.1 to the IP of the computer.

More Repositories

1

seeed-voicecard

2 Mic Hat, 4 Mic Array, 6-Mic Circular Array Kit, and 4-Mic Linear Array Kit for Raspberry Pi
C
472
star
2

get_started_with_respeaker

This is the wiki of ReSpeaker Core V2, ReSpeaker Core and ReSpeaker Mic Array.
Python
257
star
3

avs

python implementation of alexa voice service app, ๆ”ฏๆŒDuerOS
Python
196
star
4

respeaker_python_library

To build voice enabled objects/applications with Python and ReSpeaker
Python
149
star
5

usb_4_mic_array

ReSpeaker 4 Mic Array with builtin VAD, DOA, AEC, Beamforming & NS
Python
137
star
6

mic_hat

2 Mic Array for Raspberry Pi
Python
102
star
7

pixel_ring

RGB LED library for ReSpeaker 4 Mic Array, ReSpeaker V2 & ReSpeaker USB 6+1 Mic Array
Python
59
star
8

respeakerd

respeakerd is the server application for the microphone array solutions of SEEED, based on librespeaker which combines the audio front-end processing algorithms.
C++
54
star
9

Alexa

New version is at https://github.com/respeaker/avs
Python
53
star
10

respeaker_for_raspberrypi

Examples to use ReSpeaker series Mic Arrays on Raspberry Pi
Python
41
star
11

4mics_hat

Python
34
star
12

respeaker-feed

C
20
star
13

mic_array_dfu

ReSpeaker Microphone Array DFU tool for firmware upgrade
C
19
star
14

respeaker_arduino_library

C++
18
star
15

pocketsphinx_keyword_spotting

Use Pocketsphinx to detect keywords offline
Python
12
star
16

microsoft_cognitive_services

Not updated, use
Python
11
star
17

Music_Visualizer

Music Player with Spectrum
Python
8
star
18

ok_google

hands-free google assistant with respeaker
Python
8
star
19

respeaker_v2_eval

respeaker v2 ่ฏ„ไผฐๆฟๅ…ฅๅ‘ๆŒ‡ๅ—
Python
8
star
20

respeaker.github.io

6
star
21

piano

Turn ReSpeaker into a Piano (with Fruit)
Python
6
star
22

w

Send Wi-Fi settings through sound wave http://respeaker.io/w
Python
6
star
23

googleassistant_respeakerd

Adapt google assistant's gRPC sample app for working with respeakerd
Python
6
star
24

respeaker_frontend

JavaScript
5
star
25

spi_bridge

SPI bridge between Arduino (ATmega32u4) and ReSpeaker (MT7688), ATmega32u4 as a SPI slave
Python
5
star
26

pocketsphinx-data

PocketSphinx's acoustic model, dictionary and keywords
Shell
5
star
27

rkbin

Shell
4
star
28

respeaker_hi

Python
4
star
29

FasterConfig

A faster way to setup wifi
C++
4
star
30

deb_repos

Roff
3
star
31

axol_system_image_changelog

ReSpeaker Core v2 image changelog, TODO and collecting issues.
2
star
32

image_builder

Shell
2
star
33

respeaker_openwrt_files

openwrt files for respeaker
Shell
2
star
34

respeaker_virtualenv

Python
2
star
35

source_builder

Shell
1
star
36

orangerpcd

Shell
1
star
37

mopidy-hallo

Voice Interaction with Mopidy
Python
1
star
38

toolchains

1
star
39

docs

ReSpeaker Documents
HTML
1
star
40

deb

deb package repository for respeaker v2
1
star