MATLAB Answers


Weird result when trying to use wavplay

Asked by Samyukta
on 30 Jan 2013

I used Audacity to convert an mp3 file to a .wav file (import mp3, export .wav) and saved it as Coldplay-Message.wav . then I used

W = wavread('Coldplay-Message');

I didn't add the .wav in the filename, but instead of playing the song, it plays this horribly creepy soundtrack, with some creepy voice groaning and some scary music. What happened??




No products are associated with this question.

1 Answer

Answer by Walter Roberson
on 30 Jan 2013
[W, Fs] = wavread('Coldplay-Message');
wavplay(W, Fs)


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!