Error when trying to play mp3 file
Ältere Kommentare anzeigen
So for some reason this was working perfectly a couple hours ago, but now it seems like I cant play any audio files at all. Whenever I run the code, I get "Device error: invalid number of channels". Anyone know why?
heres the code:
A test I did with 1 file (same error)
[y, Fs] = audioread('old-victory-sound-roblox.mp3');
player = audioplayer(y, Fs);
play(player)
this is my og code that was working before:
[y,Fs]=audioread('old-victory-sound-roblox.mp3');
pw =audioplayer(y,Fs);
[y,Fs]=audioread('gaming-sound-effect-hd.mp3');
pl =audioplayer(y,Fs);
[y,Fs]=audioread('Kids Cheering - Gaming Sound Effect (HD).mp3');
wn =audioplayer(y,Fs);
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Audio and Video Data finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!