AlexaPi icon indicating copy to clipboard operation
AlexaPi copied to clipboard

Custom Trigger Wake Word doesn't work

Open tkamaal opened this issue 8 years ago • 10 comments

Thank you for reporting an issue with AlexaPi.

Make sure you are running the latest version of AlexaPi, and look through issues before submitting.

Check out our Wiki, and make sure to look at Debugging, and Audio debugging in particular before filing an issue.

In order to help troubleshooting, be sure to include the following information:

Output of the audio debugging script.

Your OS (including version) where you are running AlexaPi:

Raspberry Pi OS Stretch 
VERSION_ID : "9"
VERSION = "9" (Stretch) 

Your hardware platform and model you are running on:

Raspberry Pi Model B

Python release (python2 --version):

Python 2.7.13

Description of problem:

Aim : To change wake word from "alexa" to "something of my choice".  

Expected:

Pi should start responding to custom wake word set by me in the config.yaml file. 

Problem-relevant config.yaml entries:

Yes. 
pocketsphinx:
enabled: true
voice_confirm: true

phrase: "tom"
threshold: 1e-10

Steps to reproduce:

  1. sudo nano etc/opt/AlexaPi/config.yaml
  2. Edit the phrase in the file
  3. Reboot the Pi or use sudo systemctl start AlexaPi.service

Traceback (if applicable):


Additional info:

I believe this can be done by modifying the "phrase " option in config.yaml file. This was suggested in one of the issues. I modified the wake word in config.yaml file and restarted the Pi but it didn't work after that. 

tkamaal avatar Oct 12 '17 18:10 tkamaal

#222

This issue is a reference that we can do this. Please check this out.

tkamaal avatar Oct 12 '17 18:10 tkamaal

https://github.com/alexa-pi/AlexaPi/wiki/Triggers#voice-triggers Read up. Try tweaking the threshold.

renekliment avatar Oct 12 '17 18:10 renekliment

Sure, I will try that.

tkamaal avatar Oct 12 '17 18:10 tkamaal

@renekliment Doesn't seem to work even after playing with higher threshold values. Tried short wake words like "Tom" and "John" . Tried threshold values 1e-50 and 1e-75.

tkamaal avatar Oct 12 '17 19:10 tkamaal

Are you an English native speaker? The thing is sensitive to accents.

renekliment avatar Oct 12 '17 19:10 renekliment

I am not native English speaker. I asked my colleague who is an American and still doesn't seem to work . Threshold is set to 1e-50.

When I say "alexa" it works fine. How does accent matter when we change the wake word? Please explain so it would be helpful for me to understand better.

tkamaal avatar Oct 12 '17 19:10 tkamaal

I'm pretty sure it's a threshold / audio issue. Upload your recording here - the one that AlexaPi makes - see wiki on where to find that. This works otherwise.

renekliment avatar Oct 14 '17 20:10 renekliment

I'm unable to find AlexaPi.conf in /etc/opt please help

DS3a avatar Nov 03 '17 13:11 DS3a

Hi, I recently made the AlexaPi and wanted to also know how to change it to the phrase predetermined by amazon, "computer". This is something to add to the issue (it is by Github user bionemesis):

So according to the kitt.ai documentation, you can do it if you're using kitt.ai. But the documentation isn't clear on how. So I did some digging and figured it out. After getting everything up and running and responding to Alexa...

Visit https://snowboy.kitt.ai/ and register/login. Go through the process to create your own hotword. Naturally, you're going to use "Computer", right? Download the created "Computer.pmdl" file and rename it to "alexa.umdl". Stop wake word detection on your device and replace the file "~/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/resources/alexa.umdl" with the renamed file you just downloaded (I backed up the existing file, just in case). Then restart wake word detection and you're good to go.

It, it, responds to computer... :)

Back to the Issue:

So I think this might be the way but I would really like someone to completely specify the steps in the process.

ghost avatar Nov 07 '17 01:11 ghost

Try with 3 syllable words. Obviously things like "Tom" is just one and become problematic with other words. I would try with words like: Tomato (toh-ma-toh), capito (kah-pi-toh) etc. Or perhaps kapito since c can be pronounced differently as in citrus and cook.

E3V3A avatar Dec 17 '17 10:12 E3V3A