tryng to fix Jasper on Rasberry Pi 3 Model B

157 views
Skip to first unread message

Alex S.

unread,
Jun 21, 2017, 11:53:47 PM6/21/17
to Jasper Support Forum
Trying to get Jasper to work on my Rasberry Pi and microphone hooked up has been a very frustrating process. I've had problems with Jasper's outdated instructions with typos on their website, Howchoo's inadequate installation instructions, installing the newest version Phonetisaurus, errors from ALSA, pulseaudio getting in the way, Jasper's voice not coming on, etc. As of now, when I thought I had fixed all those issues I still get problems when starting up Jasper that I still don't understand.

*******************************************************
*             JASPER - THE TALKING COMPUTER           *
* (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *
*******************************************************
WARNING:client.notifier:gmail_address or gmail_password not set in profile, Gmail notifier will not be used
Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2048
Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2719
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2843
Traceback (most recent call last):
  File "/home/pi/jasper/jasper.py", line 151, in <module>
    app.run()
  File "/home/pi/jasper/jasper.py", line 121, in run
    conversation.handleForever()
  File "/home/pi/jasper/client/conversation.py", line 31, in handleForever
    threshold, transcribed = self.mic.passiveListen(self.persona)
  File "/home/pi/jasper/client/mic.py", line 110, in passiveListen
    frames_per_buffer=CHUNK)
  File "/usr/lib/python2.7/dist-packages/pyaudio.py", line 747, in open
    stream = Stream(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pyaudio.py", line 442, in __init__
    self._stream = pa.open(**arguments)
IOError: [Errno Invalid sample rate] -9997

I am using espeak tts and pocketsphinx stt.

Clayton High

unread,
Jun 22, 2017, 10:58:07 AM6/22/17
to Jasper Support Forum
I am having the same problem, so unfortunately I can't help you but if you find a solution I would love to hear it. I think it might be an issue with the actual microphone not being compatible with jasper.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages