I have a newbie question. I want to export raw data of sound intensity into a text file or an excel file for further processing in Matlab. I basically need two columns of data: 1) timestamps of each sample; 2) sound intensity level at each sample.
I am not interested in music or complex sound properties, all I need is to extract how sound intensity changes over time.
What exactly do you mean? Do you want individual sample values, peak levels within a time frame, RMS values within a time frame, average energy levels, or something else?
Could you perhaps export the audio from Audacity as raw data, then read that directly into MatLab?
Thanks Steve, the file specs were incomplete. What I am looking for is two integer text export files for a stereo recording (one file for each channel) that records a stereo signal as:
Does Sox help you - import the WAV then write as textual data, which I figure would give you the amplitude of each sample (e.g. -0.888617 at one particular sample then + 0.323733 one hundred samples down the line) - something like the data that another user produced from a VB dump: http://n2.nabble.com/WAV-file-from-Audacity-Tone-Generator-td2315889.html
I’m not sure if opening the audio in a hex editor will let you get at the dec data - the hex editor I have won’t let you do that.
Steve, I don’t know “Nyquist” other than in “Nyquist frequency”, obviously out of context.
Gale, thanks for the suggestion. From the specifications it looks like it will work. I have spent some time on how I would streamline the Audacity output. Unfortunately I write it in Word with graphics. I found out too late that I cannot post that. I have asked for some advice on that one.
The more I work with Audacity, the more I like it. I use it and want to use it more to check on multi-channel measurements presented to Audacity as an analog channel output, just like sound. So far I have only done 2 channels, but soon I’ll try more.
You can’t post very much stuff directly to the forum. You can post stuff Somewhere Else and point to it on the forum. I usually push stuff up to my own web site and write the URL here. My web site is starting to look like my garage.
Most normal people find a free hosting service that will allow you to put some stuff on line in exchange for commercials or something.
Here is a Nyquist plug-in that will create a text file with the sample values for the left and right channels of a stereo track.
Audacity 1.3 is required.
I don’t know if this will be any good for Matlab (it’s not exactly in the form that you are asking for), but it gives you a text print out of the numerical value of each sample. Perhaps you can do something with it.
To use, unzip the file into the Audacity plug-ins folder.
The plug-in will appear in the “Analyze” menu when you restart Audacity. print-sample-values.ny.zip (552 Bytes)
That’s what I advised Mari to do if her file was large, but I’ve now allowed attaching a PDF of up to 1 MB. They won’t display inline though - I assume phpBB does not support that.