DATA Step, Macro, Functions and more

read .wav file in SAS for analysis

Reply
Occasional Contributor
Posts: 11

read .wav file in SAS for analysis

Greetings!
I have a Windows .wav file representing an acoustical signal that I would like to analyze in SAS. How would I go about opening the .wav file?
Many thanks!
Garnett
PROC Star
Posts: 7,480

Re: read .wav file in SAS for analysis

Garnett,

Fascinating question .. never thought about it and totally out of my area.

That said, I came across an interesting thread elsewhere that might provide some direction. You can find it at:
http://boards.straightdope.com/sdmb/showthread.php?t=577361

HTH,
Art
Occasional Contributor
Posts: 11

Re: read .wav file in SAS for analysis

Hi Art,
Thanks for your interest. I read somewhere that .wav are binary file formats, so that I run

data test;
infile "c:\...\sample_sfoae.wav" lrecl = 2000;
input _x pib5. ;
run;

proc print output:

_x
121438095698
834918219026

I wonder what that means?
SAS Employee
Posts: 47

Re: read .wav file in SAS for analysis

You would need a detailed description of the file format to make sense of the data.
Maybe this helps:

http://www.sonicspot.com/guide/wavefiles.html

(I just Googled 'wav file format' to find this).
Ask a Question
Discussion stats
  • 3 replies
  • 246 views
  • 0 likes
  • 3 in conversation