shanecolb / sphinx-ue4

A speech recognition plugin for Unreal Engine 4. This is essentially a port of Pocketsphinx, to be used within an Unreal Engine project.
The Unlicense
151 stars 81 forks source link

Is it possible to select a mic input besides the system default? #15

Open silentsilas opened 7 years ago

silentsilas commented 7 years ago

I'm using this plugin for a VR game, and I'm trying to set it so that it uses the Vive/Rift's mic by default, instead of the user's system default.

I've tried changing line 385 in SpeechRecognitionWorker.cpp from if ((ad = ad_open_dev(cmd_ln_str_r(config, "-adcdev"), to if ((ad = ad_open_dev(cmd_ln_str_r(config, "-adcdev hwplug:0,x"), where x is the index found for the Vive/Rift device. But it doesn't seem to be changing anything.

Do you know if/how this can be done?