Menu

pocketsphinx jsgf based alignment

Help
luys
2019-07-21
2019-07-22
  • luys

    luys - 2019-07-21

    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.

     
  • luys

    luys - 2019-07-22

    When I'll add words to the dictionary, should I put their phonemes together?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.