Is there a way to play mp3 files or files other than .wav in Matlab?

14 ビュー (過去 30 日間)
Seetha Rama Raju Sanapala
Seetha Rama Raju Sanapala 2015 年 5 月 22 日
回答済み: Star Strider 2015 年 5 月 22 日
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?

採用された回答

Star Strider
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 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by