[Scipy-tickets] [SciPy] #1626: scipy.io.wavfile --- does it work?

SciPy Trac scipy-tickets@scipy....
Thu Mar 22 08:56:36 CDT 2012


#1626: scipy.io.wavfile --- does it work?
--------------------+-------------------------------------------------------
 Reporter:  berntl  |       Owner:  somebody   
     Type:  defect  |      Status:  new        
 Priority:  normal  |   Milestone:  Unscheduled
Component:  Other   |     Version:  0.10.0     
 Keywords:          |  
--------------------+-------------------------------------------------------
 If I write a wav file to disk using scipy.io.wavfile.write, and then read
 it again, the file appears to be ok. HOWEVER if I try to *play* it using
 Windows Media Player, there is no sound!

 I have found a wav-file "sweeplin.wav" on the internet, as well as
 converted an mp3 file "Kalimba.mp3" to wav using freeware "Switch Sound
 File Converter". Both sweeplin, and Kalimba (before and after conversion)
 plays nicely on Windows Media Player. If I try to import e.g. Kalimba.wav
 using scipy.wavefile.read("Kalimba.wav"), I get an error message:

 >>> rate, data = swav.read(path+r"Kalimba.wav")

 leads to

 C:\Python27\lib\site-packages\scipy\io\wavfile.py:31: WavFileWarning:
 Unfamiliar format bytes
   warnings.warn("Unfamiliar format bytes", WavFileWarning)
 C:\Python27\lib\site-packages\scipy\io\wavfile.py:121: WavFileWarning:
 chunk not understood
   warnings.warn("chunk not understood", WavFileWarning)
 rate
 6000
 data
 '\x01\x08\x00\x00'

 Any clues?
 --
 I use the latest version of Enthought Python Distribution as of March 22,
 2012.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1626>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list