I am trying to implement "always listening" java program which listens from microphone for hotword like "ok,google" or "alexa".
I found many examples where it listens to microphone for few seconds. Record voice with Java
However my use case is to listen all the time until hot-word is detected.
Any pointers?