Unable to play audio because no audio outputs were found

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.

 Respuesta aceptada

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);

Más respuestas (0)

Comunidades de usuarios

Más respuestas en  Distance Learning Community

Community Treasure Hunt

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

Start Hunting!

Translated by