title: exporting scipy array for speech data to ascii text readable in adobe audition
body: <p>I read a 48khz, 16bit precision PCM speech data using wav read functionality
  of scipy.signal.</p>
  
  <p>Next, I perform these steps in order :
  decimation -> normalisation</p>
  
  <p>Decimation and normalisation is done using the following steps :</p>
  
  <pre><code>yiir = scipy.signal.decimate(topRightChn, 3)
  timeSerDownSmpldSig = N.array(yiir)
  factor  = 2**16
  normtimeSerDownSmpldSig = normalise(timeSerDownSmpldSig, factor)
  </code></pre>
  
  <p>My decimated(or downsampled) signal is supposed to be 16khz( Hence, the downsampling factor of 3 as above). Now, I want to view the normalised downsampled numpy array normtimeSerDownSmpldSig in Adobe Audition.</p>
  
  <p>What steps in Python and/or Adobe audition do I need to perform? How can I use the savetxt function of scipy to view the above array in Adobe Audition ?</p>
  
  <p>My yiir signal values look like following :</p>
  
  <pre><code>Downsampled signal yiir First 10 values: [ -6.95990948e-05  -2.71091920e-02  -3.
  76441923e-01  -5.65301893e-01
     1.59163252e-01  -2.44745081e+00  -4.11047340e+00  -2.81722036e+00
    -1.89322873e+00  -2.51526839e+00]
  
  Downsampled signal yiir: Last ten values: [-1.73357094 -3.41704894 -2.77903517
  0.87867336 -2.00060527 -2.63675154
   -5.93578443 -5.70939184 -3.68355598 -4.29757849]
  
  
  Array signal obtained from iir decimate of python:
  shape: (6400000,)
  Type: &lt;class 'numpy.dtype'&gt;
  dtype: float64
  Rows : 6400000
  min, max: -875.162306537 874.341374084
  </code></pre>
  
  <h3>Information for usage on Adobe audition ### at this link (page45) -</h3>
  
  <p><a href="http://www.newhopechurch.ca/docs/tech/AUDITION.pdf" rel="nofollow">http://www.newhopechurch.ca/docs/tech/AUDITION.pdf</a></p>
  
  <p>gives out the following :</p>
  
  <blockquote>
    <p>ASCII Text Data (.txt)
    Audio data can be read to or written from files in a standard text format, >with each sample separated by a carriage return, 
    and channels separated by a tab character. An optional header can be placed >before the data. If there is no header text, 
    then the data is assumed to be 16-bit signed decimal integers.
    The header is formatted as KEYWORD: value with the 
    keywords being: SAMPLES, BITSPERSAMPLE, CHANNELS, SAMPLERATE, and NORMALIZED. >The values for 
    NORMALIZED are either TRUE or FALSE. For example,
    SAMPLES: 1582
    BITSPERSAMPLE: 16
    CHANNELS: 2
    SAMPLERATE: 22050
    NORMALIZED: FALSE
    164  -1372
    492  -876
    etc...
    Options
    Choose any of the following:
    •Include Format Header places a header before the data.
    •Normalized Data normalizes the data between -1.0 and 1.0. </p>
  </blockquote>