How to capture audio from sound card using ALSA?

조회 수: 1 (최근 30일)
Fábio de Lima
Fábio de Lima 2017년 1월 23일
편집: Jun W 2018년 6월 8일
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
Jun W
Jun W 2018년 6월 8일
편집: Jun W 2018년 6월 8일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by