21

I am currently using fauxmo to send custom commands to various devices to turn them on/off (For instance I have a WiFi to IR converter to control my Tuner & TV) and I can turn the tv on/off with this.

I also have Kodi integration setup, so I can say:

Alexa, Ask Kodi to set volume to 50%

But I'd like to be able to say:

Alexa, Set tuner volume to 50%
Alexa, Play Bluray

I.e. I want to be able to control devices without needing an Ask xxxx as part of my request.

Ideally I want to do this without a cloud-based service (i.e. SmartThings or Wink).

I like the solution used by fauxmo (emulate an existing UPNP service), but it is limited to on/off (and 'dim' if you use the Hue enabled patch) and not really flexible enough.

5 Answers 5

11

I've been exploring dropping the invocation name for Alexa custom skills myself for a couple of projects. And what I came up with after hours of reading through guides and documentations is that... It can't be done for custom skills.

So, your best bet for your use case is to use Alexa Smart Home along with some smart home service. I know you said:

Ideally I want to do this without a cloud-based service (i.e. SmartThings or Wink)

Unfortunately, the only way to not have an invocation name with Alexa is to use their predefined APIs (i.e. Smart Home, List Skill, & Flash Briefing).

EDIT: Your use case falls within the Smart Home API though. So you can always create your own service that consumes that API instead on relying on other services (Wink, SmartThings, etc).

5
  • 1
    Is there a source that says it can't be done, or is it the implicit result of your research?
    – Helmar
    Dec 14, 2016 at 10:55
  • It's just implicit. Although in hind sight, considering how voice recognition and NLP work, it should have been a reasonable assertion and I shouldn't have gone into such a research on the first place. It's a reasonable assertion because a particular utterance needs a context for which it would be interpreted - and that context is the invocation name. In fact, the very reason there is a wake word is the same as having an invocation name - so that statements that would be interpreted belong to a context (the wake word is the system wide context such that random utterances are not processed). Dec 14, 2016 at 11:24
  • The only way to have utterances that don't need invocation names are those with system wide contexts (these are the APIs). For instance, utterances that Alexa interprets as interacting with appliances would automatically be for smart home API - NLP would categorize the utterance as such using keywords like on, off, turn down, etc + syntax that is like a command to an appliance. Dec 14, 2016 at 11:25
  • But you know what... your use case falls under the smart home API. So I'll append my answer because you can just use that API. Dec 14, 2016 at 11:43
  • Thanks. I was reading about the Smart Home Skills, and while I don't think they'll be able to do everything I want to yet, it looks like Amazon plans on adding more capabilities to it. So rather than fauxmo, I think it may be worth investing in a proper open-source Smart Home Skill that can process all available commands and be expandable to the future. Here is the current API for posterity: developer.amazon.com/public/solutions/alexa/alexa-skills-kit/… Dec 14, 2016 at 17:50
8

You should be able to do this now with Alexa's name free interaction.

To make your skill more discoverable for name-free interaction, you can implement the the CanFulfillIntentRequest interface in your skill

1
  • It looks like this is available in public Beta, and only for skills "previously published as a live skill and has established a history of high quality and customer engagement". Just implementing canFulfilRequest won't do the magic. Feb 9 at 10:29
6

As lynx already details in his answer, there is no way to go completely without invocation name unless you're addressing the predefined APIs. However ask my skill is not the only way to use the invocation name.

The developer pages offer three different ways to use invocation names with a request.

“Alexa, Ask Daily Horoscopes for Gemini”

“Alexa, Talk to Daily Horoscopes and give me the horoscope for Taurus”

“Alexa, give me my Taurus horoscope using Daily Horoscopes

Alexa invocation name documentation

Furthermore this page shows what other words you can use to connect the request, the invocation name and the mandatory connection words. Thus, if you do create your own Alexa skill it's all about using a good invocation name and a good request to make it sound natural.

Even better, your echo should already react to this by starting the Blu-ray with your Kodi integration.

Alexa, play Blu-ray with Kodi.

So, while you cannot get rid of the invocation name outside the predefined APIs you can make the voice command feel more natural and skip the awkward ask ... usage.

2

If you use special words not used by default by Alexa, it is actually possible. The method is quite tricky anyway.

You just need to avoid passing by AWS for your request! Impossible you say? Yes—it is possible.

In your Amazon Alexa app or on the Amazon Alexa web app, you log in in your Amazon Alexa account, and in --> settings --> history your have a live page of all requests and words that you will tell Alexa.

At this moment, you can use a web parser to get the word said and trigger a script if this word is the one you want, or you can use some amazing small software for Windows only that can trigger actions and scripts.

Here the link of the software. Check on YouTube for tutorials on how to use addtopad.

If you want to launch scripts, just trigger a listener on a port and a special request sent after a word in the software. I use it at home and I really like the fact of not having to say any invocation name.

After, as I said, you can use any words, even words like open. It will trigger your script, but you will hear a "sorry, I don't know that" from Alexa.

I use it and it work perfectly!

2
  • That's an interesting approach.
    – Helmar
    Oct 3, 2017 at 16:47
  • Should we trust that software? Makes me twitchy... Oct 3, 2017 at 20:03
-2

So is this Amazon documentation not true? https://developer.amazon.com/docs/custom-skills/understanding-how-users-invoke-custom-skills.html#invoking-a-skill-with-no-specific-request-no-intent

This seems to say fairly directly that you can say "Alexa" plus the invocation name. Such as "Alexa, Daily Horoscopes".

It also shows this method as a option #3 for custom skills: https://developer.amazon.com/docs/custom-skills/choose-the-invocation-name-for-a-custom-skill.html#invoking-custom-skills

1
  • 3
    The documentation is true, but I don't think that's what the author is looking for here. For example, "Play Bluray" wouldn't be the invocation name — rather it is an intent, without any invocation name specified. Unless you actually named your skill "Play Bluray" (which probably wouldn't be allowed per Amazon's name guidance), this won't work, unfortunately.
    – Aurora0001
    Feb 8, 2018 at 20:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.