フィルターのクリア

Audiocapture objects error after connected to Raspberry Pi

4 ビュー (過去 30 日間)
Yihan Hu
Yihan Hu 2020 年 10 月 19 日
コメント済み: Yihan Hu 2020 年 10 月 23 日
Hi all, I am very new to using Matlab to interface with Raspberry Pi and I am trying to use its audio platform.
I have installed Matlab coder and the hardware supporting package.
But I am getting this error when I tried to run audiocapture:
audiocapture and audioplayer are supported only for code generation
I am runinng on Macbook and xcode is updated too.
Where should I look into for this problem? Any help is appreciated

採用された回答

Yihan Hu
Yihan Hu 2020 年 10 月 21 日
SOLVED:
audiocapture is not a standalone function in Matlab. It has to be wrapped in a function and deployed by Matlab on the hardware
  2 件のコメント
Jon Dana
Jon Dana 2020 年 10 月 23 日
編集済み: Jon Dana 2020 年 10 月 23 日
I had the same issue and found that the following information is missing from the Raspberry Pi Audio tutorial:
  • You need the Matlab Coder add-on
  • You need to save the uncommented "raspi_pitchshiftdeployment()" function in a file
  • Check available audio resources on the Pi with "system(rpi, 'aplay -l)"
Note:
  • The demo was observed to stop after a few minutes. This is likely controlled by "for k = 1:3000"
Yihan Hu
Yihan Hu 2020 年 10 月 23 日
I noticed the same thing with the run time too. I wonder if the loop iterates 3000 times, how long does each loop take? Something to explore into

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Support Package for Raspberry Pi Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by