Is it possible to play sound in the browser with a matlab web app?
8 views (last 30 days)
Show older comments
I'm a researcher studying hearing and we use MATLAB to generate and play sounds to research participants. In light of the social distancing measures in response to COVID-19 our lab has stopped testing participants in person. I'd like to be able to convert our existing experiments to web apps using the matlab compiler, but have been unable to verify whether or not its possible to play sound on the client computer. (i.e. in the web browser running the app, not the host/server)
Does anyone know whether this is possible or supported?
8 Comments
Benjamin Lentz
on 18 Feb 2021
Hi Jordan,
thanks for your quick and detailed answer!
That's even more complicated than I expected. That must have been a lot work to figure out.
So as I understand, one keypoint is that MATLAB and the HTML (or Javascript) code have to interact frequently. They are checking a (re)action of the respective other side by waiting on changes of the Data field. I guess for this communication there should be only one HTML object created in the MATLAB Web App which is saved and reused?
I already found a nice documentation about the communication of MATLAB and HTML ( mathworks.com/help/matlab/creating_guis/create-an-html-file-that-sets-data-or-responds-to-data-changes-from-matlab.html ) and your explanations are quite helpful so I'm optimistic that it will work. Thanks a lot!
Answers (0)
See Also
Categories
Find more on Audio Processing Algorithm Design in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!