Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

I want to read audio data from a file. Can anybody help me?

1 vue (au cours des 30 derniers jours)
Onur PEKER
Onur PEKER le 5 Nov 2014
Clôturé : MATLAB Answer Bot le 20 Août 2021
I designed a gui for recording sound. I am recording them with special name and putting a file. Then I want to call these records from file whose name is 'test'. wavread file is getting error like 'Cannot open file.'. How can I add file to workspace?
if true
traindir = 'C:\Users\onur\Desktop\sesdosyası\gui2\test\';
file = sprintf('%s', traindir)
disp(file);
[s, fs] = wavread(file);
end

Réponses (1)

Mikhail
Mikhail le 5 Nov 2014
You didn't set here the name of your file, it should be something like "test.wav"
  1 commentaire
Onur PEKER
Onur PEKER le 5 Nov 2014
ohh sorry, I've corrected my mistake. I add a zip file which is including test file. but it is not a 'wav' file. However 'wav' files which I want to add are in test file .

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by