Unable to play audio because no audio outputs were found

조회 수: 36 (최근 30일)
Luciano Muratore
Luciano Muratore 2019년 11월 9일
답변: Ajay Pattassery 2019년 11월 12일
Hi there,
I am using the MATLAB Online R2019b version.
When I try to run the next code:
load handel;
p=audioplayer(y,Fs);
play(p, [1 get(p, 'SampleRate')*3]);
And, the Error that I get is:
Warning: Unable to play audio because no audio outputs were found.

채택된 답변

Ajay Pattassery
Ajay Pattassery 2019년 11월 12일
If you just want to play the music in MATLAB Online, you could use ‘sound’ instead. But it will have lesser capabilities compared to ‘audioplayer’ object.
load handel;
sound(y,Fs);

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  원격 교육 커뮤니티

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by