Is there a way to play mp3 files or files other than .wav in Matlab?
    10 次查看(过去 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!