Why can't I import audio files to my Simulink model?
14 次查看(过去 30 天)
显示 更早的评论
Hello,
I am running Matlab/Simulink R2018a. I have a Simulink Model and I want to import audio files with the "From Multimedia File"-block. When I try to set the path pointing to my audio file and then press OK I get an error message. I tried it with .wav and .flac but it doesn't work.
Here you can seee the error message:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190944/image.png)
Does anyone know what to do about this?
0 个评论
回答(1 个)
Jingfang Qu
2018-6-22
Hi,
To better understand your issue, could you try the following steps:
1. Create a blank Simulink Model
2. Insert the "From MultiMedia File" block to your Simulink Model
3. Double click the " From MultiMedia File" block, in the file name area, use Browse to choose the audio file you want to import.
4. Click Apply, then click OK.
If you still get the same error, could you try some different audio files? For example, some sample audio files from the website. Make sure the file is on your MATLAB search path. For more information regarding supported platforms and file types of "From MultiMedia File", please refer to the following link: https://www.mathworks.com/help/dsp/ref/frommultimediafile.html
Thanks
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!