waveform to wav file

Discussion in 'Software' started by tulamide, Oct 9, 2016.

  1. tulamide

    tulamide Audiosexual

    Joined:
    Feb 13, 2016
    Messages:
    847
    Likes Received:
    761
    I hope it belongs in this category:

    I am looking for an audio editor that accepts text files with 32-bit single precision floats as input (they represent waveforms), so that I can then save them unaltered as .wav files. I don't want to program a tool that converts a text file into raw data, so if anyone already had this issue, please tell me what tools you used to solve it.
     
  2.  
  3. fiction

    fiction Audiosexual

    Joined:
    Jun 21, 2011
    Messages:
    1,957
    Likes Received:
    712
    I would use sox, the commandline audio processor. I use it a lot, fantastic quality and faster than any UI-based editor I know. It's available on both Mac and Windows.

    From the sox man page:

    .dat Text Data files. These files contain a textual representation of
    the sample data. There is one line at the beginning that contains the
    sample rate. Subsequent lines contain two numeric data items: the time
    since the beginning of the first sample and the sample value. Values are
    normalized so that the maximum and minimum are 1 and -1. This file
    format can be used to create data files for external programs such as
    FFT analysers or graph routines. SoX can also convert a file in this
    format back into one of the other file formats.
     
  4. davea

    davea Platinum Record

    Joined:
    Sep 14, 2012
    Messages:
    602
    Likes Received:
    244
    Location:
    France
  5. tulamide

    tulamide Audiosexual

    Joined:
    Feb 13, 2016
    Messages:
    847
    Likes Received:
    761
    Thank you both. Since I don't have a Mac I used SoX. Converting the text to the dat format was a breeze and SoX did a fine job. I didn't even know of its existence. Thanks once again!
     
Loading...
Loading...