jasperproject / jasper-client

Client code for Jasper voice computing platform
MIT License
4.54k stars 1.01k forks source link

ERROR on start RPI 3 #467

Closed Twiggy-Garcia closed 8 years ago

Twiggy-Garcia commented 8 years ago

IndiNijhof commented 8 years ago

It seems that you're missing the FST model file. Have you tried the following steps?

Building the Phonetisaurus FST model

wget https://www.dropbox.com/s/kfht75czdwucni1/g014b2b.tgz
tar -xvf g014b2b.tgz
cd g014b2b/
./compile-fst.sh
cd ..
mv ~/g014b2b ~/phonetisaurus
Twiggy-Garcia commented 8 years ago

thanks for your email, i tried your suggestions but i still received an error. below is what i got

pi@TwiggyGarcia:~ $ wget https://www.dropbox.com/s/kfht75czdwucni1/g014b2b.tgz --2016-03-19 23:23:21-- https://www.dropbox.com/s/kfht75czdwucni1/g014b2b.tgz Resolving www.dropbox.com (www.dropbox.com)... 162.125.4.1 Connecting to www.dropbox.com (www.dropbox.com)|162.125.4.1|:443... connected. HTTP request sent, awaiting response... 302 FOUND Location: https://dl.dropboxusercontent.com/content_link/5akF2BQ9h9ZvCLfVaJWQ6Qu7zmnRm9W6SXwFMYQAMdCtYXwbUU2jSX4c0CbyWGIv/file [following] --2016-03-19 23:23:32-- https://dl.dropboxusercontent.com/content_link/5akF2BQ9h9ZvCLfVaJWQ6Qu7zmnRm9W6SXwFMYQAMdCtYXwbUU2jSX4c0CbyWGIv/file Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 108.160.173.165 Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|108.160.173.165|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 50467029 (48M) [application/x-gtar] Saving to: ‘g014b2b.tgz’

g014b2b.tgz 100%[=====================>] 48.13M 1.41MB/s in 24s

2016-03-19 23:23:56 (2.02 MB/s) - ‘g014b2b.tgz’ saved [50467029/50467029]

pi@TwiggyGarcia:~ $ tar -xvf g014b2b.tgz g014b2b/ g014b2b/compile-fst.sh g014b2b/g014b2b.arpa g014b2b/g014b2b.corpus g014b2b/g014b2b.fst.txt g014b2b/g014b2b.hyp g014b2b/g014b2b.isyms g014b2b/g014b2b.osyms g014b2b/g014b2b.ref g014b2b/g014b2b.ssyms g014b2b/g014b2b.train g014b2b/g014b2b.words g014b2b/README.txt pi@TwiggyGarcia:~ $ cd g014b2b/ pi@TwiggyGarcia:~/g014b2b $ ./compile-fst.sh fstcompile --ssymbols=g014b2b.ssyms --isymbols=g014b2b.isyms --keep_isymbols --osymbols=g014b2b.osyms --keep_osymbols g014b2b.fst.txt > g014b2b.fst pi@TwiggyGarcia:~/g014b2b $ cd .. pi@TwiggyGarcia:~ $ mv ~/g014b2b ~/phonetisaurus pi@TwiggyGarcia:~ $ cd home -bash: cd: home: No such file or directory pi@TwiggyGarcia:~ $ pwd /home/pi pi@TwiggyGarcia:~ $ cd jasper pi@TwiggyGarcia:~/jasper $ ./jasper.py


On 19 Mar 2016, at 21:18, Indi Nijhof notifications@github.com wrote:

It seems that you're missing the FST model file. Have you tried the following steps?

Building the Phonetisaurus FST model

wget https://www.dropbox.com/s/kfht75czdwucni1/g014b2b.tgz tar -xvf g014b2b.tgz cd g014b2b/ ./compile-fst.sh cd .. mv ~/g014b2b ~/phonetisaurus — You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/jasperproject/jasper-client/issues/467#issuecomment-198786641

Twiggy-Garcia commented 8 years ago

DEBUG

pi@TwiggyGarcia:~/jasper $ ./jasper.py --debug


IndiNijhof commented 8 years ago

Oke so the error you have now had to do with your audio settings and configurations I think.

Did you follow the steps from the guide as to configuring ALSA? ALSA configuration

Are you running Raspbian Jessie?

Twiggy-Garcia commented 8 years ago

Yes i'm running the latest jessie

this is what the alsa base file looks like, the previous one is wrong. sudo nano /etc/modprobe.d/alsa-base.conf

autoloader aliases install sound-slot-0 /sbin/modprobe snd-card-0 install sound-slot-1 /sbin/modprobe snd-card-1 install sound-slot-2 /sbin/modprobe snd-card-2 install sound-slot-3 /sbin/modprobe snd-card-3 install sound-slot-4 /sbin/modprobe snd-card-4 install sound-slot-5 /sbin/modprobe snd-card-5 install sound-slot-6 /sbin/modprobe snd-card-6 install sound-slot-7 /sbin/modprobe snd-card-7

Cause optional modules to be loaded above generic modules

install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modpro$ #

Workaround at bug #499695 (reverted in Ubuntu see LP #319505)

install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbi$ install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { $ install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbi$ # install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS &$

Cause optional modules to be loaded above sound card driver modules

install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS &$ install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS &$

Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)

install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbi$

Prevent abnormal drivers from grabbing index 0

options bt87x index=-2 options cx88_alsa index=-2 options snd-atiixp-modem index=-2 options snd-intel8x0m index=-2 options snd-via82xx-modem index=-2 options snd-usb-audio index=0

options snd_bcm2835 index=1

options snd-usb-caiaq index=-2 options snd-usb-ua101 index=-2 options snd-usb-us122l index=-2 options snd-usb-usx2y index=-2

Ubuntu #62691, enable MPU for snd-cmipci

options snd-cmipci mpu_port=0x330 fm_port=0x388

Keep snd-pcsp from being loaded as first soundcard

########options snd-pcsp index=-2

Keep snd-usb-audio from beeing loaded as first soundcard

########options snd-usb-audio index=-2

Now when i run jasper i get this error


Twiggy-Garcia commented 8 years ago

now when i run arecord -l i get no capture devices

arecord -l \ List of CAPTURE Hardware Devices **

On 20 Mar 2016, at 00:07, Twiggy Garcia twiggygarciamusic@gmail.com wrote:

this is what the alsa base file looks like, the previous one is wrong

sudo nano /etc/modprobe.d/alsa-base.conf

autoloader aliases install sound-slot-0 /sbin/modprobe snd-card-0 install sound-slot-1 /sbin/modprobe snd-card-1 install sound-slot-2 /sbin/modprobe snd-card-2 install sound-slot-3 /sbin/modprobe snd-card-3 install sound-slot-4 /sbin/modprobe snd-card-4 install sound-slot-5 /sbin/modprobe snd-card-5 install sound-slot-6 /sbin/modprobe snd-card-6 install sound-slot-7 /sbin/modprobe snd-card-7

Cause optional modules to be loaded above generic modules

install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modpro$ #

Workaround at bug #499695 (reverted in Ubuntu see LP #319505)

install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbi$ install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { $ install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbi$ # install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS &$

Cause optional modules to be loaded above sound card driver modules

install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS &$ install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS &$

Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)

install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbi$

Prevent abnormal drivers from grabbing index 0

options bt87x index=-2 options cx88_alsa index=-2 options snd-atiixp-modem index=-2 options snd-intel8x0m index=-2 options snd-via82xx-modem index=-2 options snd-usb-audio index=0

options snd_bcm2835 index=1

options snd-usb-caiaq index=-2 options snd-usb-ua101 index=-2 options snd-usb-us122l index=-2 options snd-usb-usx2y index=-2

Ubuntu #62691, enable MPU for snd-cmipci

options snd-cmipci mpu_port=0x330 fm_port=0x388

Keep snd-pcsp from being loaded as first soundcard

########options snd-pcsp index=-2

Keep snd-usb-audio from beeing loaded as first soundcard

########options snd-usb-audio index=-2

Now when i run jasper i get this error


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

    ALSA lib confmisc.c:768:(parse_card) cannot find card '1' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name 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 sysdefault ALSA lib confmisc.c:768:(parse_card) cannot find card '1' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name 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 sysdefault ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.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 pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 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 confmisc.c:768:(parse_card) cannot find card '1' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name 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 dmix 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 Traceback (most recent call last): File "./jasper.py", line 148, in app.run() File "./jasper.py", line 118, 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 input device (no default output device)] -9996

Twiggy-Garcia commented 8 years ago

i’m starting from scratch

just installed Raspbian Jessie

On 20 Mar 2016, at 00:22, Twiggy Garcia twiggygarciamusic@gmail.com wrote:

now when i run arecord -l i get no capture devices

arecord -l \ List of CAPTURE Hardware Devices **

On 20 Mar 2016, at 00:07, Twiggy Garcia <twiggygarciamusic@gmail.com mailto:twiggygarciamusic@gmail.com> wrote:

this is what the alsa base file looks like, the previous one is wrong

sudo nano /etc/modprobe.d/alsa-base.conf

autoloader aliases install sound-slot-0 /sbin/modprobe snd-card-0 install sound-slot-1 /sbin/modprobe snd-card-1 install sound-slot-2 /sbin/modprobe snd-card-2 install sound-slot-3 /sbin/modprobe snd-card-3 install sound-slot-4 /sbin/modprobe snd-card-4 install sound-slot-5 /sbin/modprobe snd-card-5 install sound-slot-6 /sbin/modprobe snd-card-6 install sound-slot-7 /sbin/modprobe snd-card-7

Cause optional modules to be loaded above generic modules

install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modpro$ #

Workaround at bug #499695 (reverted in Ubuntu see LP #319505)

install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbi$ install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { $ install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbi$ # install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS &$

Cause optional modules to be loaded above sound card driver modules

install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS &$ install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS &$

Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)

install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbi$

Prevent abnormal drivers from grabbing index 0

options bt87x index=-2 options cx88_alsa index=-2 options snd-atiixp-modem index=-2 options snd-intel8x0m index=-2 options snd-via82xx-modem index=-2 options snd-usb-audio index=0

options snd_bcm2835 index=1

options snd-usb-caiaq index=-2 options snd-usb-ua101 index=-2 options snd-usb-us122l index=-2 options snd-usb-usx2y index=-2

Ubuntu #62691, enable MPU for snd-cmipci

options snd-cmipci mpu_port=0x330 fm_port=0x388

Keep snd-pcsp from being loaded as first soundcard

########options snd-pcsp index=-2

Keep snd-usb-audio from beeing loaded as first soundcard

########options snd-usb-audio index=-2

Now when i run jasper i get this error


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

    ALSA lib confmisc.c:768:(parse_card) cannot find card '1' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name 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 sysdefault ALSA lib confmisc.c:768:(parse_card) cannot find card '1' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name 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 sysdefault ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.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 pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 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 confmisc.c:768:(parse_card) cannot find card '1' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name 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 dmix 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 Traceback (most recent call last): File "./jasper.py", line 148, in app.run() File "./jasper.py", line 118, 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 input device (no default output device)] -9996

Holzhaus commented 8 years ago

Please use this issue tracker to report code bugs only. If you have usage questions, please use the forum: https://groups.google.com/forum/#!forum/jasper-support-forum