after jasper running EROOR

209 views
Skip to first unread message

enesma...@gmail.com

unread,
Aug 19, 2016, 3:45:09 PM8/19/16
to Jasper Support Forum
i have RPİ 3 + usb mic + headfhone  and i instaj jasper by method 3 but its not work...please help 

·         pi@raspberrypi:~ $ /home/pi/jasper/jasper.py --debug

 ******************************************************* * JASPER - THE TALKING COMPUTER * * (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis ******************************************************* 


DEBUG:client.diagnose:Checking network connection to server 'www.google.com'... DEBUG:client.diagnose:Network connection working DEBUG:__main__:Trying to read config file: '/home/pi/.jasper/profile.yml' DEBUG:client.diagnose:Checking network connection to server 'www.google.com'... DEBUG:client.diagnose:Network connection working DEBUG:client.diagnose:Checking executable 'aplay'... DEBUG:client.diagnose:Executable 'aplay' found: '/usr/bin/aplay' DEBUG:client.diagnose:Checking executable 'text2wave'... DEBUG:client.diagnose:Executable 'text2wave' found: '/usr/bin/text2wave' DEBUG:client.diagnose:Checking executable 'festival'... DEBUG:client.diagnose:Executable 'festival' found: '/usr/bin/festival' DEBUG:client.tts:Executing festival --pipe DEBUG:client.brain:Looking for modules in: '/home/pi/jasper/client/modules' DEBUG:client.brain:Found module 'Birthday' with words: ['BIRTHDAY'] DEBUG:client.brain:Found module 'Gmail' with words: ['EMAIL', 'INBOX'] DEBUG:client.brain:Found module 'HN' with words: ['HACKER', 'NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Joke' with words: ['JOKE', 'KNOCK KNOCK'] DEBUG:client.brain:Found module 'Life' with words: ['MEANING', 'OF', 'LIFE'] DEBUG:client.brain:Found module 'MPDControl' with words: ['MUSIC', 'SPOTIFY'] DEBUG:client.brain:Found module 'News' with words: ['NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Notifications' with words: ['FACEBOOK', 'NOTIFICATION'] DEBUG:client.brain:Found module 'Time' with words: ['TIME'] DEBUG:client.brain:Found module 'Unclear' with words: [] DEBUG:client.brain:Found module 'Weather' with words: ['WEATHER', 'TODAY', 'TOMORROW'] INFO:client.mic:Initializing PyAudio. ALSA/Jack error messages that pop up during this process are normal and can usually be safely ignored. ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.front.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM front ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround40.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround40 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround41 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround50 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround51 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround71.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround71 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM iec958 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started INFO:client.mic:Initialization of PyAudio completed. DEBUG:client.tts:Saying 'How can I be of service, anas?' with 'festival-tts' DEBUG:client.tts:Executing text2wave DEBUG:client.tts:Executing aplay -D plughw:1,0 /tmp/tmp7dBpZr.wav DEBUG:client.tts:Output was: 'aplay: main:722: audio open error: No such file or directory ' DEBUG:client.brain:Looking for modules in: '/home/pi/jasper/client/modules' DEBUG:client.brain:Found module 'Birthday' with words: ['BIRTHDAY'] DEBUG:client.brain:Found module 'Gmail' with words: ['EMAIL', 'INBOX'] DEBUG:client.brain:Found module 'HN' with words: ['HACKER', 'NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Joke' with words: ['JOKE', 'KNOCK KNOCK'] DEBUG:client.brain:Found module 'Life' with words: ['MEANING', 'OF', 'LIFE'] DEBUG:client.brain:Found module 'MPDControl' with words: ['MUSIC', 'SPOTIFY'] DEBUG:client.brain:Found module 'News' with words: ['NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Notifications' with words: ['FACEBOOK', 'NOTIFICATION'] DEBUG:client.brain:Found module 'Time' with words: ['TIME'] DEBUG:client.brain:Found module 'Unclear' with words: [] DEBUG:client.brain:Found module 'Weather' with words: ['WEATHER', 'TODAY', 'TOMORROW'] INFO:apscheduler.scheduler:Scheduler started DEBUG:apscheduler.scheduler:Looking for jobs to run DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added INFO:apscheduler.scheduler:Added job "Notifier.gather" to job store "default" INFO:client.conversation:Starting to handle conversation with keyword 'JASPER'. DEBUG:client.conversation:Started listening for keyword 'JASPER' 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 "build/bdist.linux-armv7l/egg/pyaudio.py", line 750, in open File "build/bdist.linux-armv7l/egg/pyaudio.py", line 441, in __init__ IOError: [Errno -9997] Invalid sample rate INFO:apscheduler.scheduler:Scheduler has been shut down

·         Anas Mansour

22:36

Anas Mansour

pi@raspberrypi:~ $ /home/pi/jasper/jasper.py --debug ******************************************************* * JASPER - THE TALKING COMPUTER * * (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis * ******************************************************* DEBUG:client.diagnose:Checking network connection to server 'www.google.com'... DEBUG:client.diagnose:Network connection working DEBUG:__main__:Trying to read config file: '/home/pi/.jasper/profile.yml' DEBUG:client.diagnose:Checking network connection to server 'www.google.com'... DEBUG:client.diagnose:Network connection working DEBUG:client.diagnose:Checking executable 'aplay'... DEBUG:client.diagnose:Executable 'aplay' found: '/usr/bin/aplay' DEBUG:client.diagnose:Checking executable 'text2wave'... DEBUG:client.diagnose:Executable 'text2wave' found: '/usr/bin/text2wave' DEBUG:client.diagnose:Checking executable 'festival'... DEBUG:client.diagnose:Executable 'festival' found: '/usr/bin/festival' DEBUG:client.tts:Executing festival --pipe DEBUG:client.brain:Looking for modules in: '/home/pi/jasper/client/modules' DEBUG:client.brain:Found module 'Birthday' with words: ['BIRTHDAY'] DEBUG:client.brain:Found module 'Gmail' with words: ['EMAIL', 'INBOX'] DEBUG:client.brain:Found module 'HN' with words: ['HACKER', 'NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Joke' with words: ['JOKE', 'KNOCK KNOCK'] DEBUG:client.brain:Found module 'Life' with words: ['MEANING', 'OF', 'LIFE'] DEBUG:client.brain:Found module 'MPDControl' with words: ['MUSIC', 'SPOTIFY'] DEBUG:client.brain:Found module 'News' with words: ['NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Notifications' with words: ['FACEBOOK', 'NOTIFICATION'] DEBUG:client.brain:Found module 'Time' with words: ['TIME'] DEBUG:client.brain:Found module 'Unclear' with words: [] DEBUG:client.brain:Found module 'Weather' with words: ['WEATHER', 'TODAY', 'TOMORROW'] INFO:client.mic:Initializing PyAudio. ALSA/Jack error messages that pop up during this process are normal and can usually be safely ignored. ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.front.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM front ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround40.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround40 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround41 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround50 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround51 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround71.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround71 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM iec958 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started INFO:client.mic:Initialization of PyAudio completed. DEBUG:client.tts:Saying 'How can I be of service, anas?' with 'festival-tts' DEBUG:client.tts:Executing text2wave DEBUG:client.tts:Executing aplay -D plughw:1,0 /tmp/tmp7dBpZr.wav DEBUG:client.tts:Output was: 'aplay: main:722: audio open error: No such file or directory ' DEBUG:client.brain:Looking for modules in: '/home/pi/jasper/client/modules' DEBUG:client.brain:Found module 'Birthday' with words: ['BIRTHDAY'] DEBUG:client.brain:Found module 'Gmail' with words: ['EMAIL', 'INBOX'] DEBUG:client.brain:Found module 'HN' with words: ['HACKER', 'NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Joke' with words: ['JOKE', 'KNOCK KNOCK'] DEBUG:client.brain:Found module 'Life' with words: ['MEANING', 'OF', 'LIFE'] DEBUG:client.brain:Found module 'MPDControl' with words: ['MUSIC', 'SPOTIFY'] DEBUG:client.brain:Found module 'News' with words: ['NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Notifications' with words: ['FACEBOOK', 'NOTIFICATION'] DEBUG:client.brain:Found module 'Time' with words: ['TIME'] DEBUG:client.brain:Found module 'Unclear' with words: [] DEBUG:client.brain:Found module 'Weather' with words: ['WEATHER', 'TODAY', 'TOMORROW'] INFO:apscheduler.scheduler:Scheduler started DEBUG:apscheduler.scheduler:Looking for jobs to run DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added INFO:apscheduler.scheduler:Added job "Notifier.gather" to job store "default" INFO:client.conversation:Starting to handle conversation with keyword 'JASPER'. DEBUG:client.conversation:Started listening for keyword 'JASPER' 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 "build/bdist.linux-armv7l/egg/pyaudio.py", line 750, in open File "build/bdist.linux-armv7l/egg/pyaudio.py", line 441, in __init__ IOError: [Errno -9997] Invalid sample rate INFO:apscheduler.scheduler:Scheduler has been shut down

 

Matthew Curry

unread,
Aug 27, 2016, 4:54:52 PM8/27/16
to Jasper Support Forum
its just your audio is not setup..
[Errno -9997] INFO:
Message has been deleted

enesma...@gmail.com

unread,
Aug 30, 2016, 10:54:51 AM8/30/16
to Jasper Support Forum
Hi matthew Thanks for replay
i have already setup audio 
so i have usb mic and microphone as follows:

photo_1

Matthew Curry

unread,
Aug 30, 2016, 11:02:11 AM8/30/16
to Jasper Support Forum
I have yet to have that actually work, if you get it to please share.

enesma...@gmail.com

unread,
Sep 1, 2016, 9:09:52 AM9/1/16
to Jasper Support Forum
yes..Sloved :)
There was something I forgot...

Change the alsa.conf by opening it with

sudo nano /usr/share/alsa/alsa.conf

and replace

  • defaults.ctl.card 0
  • defaults.pcm.card 0
   To

    • defaults.ctl.card 1
    • defaults.pcm.card 1

     
    Message has been deleted

    enesma...@gmail.com

    unread,
    Sep 1, 2016, 9:15:39 AM9/1/16
    to Jasper Support Forum
    But i have a new problem...
    its work bur do anything.

    jasper.py --debug :

    DEBUG:client.diagnose:Checking network connection to server 'www.google.com'...
    DEBUG:client.diagnose:Network connection working
    DEBUG:__main__:Trying to read config file: '/home/pi/.jasper/profile.yml'
    DEBUG:client.diagnose:Checking network connection to server 'www.google.com'...
    DEBUG:client.diagnose:Network connection working
    WARNING:root:tts_engine not specified in profile, defaulting to 'espeak-tts'
    DEBUG:client.diagnose:Checking executable 'aplay'...
    DEBUG:client.diagnose:Executable 'aplay' found: '/usr/bin/aplay'
    DEBUG:client.diagnose:Checking executable 'espeak'...
    DEBUG:client.diagnose:Executable 'espeak' found: '/usr/bin/espeak'
    DEBUG:client.brain:Looking for modules in: '/home/pi/jasper-client/client/modules'
    DEBUG:client.brain:Found module 'Birthday' with words: ['BIRTHDAY']
    DEBUG:client.brain:Found module 'Gmail' with words: ['EMAIL', 'INBOX']
    DEBUG:client.brain:Found module 'HN' with words: ['HACKER', 'NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD']
    DEBUG:client.brain:Found module 'Joke' with words: ['JOKE', 'KNOCK KNOCK']
    DEBUG:client.brain:Found module 'Life' with words: ['MEANING', 'OF', 'LIFE']
    DEBUG:client.brain:Found module 'MPDControl' with words: ['MUSIC', 'SPOTIFY']
    DEBUG:client.brain:Found module 'News' with words: ['NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD']
    DEBUG:client.brain:Found module 'Notifications' with words: ['FACEBOOK', 'NOTIFICATION']
    DEBUG:client.brain:Found module 'Time' with words: ['TIME']
    DEBUG:client.brain:Found module 'Unclear' with words: []
    DEBUG:client.brain:Found module 'Weather' with words: ['WEATHER', 'TODAY', 'TOMORROW']
    INFO:client.mic:Initializing PyAudio. ALSA/Jack error messages that pop up during this process are normal and can usually be safely ignored.
    ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
    ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
    ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
    ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
    ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
    ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
    ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
    ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
    ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
    ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
    ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
    ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
    INFO:client.mic:Initialization of PyAudio completed.
    DEBUG:client.tts:Saying 'How can I be of service, Anas?' with 'espeak-tts'
    DEBUG:client.tts:Executing espeak -v default+m3 -p 40 -s 160 -w /tmp/tmpJiOO81.wav 'How can I be of service, Anas?'
    DEBUG:client.tts:Executing aplay -D plughw:1,0 /tmp/tmpJiOO81.wav
    DEBUG:client.tts:Output was: 'aplay: main:722: audio open error: No such file or directory
    '
    DEBUG:client.brain:Looking for modules in: '/home/pi/jasper-client/client/modules'
    DEBUG:client.brain:Found module 'Birthday' with words: ['BIRTHDAY']
    DEBUG:client.brain:Found module 'Gmail' with words: ['EMAIL', 'INBOX']
    DEBUG:client.brain:Found module 'HN' with words: ['HACKER', 'NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD']
    DEBUG:client.brain:Found module 'Joke' with words: ['JOKE', 'KNOCK KNOCK']
    DEBUG:client.brain:Found module 'Life' with words: ['MEANING', 'OF', 'LIFE']
    DEBUG:client.brain:Found module 'MPDControl' with words: ['MUSIC', 'SPOTIFY']
    DEBUG:client.brain:Found module 'News' with words: ['NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD']
    DEBUG:client.brain:Found module 'Notifications' with words: ['FACEBOOK', 'NOTIFICATION']
    DEBUG:client.brain:Found module 'Time' with words: ['TIME']
    DEBUG:client.brain:Found module 'Unclear' with words: []
    DEBUG:client.brain:Found module 'Weather' with words: ['WEATHER', 'TODAY', 'TOMORROW']
    INFO:apscheduler.scheduler:Scheduler started
    DEBUG:apscheduler.scheduler:Looking for jobs to run
    DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added
    INFO:apscheduler.scheduler:Added job "Notifier.gather" to job store "default"
    INFO:client.conversation:Starting to handle conversation with keyword 'JASPER'.
    DEBUG:client.conversation:Started listening for keyword 'JASPER'
    DEBUG:apscheduler.scheduler:Looking for jobs to run
    DEBUG:apscheduler.scheduler:Next wakeup is due at 2016-09-01 13:01:39.729250+00:00 (in 29.991190 seconds)
    INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): api.wit.ai
    DEBUG:requests.packages.urllib3.connectionpool:"POST /speech?v=20150101 HTTP/1.1" 200 119
    INFO:client.stt:Transcribed: []
    DEBUG:client.conversation:Stopped listening for keyword 'JASPER'
    INFO:client.conversation:Nothing has been said or transcribed.
    DEBUG:client.conversation:Started listening for keyword 'JASPER'
    INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): api.wit.ai
    DEBUG:requests.packages.urllib3.connectionpool:"POST /speech?v=20150101 HTTP/1.1" 200 119
    INFO:client.stt:Transcribed: []
    DEBUG:client.conversation:Stopped listening for keyword 'JASPER'
    INFO:client.conversation:Nothing has been said or transcribed.
    DEBUG:client.conversation:Started listening for keyword 'JASPER'
    INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): api.wit.ai
    DEBUG:requests.packages.urllib3.connectionpool:"POST /speech?v=20150101 HTTP/1.1" 200 119
    INFO:client.stt:Transcribed: []
    DEBUG:client.conversation:Stopped listening for keyword 'JASPER'
    INFO:client.conversation:Nothing has been said or transcribed.
    DEBUG:client.conversation:Started listening for keyword 'JASPER'
    INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): api.wit.ai
    DEBUG:requests.packages.urllib3.connectionpool:"POST /speech?v=20150101 HTTP/1.1" 200 119
    INFO:client.stt:Transcribed: []
    DEBUG:client.conversation:Stopped listening for keyword 'JASPER'
    INFO:client.conversation:Nothing has been said or transcribed.
    DEBUG:client.conversation:Started listening for keyword 'JASPER'
    INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): api.wit.ai
    DEBUG:requests.packages.urllib3.connectionpool:"POST /speech?v=20150101 HTTP/1.1" 200 119
    INFO:client.stt:Transcribed: []
    DEBUG:client.conversation:Stopped listening for keyword 'JASPER'
    INFO:client.conversation:Nothing has been said or transcribed.
    DEBUG:client.conversation:Started listening for keyword 'JASPER'
    INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): api.wit.ai
    DEBUG:requests.packages.urllib3.connectionpool:"POST /speech?v=20150101 HTTP/1.1" 200 119
    INFO:client.stt:Transcribed: []
    DEBUG:client.conversation:Stopped listening for keyword 'JASPER'
    INFO:client.conversation:Nothing has been said or transcribed.
    DEBUG:client.conversation:Started listening for keyword 'JASPER'
    INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): api.wit.ai
    DEBUG:apscheduler.scheduler:Looking for jobs to run
    INFO:apscheduler.executors.default:Running job "Notifier.gather (trigger: interval[0:00:30], next run at: 2016-09-01 13:01:39 UTC)" (scheduled at 2016-09-01 13:01:39.729250+00:00)
    DEBUG:apscheduler.scheduler:Next wakeup is due at 2016-09-01 13:02:09.729250+00:00 (in 29.997781 seconds)
    DEBUG:requests.packages.urllib3.connectionpool:"POST /speech?v=20150101 HTTP/1.1" 200 119
    INFO:client.stt:Transcribed: []
    DEBUG:client.conversation:Stopped listening for keyword 'JASPER'
    INFO:client.conversation:Nothing has been said or transcribed.
    DEBUG:client.conversation:Started listening for keyword 'JASPER'
    Traceback (most recent call last):
      File "./jasper-client/jasper.py", line 148, in <module>
        app.run()
      File "./jasper-client/jasper.py", line 118, in run
        conversation.handleForever()
      File "/home/pi/jasper-client/client/conversation.py", line 31, in handleForever
        threshold, transcribed = self.mic.passiveListen(self.persona)
      File "/home/pi/jasper-client/client/mic.py", line 121, in passiveListen
        data = stream.read(CHUNK)
      File "/usr/local/lib/python2.7/dist-packages/pyaudio.py", line 608, in read
        return pa.read_stream(self._stream, num_frames, exception_on_overflow)
    IOError: [Errno -9981] Input overflowed
    INFO:apscheduler.scheduler:Scheduler has been shut down
    INFO:apscheduler.executors.default:Job "Notifier.gather (trigger: interval[0:00:30], next run at: 2016-09-01 13:02:09 UTC)" executed successfully
    Reply all
    Reply to author
    Forward
    0 new messages