필터 지우기
필터 지우기

Convert .WAV to MP3 in the absent of Waveread function

조회 수: 4 (최근 30일)
Nikan Fakhari
Nikan Fakhari 2022년 4월 27일
답변: Chandra 2022년 5월 4일
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

채택된 답변

Chandra
Chandra 2022년 5월 4일
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);
refer audiowrite for furthur details.
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
refer the link for further details

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by