Benjamin Hill - 2020-09-11

New to the whole domain. Trying to get a "wake word" hello world app working on a raspberry pi. I think this means pocketsphinx is out because it is only android, true?

The wake word is "Trick or Treat"

The existing demo code that I found works perfecctly (thank you!)

val configuration = Configuration().apply {
    acousticModelPath = "resource:/edu/cmu/sphinx/models/en-us/en-us"
    dictionaryPath = "resource:/edu/cmu/sphinx/models/en-us/cmudict-en-us.dict"
    languageModelPath = "resource:/edu/cmu/sphinx/models/en-us/en-us.lm.bin"
}
val recognizer = LiveSpeechRecognizer(configuration)
recognizer.startRecognition(true)
generateSequence { recognizer.result }
    .takeWhile { "exit"!=it.hypothesis  }
    .forEachIndexed { index, speechResult ->
        println("Hypothesis $index: '${speechResult.hypothesis}'")
}
recognizer.stopRecognition()

I'm thinking I need to mess with the configuration to have a Keyword list: 'trick or treat /1e-30/' somewhere?