From: Chris B. <ch...@cn...> - 2011-11-22 21:27:37
|
On Tue, Nov 22, 2011 at 9:06 AM, Jan Stary <ha...@st...> wrote: > On Nov 22 07:34:51, jim Schimpf wrote: >> Hi, >> >> In the SOX documents it says the DAT file is text file of the signal data with the first line being a single value of sample rate and subsequent lines being time and the the wave value scaled from -1 to 1. >> >> When I make a file like this SOX says it cannot find the sample rate, >> >> 8000 <-- Sample rate >> 0 0 <-- First time & sample >> 0.000125 0.105667 <-- Next? >> : >> >> >> instead if I make it of the form: (which matches the output created by having sox output a DAT file) >> >> ; Sample Rate 8000 >> ; Channels 1 >> 0 0 >> 0.000125 0.105667 >> : >> >> then it works just fine. >> >> Did I miss something or should the documentation be amended ? > > > This git patch still needs to be edited to include the > > ; Sample Rate 48000 > ; Channels 2 > > lines; I never got around to learning the man syntax > properly, so please someone finish this. > > Jan > > Thanks, Jan. I have committed the patch and updated it to include an example of header like you showed above. Chris |