Matlab Sound timeout error

I am just trying to do a simple sound code to understand how it works
load gong.mat
sound(y)
But i get the following error
Sound
Error using sound
Timeout occurred while trying to communicate to the device.
Error in
sound(y)

 Respuesta aceptada

Walter Roberson
Walter Roberson el 28 de Nov. de 2023

0 votos

That is the error message you would get if you were trying to use sound() with MATLAB Online, or with MATLAB Answers. The browsers are not able to send commands to access your sound hardware in the right way.
(If I understand correctly, it could be theoretically implemented with Google Chrome, but not with any other browser -- unless that facility has been ported to Microsoft's Edge since it is based on Chromium.)

1 comentario

Aryan
Aryan el 4 de Dic. de 2023
Thank you so much!!! It works on chrome

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Audio I/O and Waveform Generation en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 28 de Nov. de 2023

Comentada:

el 4 de Dic. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by