GithubHelp home page GithubHelp logo

6mic_module_pi's Introduction

6mic_module_pi 기본 환경 설정

라즈베리파이 OS 설치 : https://geeksvoyage.com/raspberry%20pi/installing-os-for-pi/

사용 모듈 : ReSpeaker 6-Mic Circular Array Kit for Raspberry Pi

http://vctec.co.kr/product/인공지능-음성-어플리케이션용-리스피커-6-mic-원형-키트-respeaker-6-mic-circular-array-kit-fo/13467/

http://wiki.seeedstudio.com/ReSpeaker_6-Mic_Circular_Array_kit_for_Raspberry_Pi/

Install seeed-voicecard

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

위 코드를 입력하여 설치를 하고

pi@raspberrypi:~ $ arecord -L
pi@raspberrypi:~ $ aplay -L

명령어로 설치가 되었는지 확인합니다.

녹음 및 재생 test

arecord -Dac108 -f S32_LE -r 16000 -d 5 -c 8 a.wav

arecord를 사용하여 a.wav라는 녹음파일을 생성합니다. 같은 하드웨어를 사용하고 있다면 다른 옵션을 수정하지 않고 -d, -c 옵션만 조작하면 됩니다.

-d : 몇초동한 녹음할지 설정하는 옵션

-c : 몇개의 채널로 녹음할 지 설정

위 예제는 5초동안 8개의 채널로 녹음하는 예제입니다.

aplay -D ac101 a.wav

(스피커 장치가 따로 없다면 이어폰을 연결하면 됩니다.)

LED 작동코드 다운

git clone --depth 1 https://github.com/respeaker/pixel_ring.git
cd pixel_ring
pip install -U -e .
python examples/respeaker_4mic_array.py

파이썬으로 동작하는 기본 LED 컨트롤 소스를 받을 수 있습니다. respeaker_4mic_array.py 를 수정하여 원하는 패턴 제작가능.

6mic_module_pi's People

Contributors

rhkr9609 avatar

Watchers

James Cloos avatar  avatar

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.