title: Scipy: Trying to write wav file, AttributeError: 'list' object has no attribute 'dtype'
body: <p>I am using Anaconda3 and SciPy to try to write a wav file using an array:</p>
  
  <p><code>wavfile.write("/Users/Me/Desktop/C.wav", 1000, array)</code></p>
  
  <p>(I don't know how many samples per second, I'm planning on playing around with that, I'm betting on 1000 however)</p>
  
  <p><code>array</code> returns an array of 3000 integers, so the file would last 3 seconds.</p>
  
  <p>However it gives me this error when trying to run:</p>
  
  <pre><code>---------------------------------------------------------------------------
  AttributeError                            Traceback (most recent call last)
  &lt;ipython-input-21-ce3a8d3e4b4b&gt; in &lt;module&gt;()
  ----&gt; 1 wavfile.write("/Users/Me/Desktop/C.wav", 1000, fin)
  
  /Users/Me/anaconda/lib/python3.4/site-packages/scipy/io/wavfile.py in write(filename, rate, data)
  213 
  214     try:
  --&gt; 215         dkind = data.dtype.kind
  216         if not (dkind == 'i' or dkind == 'f' or (dkind == 'u' and data.dtype.itemsize == 1)):
  217             raise ValueError("Unsupported data type '%s'" %         data.dtype)
  
  AttributeError: 'list' object has no attribute 'dtype'
  </code></pre>