Modify the command.cpp to change the Activation Phrase/prompt #2083
normatovjj
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Update: in order to achieve the second idea from above, we can change the lines 574-680
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Why add an extra file? Why not just make it a command-line parameter? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since the command "Ok Whisper, start listening for commands." is hard coded, here is a modification to the command.cpp to change the prompt to whatever you want. Instead of the line 565 below:
565
std::string k_prompt = "Ok Whisper, start listening for commands.";
we change it to:
You would need to create a new file "phrase.txt" in the "whisper.cpp/examples/command/" folder and write whatever you want, simple text without "". Also, if you already have the command compiled, you would need to delete the executable from the main folder whisper.cpp (just one file), and recompile again, by simply running
make command
from the main directory.Also, would be great to reset the assistant to listening for the activation phrase after giving it a command, like regular voice assistants do. After one command is identified, it would be ideal to again activate the assistant by saying the activation phrase.
Beta Was this translation helpful? Give feedback.
All reactions