Iain - 2014-02-27

I am routinely but erratically getting an error when presenting audio files. The error relates to opening files. Superficially, it looks like something is wrong with the file itself. This is contradicted by the fact that the same file will be played at other times in the script without issue. An example error message is below.

Has anyone encountered this before? Any suggestions for troubleshooting?

cheers
Iain

ERROR: sf_open failed.
Error. Bad format field in SF_INFO struct when openning a RAW file for read.
ERROR: Resampling failed.
Channel count must be >= 1.
Traceback (most recent call last):
File "vowels.py", line 319, in <module>
run(exp, config)
File "vowels.py", line 228, in run
stamp = stim.present(duration=trialconfig.SOA, jitter=trialconfig.JITTER, clk=t.clk)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyepl/sound.py", line 134, in present
timestamp = a.play(self, t=clk, doDelay=doDelay)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyepl/sound.py", line 566, in play
soundClip.load()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyepl/sound.py", line 405, in load
raise SoundException("Sound file %s is empty." % self.filename)
pyepl.sound.SoundException: EPL FATAL ERROR: Sound file wav/4-4-1.wav is empty.