Wednesday, November 26, 2014

Windows Vista /7 command line to launch the "Set up your microphone" wizard (or a mic test wizard)



I'm putting together instructions for our users to test their microphones. Vista and 7 changed the Sound Recorder so it doesn't play back sound. Hence it's not good for testing sound (they have to save the file, find it, open it, inevitably get the Windows Media Player "first time" experience... at which time they've forgotten what they were doing).



The only other option I see for testing the Microphone is to click Start> Control Panel> Sound> Microphone > Configure> Set up Microphone (and hope that they don't have their Control panel in Classic setup.



I know there are ways to launch the Sound dialog via the command line like this.




Any ideas?


Answer



The Set up your Microphone wizard is hidden in the SpeechUX.dll. You can call SpeechUX.dll like so:



rundll32.exe "%windir%\system32\speech\speechux\SpeechUX.dll", RunWizard Tutorial (Speech Recognition Tutorial)
rundll32.exe "%windir%\system32\speech\speechux\SpeechUX.dll", RunWizard UserTraining (Voice Training)
rundll32.exe "%windir%\system32\speech\speechux\SpeechUX.dll", RunWizard MicTraining (Microphone Training)
rundll32.exe "%windir%\system32\speech\speechux\SpeechUX.dll", RunWizard UserEnrollment (Set Up Speech Recognition)



So you basically want:
rundll32.exe "%windir%\system32\speech\speechux\SpeechUX.dll", RunWizard MicTraining


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...