Author Topic: Add VA commands via python-script  (Read 1813 times)

Lunis

  • Newbie
  • *
  • Posts: 1
Add VA commands via python-script
« on: August 09, 2023, 02:50:48 AM »
Hey the question is basically how to make the title work. I want to add words chosen by my python script as commands in VoiceAttack. Is there a way to do that?
Thanks,
Lunis

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Add VA commands via python-script
« Reply #1 on: August 09, 2023, 02:59:05 AM »
Specifically creating whole commands (triggers, actions, and configuration): practically speaking, no.


If you're just looking to have phrases recognized by the speech recognition system, that could be done using a token and the "Wait For Spoken Response" action.

You could pass the information from your Python script using the "-PassedText" command line parameter, for example.


There is also an undocumented feature that allows the use of token in command phrases, which you could utilize, but that requires reloading the profile to apply any changes.