Why doesn't mp3write work in R2015b but it does in R2013b?

조회 수: 1 (최근 30일)
David Koenig
David Koenig 2016년 1월 12일
편집: Walter Roberson 2017년 7월 19일
When I try to use mp3write in R2015b I get
Error using wavwrite (line 8) WAVWRITE will be removed in a future release. Use AUDIOWRITE instead.
Error in mp3write (line 53) wavwrite(Y,FS,NBITS,strcat(lame,'\temp.wav'));
I can always go back to R2013b because I luckily kept it but I would prefer to use the latest versions. Is there a mod available that will solve this problem? Thanks.

채택된 답변

Walter Roberson
Walter Roberson 2016년 1월 12일
편집: Walter Roberson 2017년 7월 19일
mp3write() is a File Exchange Contribution. Or maybe it is this other contribution. Either way it is not part of MATLAB.
You can adapt the source of whichever one you are using to use audiowrite() . It should be a minor change.
  댓글 수: 3
Walter Roberson
Walter Roberson 2016년 1월 12일
You are missing that whichever mp3write() that you are using from the File Exchange is doing its work by using wavwrite() to write a .wav file and then invoking an outside program named "lame" to convert the .wav into .mp3 . You need to go to that third-party mp3write() code and change the wavwrite() call into an audiowrite() call. The mp3write() code does not really care how it creates the temporary .wav file, just that it creates a temporary .wav file that it can use as input to the external program named "lame".

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by