MATLAB: Doesn’t the sound play when I run sound or soundsc functions in MATLAB Online

MATLABonlinesound

I run sound or soundsc function on MATLAB Online, but the following message is displayed and no sound is played.
Issue with playing audio
MATLAB was not able to play the audio. Check browser settings to allow auto-play from this website.
If the problem persists, please contact technical support.
I use Safari ( in macos 10.15.x) as a browser.

Best Answer

If you are using Safari, please try the following steps.
1. Access MATLAB Online (<https://matlab.mathworks.com/> ) in Safari.
2. Open Safari "Settings".
3. Select the "Website" tab.
4. Select "Auto-Play".
5. Change the permission setting of "matlab.mathworks.com" to "Allow All Auto-Play".
For details regarding Safari settings, please refer Apple's website.