How to import an audio file to simulink from app designer

22 views (last 30 days)
Right now i can select an audio file from my pc from App Designer but i need to know how to use it on simulink. Something like the "To multimedia file" block:
Here's the code i use for playing the song at the moment from App Designer:
So basically i need to be able to use the audio file i select from app designer inside simulink and work with it from there. Thanks!

Accepted Answer

jibrahim
jibrahim on 24 May 2021
Hi Roberto,
Maybe this answers your scenario: In your App designer code, once the user has selected the file, you can use set_param to set the FIlename parameter of a 'From Multimedia File' block to the selected name. You can then run your model and have access to the desired audio signal in Simulink
  3 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!