AutoVoice Fill Clipboard - without Tasker?

Discussion in 'AutoApps' started by pseudocyclic, Mar 1, 2018.

  1. pseudocyclic

    pseudocyclic New Member

    Joined:
    Dec 29, 2017
    Messages:
    18
    Likes Received:
    0
    Is the following possible, using AutoVoice (and any other AutoTools plugin), WITHOUT using Tasker? It's for use with MacroDroid, which can invoke AutoVoice/AutoTools as a plugin and which has a "Clipboard change" trigger.

    ● invoke Autovoice (Recognize?)
    ● get ad-hoc (spoken) command
    ● fill clipboard with (text of spoken) command

    I hope my question makes sense!

    I'm currently using the Speech to Clipboard app for this, but it doesn't support Bluetooth, which is a must-have for my application.

    I already have MacroDroid and AutoVoice working together nicely. It's just the capability to recognize any command and then 'paste' it to the clipboard that I need help with.
     
    Last edited: Mar 1, 2018
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Does MacroDroid support variables? If so you can simply use the AutoVoice variable after you invoke AutoVoice Recognize. :)
     
  3. pseudocyclic

    pseudocyclic New Member

    Joined:
    Dec 29, 2017
    Messages:
    18
    Likes Received:
    0
    Unfortunately, no, it does not, not in the context of interacting with other apps. Hence my wanting to use the clipboard to pass the text.

    I believe I would use 'No Match' to capture ad-hoc commands, yes?

    Is it possible to then pass the text to the clipboard without using Tasker?
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Unfortunaetly then it wouldn't be possible sorry :(
     
  5. pseudocyclic

    pseudocyclic New Member

    Joined:
    Dec 29, 2017
    Messages:
    18
    Likes Received:
    0
    The latest Macrodroid update has added a new 'Intent Received' trigger. Can I use that to get text from AutoVoice into MacroDroid (without needing Tasker)?
     
    Last edited: Mar 15, 2018
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    AutoVoice sends out a broadcast with the action

    Code (Text):
    "com.joaomgcd.autovoice.ACTION_AUTOVOICE_COMMAND"
    when a voice command is recognized :) Maybe you can use that.
     
  7. pseudocyclic

    pseudocyclic New Member

    Joined:
    Dec 29, 2017
    Messages:
    18
    Likes Received:
    0
    Thanks, that does indeed activate the MacroDroid 'Intent Received' trigger. :)

    Does the broadcast contain the text of the command?
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Yep, that's in an extra! :)

    "com.joaomgcd.autovoice.EXTRA_AUTOVOICE_COMMAND"
     
  9. pseudocyclic

    pseudocyclic New Member

    Joined:
    Dec 29, 2017
    Messages:
    18
    Likes Received:
    0
    Thanks! :)

    I passed this on to the MacroDroid dev and he's going to add the capability to store values from intent extras into MacroDroid variables to the MacroDroid Intent Received trigger.

    I'll update this thread when it's up and running.
     
  10. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Thank you.
     
  11. pseudocyclic

    pseudocyclic New Member

    Joined:
    Dec 29, 2017
    Messages:
    18
    Likes Received:
    0
    This is now up and running. :)
     
  12. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
  13. wysnney

    wysnney New Member

    Joined:
    May 1, 2020
    Messages:
    1
    Likes Received:
    0
    please help
     
: Clipboard

Share This Page