Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
audio

Subject: audio

From: Jessica

Date: 29 Mar, 2013 11:37:06

Message: 1 of 2

Is it possible to load a long audio file (6+ hr) and have Matlab output a file that indicates the times when the waveform exceeds a certain threshold?

Thanks!

Subject: audio

From: Steven_Lord

Date: 29 Mar, 2013 13:50:19

Message: 2 of 2



"Jessica " <jly5@duke.edu> wrote in message
news:kj3ud2$fmh$1@newscl01ah.mathworks.com...
> Is it possible to load a long audio file (6+ hr) and have Matlab output a
> file that indicates the times when the waveform exceeds a certain
> threshold?

Theoretically yes. Your machine will need to have a large amount of memory
(if you want to read the whole file in at once) but it should be possible to
do that.

Instead, you may want to take a look at some of the System objects from DSP
System Toolbox, which will allow you to process the file sample by sample
without reading the whole thing into memory at once. Take a look at the
dsp.AudioFileReader System object:

http://www.mathworks.com/help/dsp/ref/dsp.audiofilereaderclass.html

and the others included in that toolbox:

http://www.mathworks.com/help/dsp/systemobjectslist.html

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us