Hi!
I am new to using pocketsphinx and I am making a speech recognizer android application.
1. I know that pocketsphinx has "oh mighty computer" to activate the listening of the application. I was wondering if there was a way to customize the keyphrase? I want it to be "hey serena". I tried changing the private static final String KEYPHRASE = "oh mighty computer";
to
privatestaticfinalStringKEYPHRASE="hey serena";
but that doesn't work.
I want to call a function after a keyword has been said. For e.g if the user says "hey serena" to start speech recognition and then says, "run function A", then functionA which I have made, is run on command. Similarly if the user says "run function B", functionB is run. I don't want to give users any other options to run any different function.
So basically I want the keyphrase to activate listening to be "hey Serena" instead of "oh mighty computer" and I want 2 keyphrases to activate 2 different functions A and B.
Please let me know how to go about doing that as soon as possible?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I am new to using pocketsphinx and I am making a speech recognizer android application.
1. I know that pocketsphinx has "oh mighty computer" to activate the listening of the application. I was wondering if there was a way to customize the keyphrase? I want it to be "hey serena". I tried changing the
private static final String KEYPHRASE = "oh mighty computer";
to
but that doesn't work.
So basically I want the keyphrase to activate listening to be "hey Serena" instead of "oh mighty computer" and I want 2 keyphrases to activate 2 different functions A and B.
Please let me know how to go about doing that as soon as possible?
Thanks