spitballing: 'her' own hardcoded waveform is a hardcorded wake word exception. i have doubts that it'd be much more complex than that. what i do find interesting, however, is that, at times, she'll wake to an utterance from some other media i have playing and seems to 'know' immediately that she was inadvertently awoken. the 'listening' tone and 'end listening' tones sound in quick succession. i do not have voice rec…
> seems to 'know' immediately that she was inadvertently awoken. the 'listening' tone and 'end listening' tones sound in quick succession Speculation: - To reduce latency, the "listening" tone plays as soon as the wake word chip hears the wake word - To improve accuracy, the wake word chip keeps a circular buffer of the last couple seconds of audio, and the main CPU / DSP scans that when it wakes up So you get spurio…
Ask HN: How does Alexa avoid interrupting itself when saying its own name?
31–40 of 61 posts
Re: Ask HN: How does Alexa avoid interrupting itself when saying its own name?
#32What happens if you record her saying her own name and then play it back separately? Does she respond to that if she's not actively talking at the moment? ----- Not directly the same case but similar, Amazon trains Alexa to avoid certain mentions of her in commercials using acoustic fingerprinting techniques: https://www.amazon.science/blog/why-alexa-wont-wake-up-when-...
> What happens if you record her saying her own name I suggest we don't personify devices.
Re: Ask HN: How does Alexa avoid interrupting itself when saying its own name?
#33The simple solution: switch off the code that listens for the “Alexa” prompt when saying “Alexa” yourself. Slightly harder: keep it running, but discard hits that are timed close to the time you say “Alexa” yourself. Even harder: have a second detector that is trained on the device saying “Alexa”, and discard hits that coincide with that detector firing. That second detector can be simplified by superimposing a wavef…
Wouldn't it be simpler to add noise above 20kHz and ignore the key phrase if the noise is present?
Re: Ask HN: How does Alexa avoid interrupting itself when saying its own name?
#34This is achieved using Acoustic Echo Canellation (AEC). This essentially subtracts the output of the speaker as well as reverberations from the room from the microphone input. Here's a youtube video explaining the basic principle: https://www.youtube.com/watch?v=bJKGrheOoY4 Source: worked on 3rd party Alexa speakers
Re: Ask HN: How does Alexa avoid interrupting itself when saying its own name?
#35More interesting is when we used to run Alexa commercials and it would cause a denial of service attack on ourselves with all the devices being triggered, particularly during the superbowl. In that case, we added some imperceptible noise to the audio stream so that Alexa wouldn’t trigger.
How do you know what noise to add?
Re: Ask HN: How does Alexa avoid interrupting itself when saying its own name?
#36More interesting is when we used to run Alexa commercials and it would cause a denial of service attack on ourselves with all the devices being triggered, particularly during the superbowl. In that case, we added some imperceptible noise to the audio stream so that Alexa wouldn’t trigger.
Wow that's cool - that's like those adversarial attacks they do on self-driving cars to make it think a stop sign is a gorilla How do you know what noise to add?
Re: Ask HN: How does Alexa avoid interrupting itself when saying its own name?
#37What happens if you record her saying her own name and then play it back separately? Does she respond to that if she's not actively talking at the moment? ----- Not directly the same case but similar, Amazon trains Alexa to avoid certain mentions of her in commercials using acoustic fingerprinting techniques: https://www.amazon.science/blog/why-alexa-wont-wake-up-when-...
> What happens if you record her saying her own name I suggest we don't personify devices.
Re: Ask HN: How does Alexa avoid interrupting itself when saying its own name?
#38What happens if you record her saying her own name and then play it back separately? Does she respond to that if she's not actively talking at the moment? ----- Not directly the same case but similar, Amazon trains Alexa to avoid certain mentions of her in commercials using acoustic fingerprinting techniques: https://www.amazon.science/blog/why-alexa-wont-wake-up-when-...
Re: Ask HN: How does Alexa avoid interrupting itself when saying its own name?
#39Re: Ask HN: How does Alexa avoid interrupting itself when saying its own name?
#40More interesting is when we used to run Alexa commercials and it would cause a denial of service attack on ourselves with all the devices being triggered, particularly during the superbowl. In that case, we added some imperceptible noise to the audio stream so that Alexa wouldn’t trigger.
If there is nothing in the frequency range from 3kHz to 6kHz Alexa won't wake when a wake word is spoken. https://youtu.be/iNxvsxU2rJE doesn't wake up anything.
https://www.theverge.com/2018/2/2/16965484/amazon-alexa-supe...
> Apparently, the Alexa commercials are intentionally muted in the 3,000Hz to 6,000Hz range of the audio spectrum, which apparently tips off the system that the “Alexa” phrase being spoken isn’t in fact a real command and should be ignored.
Compare that with selecting 'Alexa, what time is it' (I'm on a Mac) and doing "speak text". Same speaker (for me with the previous video).
I had one device set with a wake word of "Amazon" but that got really annoying when watching AWS training videos. I believe Ziggy is the best wake word for that reason.