"Channels not specified" wave.Error

1,079 views
Skip to first unread message

Philipp Hadjimina

unread,
Jul 29, 2015, 2:45:38 PM7/29/15
to Jasper Support Forum

Heyo guys

So I am currently unable to start Jasper because of this error :


Traceback (most recent call last):
  File "/home/pi/jasper/jasper.py", line 148, in <module>
    app.run()
  File "/home/pi/jasper/jasper.py", line 115, in run
   self.mic.say(salutation)
  File "/home/pi/jasper/client/mic.py", line 262, in say
    self.speaker.say(phrase)
  File "/home/pi/jasper/client/tts.py", line 472, in say
    self.play_mp3(tmpfile)
  File "/home/pi/jasper/client/tts.py", line 100, in play_mp3
    wav.setframerate(mf.samplerate())
  File "/usr/lib/python2.7/wave.py", line 358, in setframerate
   raise Error, 'bad frame rate'
wave.Error: bad frame rate
Exception wave.Error: Error('# channels not specified',) in <bound method Wave_write.__del__ of 
<wave.Wave_write instance at 0xfdc2b0>> ignored
I have tried install Jasper with the quickstart image as well as with a brand new Arch Linux install on my Laptop. I ran into the same issue both time (btw AUR dependencies should be update from python2-pymad to pymad).

Aplay and arecord both show my sound devices (jack audio & usb mic) and both are working (tried them with recording something with arecord and playback with aplay)

Any suggestions would be appreciated


P.S. I posted the same thing on the Github page as a issue. Sorry about that, did not know that this google group existed.

Philipp Hadjimina

unread,
Jul 29, 2015, 3:31:51 PM7/29/15
to Jasper Support Forum, philipp....@gmx.ch
After some digging around I found out that it was an error with the google-tts implementation which cause mf.samplerat() to return null. I simply switched to ivona now it works
Reply all
Reply to author
Forward
0 new messages