MATLAB Answers

0

Why can't I import audio files to my Simulink model?

Asked by TeichEnterich95 on 31 May 2018
Latest activity Answered by Jingfang Qu on 22 Jun 2018
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:
Does anyone know what to do about this?

  0 Comments

Sign in to comment.

1 Answer

Answer by Jingfang Qu on 22 Jun 2018

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 Comments

Sign in to comment.