How to capture audio from sound card using ALSA?

3 次查看(过去 30 天)
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