respeaker / get_started_with_respeaker

This is the wiki of ReSpeaker Core V2, ReSpeaker Core and ReSpeaker Mic Array.
260 stars 83 forks source link

Record in mono (1 channel) #184

Closed pilinux closed 6 years ago

pilinux commented 6 years ago

I need to record in mono with 7 pdm mic array.

arecord -D plughw:1,0 -f S16_LE -c1 -r 16000 -v mono test1.wav It does not show any error but it creates a file without any audio (only noise).

I tested the same command for stereo and it worked perfectly. arecord -D plughw:1,0 -f S16_LE -c2 -r 16000 -v stereo test2.wav

Any idea how I can record in mono?

Thank you.

KillingJacky commented 6 years ago

Where do you plug the mic array to? ReSpeaker Core or PC?

pilinux commented 6 years ago

Ok here is the latest update.

I first tested with Raspberry Pi 3B (Jessie lite OS). At S16_LE (1 channel) there was no voice but only noise. I tried with Stretch image and same result.

Later, I tried with PC (ubuntu 16.04) and it worked. But there were noise at all configurations:

Only on windows with audacity at default config [ S24_3LE (2 channels) ], the recording was clear.

xyu6 commented 6 years ago

Hi Dear Customer, i first use get device script to get the respeaker mic array index. then i modify the index and change channel to 1 in record script. I got the mono wav and i use the audacity to play and it works well. Bill

pilinux commented 6 years ago

Thank you a lot xyu6. It solved the issue 👍