### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Input and output (`scipy.io`) »

# scipy.io.wavfile.write

`scipy.io.wavfile.``write`(filename, rate, data)

  Write a numpy array as a WAV file

  Parameters : | filename : file The name of the file to write (will be over-written). rate : int The sample rate (in samples/sec). data : ndarray A 1-D or 2-D numpy array of integer data-type.

  Notes

  - Writes a simple uncompressed WAV file.
  - The bits-per-sample will be determined by the data-type.
  - To write multiple-channels, use a 2-D array of shape (Nsamples, Nchannels).

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Input and output (`scipy.io`) »