Error when trying to play mp3 file
Show older comments
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);
Accepted Answer
More Answers (0)
Categories
Find more on Audio and Video Data 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!