I installed all the dependencies needed to launch jasper following this tutorial. On the master branch, I didn't succeed to launch jasper because the version of pocketsphinx I have installed seems too recent. Indeed, the hmm_dir location indicate in the tutorial wasn't corresponding with mine.
So I tried to use the development branch, from there I'm able to launch jasper but now I've another issue with the microphone. I bought this microphone (Kinobo Usb 2.0 Microphone) following your recommendation, with it I encounter this issue :
CRITICAL:pyaudio_1_0_0.pyaudioengine:PyAudioDevice 2 (USB Audio Device: - (hw:1,0)) doesn't support input format (Int16, 1-channel at 16000 Hz)
Traceback (most recent call last):
File "Jasper.py", line 5, in <module>
jasper.main()
File "/home/pi/jasper/jasper/__main__.py", line 55, in main
app.run()
File "/home/pi/jasper/jasper/application.py", line 251, in run
self.conversation.handleForever()
File "/home/pi/jasper/jasper/conversation.py", line 40, in handleForever
input = self.mic.listen()
File "/home/pi/jasper/jasper/mic.py", line 200, in listen
self.wait_for_keyword(self._keyword)
File "/home/pi/jasper/jasper/mic.py", line 160, in wait_for_keyword
self._input_rate):
File "/home/pi/jasper/plugins/audioengine/pyaudio-ae/pyaudioengine.py", line 175, in record
output=False) as stream:
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/pi/jasper/plugins/audioengine/pyaudio-ae/pyaudioengine.py", line 149, in open_stream
raise plugin.audioengine.UnsupportedFormat(msg)
jasper.audioengine.UnsupportedFormat: PyAudioDevice 2 (USB Audio Device: - (hw:1,0)) doesn't support input format (Int16, 1-channel at 16000 Hz)
Like the message said, it seems the microphone can't record at this input format. However, I see I can record in 16000 Hz, the problem is I don't know what the Int16 format stand for... So my question is simple, can I use this microphone with jasper ? By adapting the input format ?
Hi guys,
I installed all the dependencies needed to launch jasper following this tutorial. On the master branch, I didn't succeed to launch jasper because the version of pocketsphinx I have installed seems too recent. Indeed, the hmm_dir location indicate in the tutorial wasn't corresponding with mine.
So I tried to use the development branch, from there I'm able to launch jasper but now I've another issue with the microphone. I bought this microphone (Kinobo Usb 2.0 Microphone) following your recommendation, with it I encounter this issue :
Like the message said, it seems the microphone can't record at this input format. However, I see I can record in 16000 Hz, the problem is I don't know what the Int16 format stand for... So my question is simple, can I use this microphone with jasper ? By adapting the input format ?