Convert .WAV to MP3 in the absent of Waveread function
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nikan Fakhari
am 27 Apr. 2022
Beantwortet: Chandra
am 4 Mai 2022
Hi there,
I know that before we could of use waveread function in order to convert the .WAV file to MP3, however since this function
is no longer exist in matlab, is there any way we could convert .WAV to MP3 file now?
Best,
Nikan
0 Kommentare
Akzeptierte Antwort
Chandra
am 4 Mai 2022
Hi,
Try using the following link
use the function in the above link and change wavwrite line(appox line 50) to
audiowrite(strcat(lame,'\temp.wav'),Y,FS,'BitsPerSample',NBITS);
use this command to call the mp3write
[A,Fs] = audioread("output.wav");
mp3write(A,Fs,8); % input parameters can be of five elements in that 3 parameters are required
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Audio I/O and Waveform Generation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!