How to capture audio from sound card using ALSA?

3 Ansichten (letzte 30 Tage)
Fábio de Lima
Fábio de Lima am 23 Jan. 2017
Bearbeitet: Jun W am 8 Jun. 2018
Hello everyone!
How are you?
So, I'm working in a project that I'll need to capture an audio data, probably 2 minutes of data, using the Simulink and Raspberry Pi (I'm using the Matlab support package with simulink to work with the raspberry pi). First thing that I've done was to check if my raspberry pi was able to record an audio using the USB audio device. I configurated it (using this tutorial -> http://www.oodlestechnologies.com/blogs/Record-Audio-on-Raspberry-Pi-3-using-audio-sound-card) and managed to get some audio data. After that, I was planning to work with simulink to get some audio data but I still don't manage to do it. I've read the information in this website (https://www.mathworks.com/help/supportpkg/raspberrypi/ref/alsaaudiocapture.html) but it still not clear to me how to do it. I thought that I could just put the block of Alsa Capture and then send it to workspace, but it didn't work well doing that. I didn't find any tutorial or examples of this kind of application.
So, my question is: Does anyone know how to capture an audio data using alsa capture block in simulink? What kind of configuration should I do?
Thanks for your attention... :)
  1 Kommentar
Jun W
Jun W am 8 Jun. 2018
Bearbeitet: Jun W am 8 Jun. 2018
Hi I'm actually interested in the link you provided, however it no longer exists. Could you let me know what's the function/code to capture data from Raspberry Pi's external soundcard, my soundcard is hw:1,0. Thanks.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by