Hello everybody. I'm Luys and trying to fix decoder error when I'm creating pocketsphinx decoder with jsgf file. If there is a word which is not in CMU dictionary (English), it gives error. This is my code.
try: self.config.set_string('-hmm', path.join(MODEL_DIR, 'en-us')) self.config.set_string('-dict', path.join(MODEL_DIR, 'cmudict-en-us.dict')) self.config.set_string('-jsgf', jsgf_file) self.config.set_string('-logfn', './null') except Exception as e: print(e) return self.decoder = Decoder(self.config)
How can I pass this with all words which is or isn't in Dictionary. Thanks.
Hello Luys. You need to add all words to the dictionary first. You can also use g2p tool and decoder.add_word method.
Thanks for your answer. Let me try to do it.
On Mon, Jul 22, 2019 at 5:58 AM Nickolay V. Shmyrev nshmyrev@users.sourceforge.net wrote:
Hello Luys. You need to add all words to the dictionary first. You can also use g2p tool and decoder.add_word method. pocketsphinx jsgf based alignment https://sourceforge.net/p/cmusphinx/discussion/help/thread/614deede8f/?limit=25#0923/a032 Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/cmusphinx/discussion/help/ To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
pocketsphinx jsgf based alignment https://sourceforge.net/p/cmusphinx/discussion/help/thread/614deede8f/?limit=25#0923/a032
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/cmusphinx/discussion/help/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
When I'll add words to the dictionary, should I put their phonemes together?
Log in to post a comment.
Hello everybody.
I'm Luys and trying to fix decoder error when I'm creating pocketsphinx decoder with jsgf file.
If there is a word which is not in CMU dictionary (English), it gives error.
This is my code.
How can I pass this with all words which is or isn't in Dictionary.
Thanks.
Hello Luys. You need to add all words to the dictionary first. You can also use g2p tool and decoder.add_word method.
Thanks for your answer.
Let me try to do it.
On Mon, Jul 22, 2019 at 5:58 AM Nickolay V. Shmyrev nshmyrev@users.sourceforge.net wrote:
When I'll add words to the dictionary, should I put their phonemes together?