Hello there!
Is it possible to simultaneously record audio through the board's microphones and output it through the JST 2PH connector?
I plan to use the board for a DIY intercom system.
Thanks
Bortus
Adafruit Voice Bonnet - Input and Output at the same time?
Moderators: adafruit_support_bill, adafruit
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
- Bortus
- Posts: 2
- Joined: Wed Nov 24, 2021 10:37 am
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Adafruit Voice Bonnet - Input and Output at the same tim
Bortus,
Good question. I cannot say that it work to record and playback audio simultaneously. The datasheet and guide do not mention this scenario.
https://cdn-learn.adafruit.com/assets/a ... 1603825540
The input and output would all be going over i2s through the same CODEC.
You could try something like these command running at the same time.
Should playback be an issue you could use the Pi built-in 1/8" jack or HDMI audio output.
Good question. I cannot say that it work to record and playback audio simultaneously. The datasheet and guide do not mention this scenario.
https://cdn-learn.adafruit.com/assets/a ... 1603825540
The input and output would all be going over i2s through the same CODEC.
You could try something like these command running at the same time.
Code: Select all
arecord --device=hw:1,0 --format S16_LE --rate 44100 -c1 test.wav
Code: Select all
aplay -D plughw:1,0 test2.wav
- Bortus
- Posts: 2
- Joined: Wed Nov 24, 2021 10:37 am
Re: Adafruit Voice Bonnet - Input and Output at the same tim
Thanks for the reply!
So I tried the following command (bonnet needs to be the default device or otherwise specified):
This works. Everything that is being picked up by the microphones is played back throught the speaker.
So I tried the following command (bonnet needs to be the default device or otherwise specified):
Code: Select all
arecord -f cd | aplay
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Adafruit Voice Bonnet - Input and Output at the same tim
oh cool, thanks for sharing the syntax to record and pipe the audio through a speaker.
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/