Unable to play audio because no audio outputs were found
29 次查看(过去 30 天)
显示 更早的评论
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.
1 个评论
Walter Roberson
2019-11-9
"MATLAB Online cannot interact with most other hardware, including instrument control."
采纳的回答
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 个评论
更多回答(0 个)
社区
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!