TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Voice words / parameters

    Scheduled Pinned Locked Moved General Discussion
    6 Posts 3 Posters 4.6k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • StrahanS Offline
      Strahan
      last edited by

      Hi! I just bought an Echo tonight, and the deciding factor was that I could control my PC when I Googled and saw your program. I've been playing with it, it's cool. However, I have one snag. I wanted to be able to launch videos from it, so I created a trigger "Die Hard", command was the path and filename of the video, voice was "die hard". I pronounced it as clearly as I could but it keeps saying "cannot find command die". Does it not support multiple word voice commands? I changed it to "die" and it worked.

      Also I was trying to find documentation on parameters and failing. Can you direct me? I'm wondering if I can create a command that is generic then pass parameters that I assume I say after the trigger word to launch the appropriate title. I just can't find any docs on how parameters work.

      I setup a trigger "video", with command "p:\utils\scripts\triggercmd.php video", voice "video" allow parameters true. My PHP script looks for parameter "diehard". I said "alexa, ask trigger c m d to run video diehard" and it said "could not find a command with voice word video hard on (pcname)". Am I misinterpreting how to use parameters?

      1 Reply Last reply Reply Quote 0
      • RussR Offline
        Russ
        last edited by Russ

        @Strahan,
        I haven't implemented a way to pass parameters with your voice yet. I'm willing to though, so please give me your ideas on how I should do it.

        I could program it to have Alexa expect a movie at a particular point in your spoken sentence, so here's one idea for your use case. I could have Alexa expect a movie title as parameter if you say:

        Alexa, ask TRIGGERcmd to play movie Z on Y
        Alexa, ask TRIGGERcmd to play movie Z  (runs on your default computer)
        

        It would run your command with voice word "movie" with a parameter that equals your spoken movie title.

        If I do that I might as well add this option too:

        Alexa, ask TRIGGERcmd to play song Z on Y
        Alexa, ask TRIGGERcmd to play song Z  (runs on your default computer)
        

        It would run your command with voice word "song" with a parameter that equals your spoken song title.

        For general purpose non-movie, non-song scenarios, I'm thinking this would be the pattern:

        Alexa, ask TRIGGERcmd to run X on Y with parameter Z
        Alexa, ask TRIGGERcmd to run X with parameter Z  (runs on your default computer)
        

        What do you think? If you can think of something better, let me know. My first idea is often not the best.

        I'll wait until I get some feedback before making a change.

        Also, about two-word voice commands - it's supposed to work, but Alexa seems to recognize single-word commands much better.

        Russell VanderMey

        StrahanS 1 Reply Last reply Reply Quote 0
        • StrahanS Offline
          Strahan @Russ
          last edited by

          Thanks. The generic usage method looks fine. I wouldn't think that a movie or whatever specific parameter would really be necessary; the people creating their commands will know what kind of input to expect and will handle it accordingly.

          I guess for now I'll just make "codewords" that do specific functions, heh. That'll work for now. Thanks again!

          RussR 1 Reply Last reply Reply Quote 0
          • RussR Offline
            Russ @Strahan
            last edited by

            @Strahan, thanks for the input. I'll add this to my todo list..

            Russell VanderMey

            ? 1 Reply Last reply Reply Quote 0
            • ? Offline
              [[global:former-user]] @Russ
              last edited by

              @russ Any update on this?

              RussR 1 Reply Last reply Reply Quote 0
              • RussR Offline
                Russ @Guest
                last edited by

                @parker-reed, yes actually, I did that a while ago. Sorry I never updated this thread.

                Here's the announcement:
                https://www.triggercmd.com/forum/topic/111/now-you-can-pass-parameters-to-your-alexa-commands

                Russell VanderMey

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post