Open ezargar opened 6 years ago
Same here - I would love to find a fix.
After looking into it more, it seems like phonetisaurus-g2p
is a completely empty file. I think this would be the problem. @shbhrsaha friendly ping - any ideas about why this is happening?
*******************************************************
* JASPER - THE TALKING COMPUTER *
* (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *
*******************************************************
ERROR:client.g2p:Error occured while executing command 'phonetisaurus-g2p --model=/Users/<name>/phonetisaurus/g014b2b.fst --input=/var/folders/bk/kzb30zh56l94zmhml4ck70qr0000gn/T/tmp6tP5xf.g2p --words --isfile'
Traceback (most recent call last):
File "/Users/<name>/jasper/client/g2p.py", line 40, in execute
stderr=subprocess.PIPE)
File "/usr/local/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/local/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1025, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error
ERROR:client.vocabcompiler:Fatal compilation Error occured, cleaning up...
Traceback (most recent call last):
File "/Users/<name>/jasper/client/vocabcompiler.py", line 163, in compile
self._compile_vocabulary(phrases)
File "/Users/<name>/jasper/client/vocabcompiler.py", line 271, in _compile_vocabulary
self._compile_dictionary(vocabulary, self.dictionary_file)
File "/Users/<name>/jasper/client/vocabcompiler.py", line 321, in _compile_dictionary
phonemes = g2pconverter.translate(words)
File "/Users/<name>/jasper/client/g2p.py", line 130, in translate
output = self._translate_words(words)
File "/Users/<name>/jasper/client/g2p.py", line 119, in _translate_words
nbest=self.nbest)
File "/Users/<name>/jasper/client/g2p.py", line 40, in execute
stderr=subprocess.PIPE)
File "/usr/local/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/local/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1025, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error
ERROR:root:Error occured!
Traceback (most recent call last):
File "jasper.py", line 146, in <module>
app = Jasper()
File "jasper.py", line 109, in __init__
stt_passive_engine_class.get_passive_instance(),
File "/Users/<name>/jasper/client/stt.py", line 48, in get_passive_instance
return cls.get_instance('keyword', phrases)
File "/Users/<name>/jasper/client/stt.py", line 40, in get_instance
vocabulary.compile(phrases)
File "/Users/<name>/jasper/client/vocabcompiler.py", line 171, in compile
raise e
OSError: [Errno 8] Exec format error
OS: MacOS v10.12.6 Python: v2.7.14
instead of running make
I ran make -stdlib=libstdc++
in is2013-conversion/phonetisaurus/src
to include the proper libraries.
After testing it a little more, I was able to get phonetisaurus
installed and "working" (sort-of) by using this repository. Unfortunately it did not understand me at all so I switched to witai which has been working pretty well.
thank you but i installed google engine...i'm pretty good with it
pi@raspberrypi:~/g014b2b $ /home/pi/jasper/jasper.py
ERROR:client.g2p:Command 'phonetisaurus-g2p --model=/home/pi/phonetisaurus/g014b2b.fst --input=/tmp/tmpKHonAt.g2p --words --isfile' return with exit status -11 ERROR:client.vocabcompiler:Fatal compilation Error occured, cleaning up... Traceback (most recent call last): File "/home/pi/jasper/client/vocabcompiler.py", line 163, in compile self._compile_vocabulary(phrases) File "/home/pi/jasper/client/vocabcompiler.py", line 271, in _compile_vocabulary self._compile_dictionary(vocabulary, self.dictionary_file) File "/home/pi/jasper/client/vocabcompiler.py", line 321, in _compile_dictionary phonemes = g2pconverter.translate(words) File "/home/pi/jasper/client/g2p.py", line 130, in translate output = self._translate_words(words) File "/home/pi/jasper/client/g2p.py", line 119, in _translate_words nbest=self.nbest) File "/home/pi/jasper/client/g2p.py", line 56, in execute raise OSError("Command execution failed") OSError: Command execution failed ERROR:root:Error occured! Traceback (most recent call last): File "/home/pi/jasper/jasper.py", line 146, in
app = Jasper()
File "/home/pi/jasper/jasper.py", line 109, in init
stt_passive_engine_class.get_passive_instance(),
File "/home/pi/jasper/client/stt.py", line 48, in get_passive_instance
return cls.get_instance('keyword', phrases)
File "/home/pi/jasper/client/stt.py", line 40, in get_instance
vocabulary.compile(phrases)
File "/home/pi/jasper/client/vocabcompiler.py", line 171, in compile
raise e
OSError: Command execution failed