Split hypothesis on individual keyphrases

后端 未结 1 764
忘了有多久
忘了有多久 2021-01-28 14:26

I use Pocketsphinx in my Android app. I have a relatively small set of commands to be recognized independently, so I ended up using a keyword search from a file that looks like

相关标签:
1条回答
  • 2021-01-28 15:04

    You can iterate over segments, each would be a keyword

        for (Segment seg : recognizer.getDecoder().seg()) {
            System.out.println(seg.getWord() + " " + seg.getProb());
        }
    
    0 讨论(0)
提交回复
热议问题