VoiceAttack
General => How Do I? => Topic started by: tomeye on October 30, 2021, 09:17:06 AM
-
I have the G2 which requires unplugging power every time you do not use it anymore. This causes the sound recording device to disappear and re-appear when I connect again power cable.
Even though I have selected the G2 mic as default, every time I have to either re-select in voiceattack or restart the application to fix it.
-
You'll need to reset the speech recognition system, which can be done either using the "Reset Speech Recognition" option in the context menu for the main window's title bar (opened, for example, by clicking the logo in the top left-hand corner), the "ResetSpeechEngine()" method in an inline function, or by using the "Change Default Audio Devices" action to switch to the relevant device.
-
Thanks for that, is there any way I can automate? like a batch script or similar?
-
You could have a look at the "{STATE_DEFAULTRECORDING}", "{STATE_RECORDINGDEVICECOUNT}", and "{STATE_RECORDINGDEVICE:value}" tokens, to check for the presence of the relevant device, and to reset the speech recognition engine when it's connected.
You'd need to have a command looping in the background for that though.
-
What is happening is when you unplug your G2, Windows promotes another device on your system to be the default recording device. Since that device stays 'live', the speech instance is not dropped even if you plug your G2 back in. Unfortunately, the only current way to circumvent this is to disable your other recording devices. This can be done by going to Control Panel > Sound > Recording tab and right-click 'disable' on each device other than the G2.
You can also set up a hotkey to do what Pfeil had mentioned if you don't want a process just looping in the background all the time (although the looping/device check is a good suggestion).
-
I found the below command to work, although voiceattack was already running
VoiceAttack.exe -input "Microphone (Realtek USB2.0 Audio)"
-
The next beta will have some additional functionality to follow the default recording device when it changes, versus just sticking to the last device that's remaining active. Hoping to have something out in the next week.
-
That seems like a great feature for HMDs.