Is there a way to play mp3 files or files other than .wav in Matlab?
조회 수: 6 (최근 30일)
이전 댓글 표시
I could play .wav files using sound or audioplayer commands. But these can not play mp3 or other files. Is there a way to play them in MATLAB? Can we convert mp3 files to wav files?
댓글 수: 0
채택된 답변
Star Strider
2015년 5월 22일
You have to read them first, and the audioread function can read them. (See specifically Input Arguments filename.) You then need to create an audioplayer object to play it.
I don’t have an .mp3 file that I can find on this machine to test this, so you may have to experiment.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!