How to connect aux out to Raspberrry Pi using Rpi matlab package
조회 수: 2 (최근 30일)
이전 댓글 표시
I need to connect aux as an output for the ANC model while integrating RPi with matlab. The port for aux cable is not available when i run
a = listAudioDevices(r,'capture') on matlab.
댓글 수: 2
Prasanth Sunkara
2024년 9월 24일
If it is an audio output(plyaback) device, you would have to use the below function to get the list of playback devices
a = listAudioDevices(r,'playback')
답변 (1개)
Sivsankar
2024년 10월 1일
I can see that there is an error in the MATLAB support package directory. I suggest you reinstall the MATLAB Support Package for Raspberry Pi Hardware. You can download this add on from here:
Also make sure that your Raspberry Pi Model falls under the supported hardware for this package.
After that you can initialise the connection between the audio output and Raspberry Pi using the ‘audioplayer’ object and use the ‘play’ function to play audio. You can leverage the following documentation to setup your audio output for your raspberry pi:
Hope these troubleshooting steps solve your query
Thanks.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!