Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record issue while launching Jasper.py #702

Open
1ud0v1c opened this issue Oct 7, 2018 · 0 comments
Open

Record issue while launching Jasper.py #702

1ud0v1c opened this issue Oct 7, 2018 · 0 comments

Comments

@1ud0v1c
Copy link

1ud0v1c commented Oct 7, 2018

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 :

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant