MATLAB app designer not playing sounds
101 views (last 30 days)
Adham Elkhouly on 26 Apr 2021
I am trying to excute the following lines with MATLAB app designer
[x, fs] = audioread('wave.wav');
app.freq = 2 * fs;
player = audioplayer(x, app.freq);
but no sound is produced. However, when I copy the above lines along with those lines,
it sounds in the command window but not in the app designer.
How can I fix this issue? - TIA
Subhadeep Koley on 27 Apr 2021
I have attached one demo minimum working example.
Have a look. It might help you fix the issue.
Also, if possible provide the full path of the sound file when reading it with audioread()