Filter löschen
Filter löschen

how do I convert a string answer into a readable audioread

1 Ansicht (letzte 30 Tage)
C Hart
C Hart am 25 Sep. 2016
Kommentiert: C Hart am 25 Sep. 2016
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?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 25 Sep. 2016
X_1 = input('First song: ','s');
[DJ_Music{1},Fs] = audioread([X_1 '.m4a']);

Weitere Antworten (0)

Kategorien

Mehr zu Install Products finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by