Aaron_Pan
Published © MIT

Use USB Mini Microphone on Raspberry Pi 4

This is a program that runs on the Raspberry Pi. I used the Raspberry Pi 4B and the Mini USB Microphone to record my own voice using it.

BeginnerProtip1 hour17
Use USB Mini Microphone on Raspberry Pi 4

Things used in this project

Hardware components

Seeed Mini USB Microphone
×1
Seeed Raspberry Pi 4
×1

Story

Read more

Schematics

Run this program and you can start recording your voice.

Or view and open this file in the pi directory.

Code

1、 Open the Raspberry pi (you need a display or use SSH to control pi) , Teminal and input the code:

SH
arecord --device=hw:1,0 --format S16_LE --rate 44100 -V mono -c1 voice.wav 

2、 If your recording is over, you can use Ctrl+C to exit recording. And if you want to look for you

SH
ls

3、 After recording is complete, you use the code below to open your voice.

SH
aplay --device=plughw:1,0 voice.wav

Credits

Aaron_Pan

Aaron_Pan

1 project • 0 followers

Comments

Add projectSign up / Login