Filter löschen
Filter löschen

upload wav file

3 Ansichten (letzte 30 Tage)
Padma
Padma am 28 Okt. 2011
Hi
In order to upload a wav file, I think I should be using the wavread command. I tried using that, but it results in an error. I tried using,
y = wavread('C:\Users\Admin\Desktop\audacity\Audacity 1.3 Beta (Unicode)\prompts')
The error says, "invalid wav file".
I need to upload two files which I have recorded and find out the delay between them.I have figured out how to find delay by considering sample waves, but not how to upload the files and then calculate the time delay. Could someone please help with uploading the files and then tell me how to use them normally like any waves generated in the matlab?
Thanks in advance
  7 Kommentare
Sandhu
Sandhu am 28 Okt. 2011
is both signals are with same length ????
Sandhu
Sandhu am 28 Okt. 2011
if so, this will help you.
http://www.mathworks.de/matlabcentral/newsreader/view_thread/256986

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Sandhu
Sandhu am 28 Okt. 2011
i hope this may help u.
[FileName,PathName] = uigetfile('*.wav');
PathOriginal=sprintf('%s%s',PathName,FileName);
[xt,fs]=wavread(PathOriginal);
from here manage ur code. here xt is lenth of signal and 'fs' is sampling rate of wav format. and it is common for all wav formats : its value is 44.1k
  4 Kommentare
Padma
Padma am 28 Okt. 2011
in the second statement,what is it exactly doing, is it concatenating the existing path with my .wav file? please correct me if i am wrong.
Jan
Jan am 28 Okt. 2011
Matlab's documentation is a high quality source of explanations:
Type this in the command window:
help uigetfile
doc uigetfile
(and the same for "sprintf" and "wavread")

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by