Author Topic: Play Sound or text to Speech when Toggle VoiceAttack Listening ?  (Read 911 times)

bushido

  • Newbie
  • *
  • Posts: 10
Hello, I assigned a joystick press to Toggle VoiceAttack Listening. I'd like to get a sound notification when on and off so when in VR, I don't need to look through my nose to see if its listening or not.

Is it possible and if so, how?
Thanks

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4781
  • RTFM
Re: Play Sound or text to Speech when Toggle VoiceAttack Listening ?
« Reply #1 on: October 19, 2022, 01:23:06 PM »
The "Feature On Sound" and "Feature Off Sound", as configured in their respective dropdowns on the "Audio" tab of the VoiceAttack options window, should play when the listening state is changed.

Custom sounds (which will affect all feature toggles, just like the dropdowns do) for those can be placed in VoiceAttack's installation directory, named "sys_on.wav" and "sys_off.wav" (they do need to be WAVE-format files, not MP3 or anything else)


If you'd like to use text-to-speech, the simplest way would be to use a command to toggle the listening state, rather than the built-in "Joystick Button Recognition" option.

E.G.
Code: [Select]
Toggle VoiceAttack listening
Begin Text Compare : [{STATE_LISTENING}] Equals '1'
    Say, 'Listening enabled'
Else
    Say, 'Listening suspended'
End Condition

bushido

  • Newbie
  • *
  • Posts: 10
Re: Play Sound or text to Speech when Toggle VoiceAttack Listening ?
« Reply #2 on: October 19, 2022, 01:29:41 PM »
:D
Feature on sound, I love it!