playing wav files in matlab-
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have wav files that I want to play- I read them using wavread, and play them using sound or play(audioplayer).
my problem is that for this assignment precision is important, and some how my files are sound later then they should be-
all my files work this way- silence for x milliseconds ,and a strong noise for just a couple milliseconds afterwards.
but in my code, using both functions the sound comes too far behind the x milliseconds..
what can I do to make it more precise? maybe changing stuff like bits or Fz?
0 Kommentare
Antworten (1)
Image Analyst
am 21 Okt. 2012
Maybe load them in prior to needing to play them so you don't have to waste time reading from disk at the instant that they need to be played. You might also try bumping up the priority of the MATLAB process (control-shift-Esc, right click process and set priority to high, NOT real time). Others may have other ideas. When you play your waves, do other players have silence, then the sound, then loud noise at the end? You might want to open up your sound file in a program like free Audacity to see what the waveform looks like. Trim off the noise at the end or silence from the beginning if there is any, then resave the cropped waveform.
Siehe auch
Kategorien
Mehr zu Audio I/O and Waveform Generation 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!