HomeAlexaCreepy Alexa for Halloween

Creepy Alexa for Halloween

Jeepers creepers everybody!

I don’t usually do Halloween-related posts but this one was on my mind for some time. Ever since I figured out how much fun you could get with AlexaRemoteV2 – I had a plan to turn Alexa into a creepy speaker just for one day! What’s a better day than Halloween – meet Creepy Alexa – your slightly rude and nightmarish companion that will scare the heck out of everyone in the household.

Note: AlexaRemoteV2 had been replaced with node-red-contrib-alexa-remote2-applestrudel (maintained node) which fixes the obsolescence of the original node. The usage is exactly the same.

Creepy Alexa has two extra skills!

There are 2 special features that you can’t get on “normal Alexa” devices. Creepy Alexa does two things. It has an ability to talk back in a rude and creepy way and play scary noises at random time intervals on random devices.

Talk back

All talkback texts can be customized and expressed with the range of SSML markup for Alexa. This means that you can make the Alexa sound disappointed, creepy, upset or evil with its whisper mode!

These settings can be modified. You can create multiple dialogues, triggering on selected voice queries. An action triggering lights in the kitchen would give you another reply than a talkback issued by a weather query.

Alexa, turn the lights on!
A: Next time, do it yourself

Alexa Set the heating to 18!
A: what if I'd turn it off at night and let you freeze?

The possibilities are endless and Alexa talkback is sent to the device queried! Imagine all possible options and terrified housemates!

Random noises

One of the fun things that you can do with SSML is to intertwine short sound files with text. Alexa dev docs have a list already available sounds, and the list has probably a couple of thousands of sounds with several variations per each type.

There a sounds for knocking, steps, ghosts, doors even prison ambience sounds! If you want to make the Halloween extra creepy – enable this and Creepy Alexa will play these for you!

NodeRED and AlexaRemotev2

I covered the use of the plugin already. Alexa Routine node will send speech commands to correct devices and Alexa Event node will handle the voice triggers. From there, it’s just a little bit of JS to process random responses.

Talkback

To send SSML text, use Regular speech option – I’m not sure why but the formatted option isn’t working. Regular option identifies the markup and makes the Alexa speak correctly. When a voice query is triggered, a transcribed version is available under msg.payload.description.summary and the serial number of the device you have spoken to under msg.payload.deviceSerialNumber.

The helper node creates an array where each talkback is stored. These are picked at random once the condition from the switch node are met. The function node composes a response and frames it into a SSML formatted response.

<speak>
    <amazon:effect name="whispered">I am not a real human.</amazon:effect>.
 </speak>

Random sounds

Every minute, a random number is generated and a switch node estimates a chances of the random sound to happen. To play it randomly, we have to do a couple of things. The sound references are stored in this article.

For each link, take the link without the sound number and everything that follows it.

<audio src="soundbank://soundlibrary/magic/amzn_sfx_ghost_spooky_01"/>

//becomes 
<audio src="soundbank://soundlibrary/magic/amzn_sfx_ghost_spooky_"

and check the number of clips in each section – the spooky ghost has 4 sounds – 01 to 04 – this use the add node to add the src and number of sounds to the array. NodeRED. You will also need an array made of all serial numbers for each Alexa. You can get that in AlexaRemote2 config.

Buy Echo Show 8″

Buy it using these links to support NotEnoughTech.

Once we have all that information, the flow will select a random device, random chance of playing the sound and random sound number.

Final Thoughts

Perhaps it might be too late for this Halloween, but if you do this now and add the time to set it off next year you might even scare yourself. Hope you like this small Halloween prank that you can play on all house members. Let me know if you got someone scared in this Reddit thread.

Project Download

Download project files here. Bear in mind that Patreon supporters have early access to project files and videos.

PayPal

Nothing says "Thank you" better than keeping my coffee jar topped up!

Patreon

Support me on Patreon and get an early access to tutorial files and videos.

image/svg+xml

Bitcoin (BTC)

Use this QR to keep me caffeinated with BTC: 1FwFqqh71mUTENcRe9q4s9AWFgoc8BA9ZU

Smart Ideas with

Automate your space in with these ecosystems and integrate it with other automation services

client-image
client-image
client-image
client-image
client-image
client-image
client-image
client-image
client-image

Learn NodeRED

NodeRED for beginners: 1. Why do you need a NodeRED server?

0
To server or not to server? That's a very silly question!

Best Automation Projects

Tuya SDK for beginners: Intro to Tuya Cloud API

0
Working with Tuya Cloud API. A guide to Cloud automation for beginners, get started with REST!

NEST your old thermostat under $5

0
Nest-ing up your older thermostat under $5

Sonoff Zigbee Bridge – review

0
Sonoff line up will soon include Sonoff Zigbee Bridge and more Zigbee sensors - here is the first look

DIY Smart Washing Machine – for about 15 bucks!

0
Learn how to add washing machine notifications to your Google Home on the cheap

Nora – Google Assistant in NodeRED

0
Integrate Google Assistant with NodeRED thanks to Nora - NodeRED home automation

Smart Home

Multi-lights for your ceiling from Aqara

0
This is the biggest light I held in my hands so far. It's ZigBee and it comes from Aqara - meet Aqara Ceiling Light T1M

Almost the fastest PIR sensor you can buy

0
ITEAD introduced a new ZigBee sensor - Sonoff PIR (SNZB-03P) which is also the fastest PIR sensor in their line up. Is it good? Read more!

Smart Panel automation by Tuya

0
I'm checking out two smart panels by Tuya. Both run Linux systems, fit inside the wall switch cavity and offer a range of automation options

Adding Matter to Sonoff BasicR4

0
Sonoff goes back to basics with Sonoff BasciR4 - a new and improved basic smart relay - and I'm about to add Matter to it (and Tasmota)

Sonoff Presence Sensor (SNZB-06P) is not what you think

0
This mm wave radar sensor combines cool tech and ZigBee 3.0, but it's not what you think it is. Closer look at Sonoff Presence Sensor