how do I convert a string answer into a readable audioread
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to create a game where users can upload audiofiles and play them at the same volume.
To upload the audiofiles, so far I have tried:
X_1 = input('First song: ','s');
[DJ_Music{1},Fs] = audioread('X_1''.m4a');
However, this gives an error everytime I fill in the audiofile name, does anyone have tips?
It probably has something to do with the string and characters formation?
0 commentaires
Réponse acceptée
Walter Roberson
le 25 Sep 2016
X_1 = input('First song: ','s');
[DJ_Music{1},Fs] = audioread([X_1 '.m4a']);
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!