I have a simple code to call / awaken the voice assistant after pressing a keyboard key.
import requests
import keyboard
print("Write 'p'")
while True:
if keyboard.read_key() == "p":
print("Habla")
url = "http://localhost:12101/api/listen-for-command"
requests.post(url)
My question is:
I use Raven as Wakeword, there is some way to configure sensitivity either with requests such as my code, websocket, or whatever?
2nd Question: How do I configure the audio? That is, how can I change them?
I ask it because I want to do both from the command line or code and not from the web.
Maybe I am assuming the wrong thing here, but is it true you want to activacte Rhasspy via command line?
If so, you can publish a message to hermes/dialogueManager/startSession.
This will trigger the hotword detection and the startlisting command.
I do not know what you want to achieve, but it might make thing easier.
There is no API for your first question and I am not sure I understand your second question
1 Like
I apologize for doing it more complex. My questions are:
- How do I create voice samples for Raven?
- How I configure Raven’s sensitivity (off the web, with code).
With the 1st question, I think it’s done with the next code (I still do not know):
arecord -r 16000 -f S16_LE -c 1 -t raw | bin/runner --record sounds/ keyword-{n:02d}.wav
With point 2, I try to change the matches and sensitivity … direct on profile.json but, do not reflect from the web, I think you have to reset the wizard, there is a way to do it from command or code?
No, I don’t think that is supported
1 Like
I just found the solution, you just have to edit the Profile.json and Reset Docket:
docker restart rhasspy