Ok.. so I have a speech recognition App, and I always do this to reference
my default device, it is the one chosen in Control Panel under Speech menu.
Is there a way of not choosing this one, but another?
Because i have a soundcard from the computer, and an exterior USB
soundcard.. and I want to use the USB one always even if on control panel the
selected one is the PC soundcard.
I was lookinf for the methods of SpeechRecognitionEngine to see if i could
reach some conclusion
SetInputToAudioStream
SetInputToWaveFile
SetInputToWaveStream
So the SetInputToWaveFile only works for files.
That leaves the other two.. is it possible to select an audio input stream,
and make it the input on one of these methods? Or this too has to be some
audio file? I looked almost everywhere and can't find info on this.
Thanks in advance
I'm not a programmer, so I can't help with the code.
However, i've been looking into using multiple soundcards and found that
it should (theoretically) be possible for separated output. So I assume
the same applies to input.
I know of several audio players/recorders that allow you to choose a
sound driver independent from Windows.
If I were you, i'd try to find an Open-source one, and look in the source
how they solved the problem. (Maybe VLC, Mediaplayer Classic, or
VirtualDub?)
But if it is only for your own machine, an easier way might be Virtual
Audio Cable:
http://software.muzychenko.net/eng/vac.html
If it works at all, the free limited edition should be sufficient.
Good luck
--
+0==)]::::::::::::::::::::::::::::>
<MBB>-
Here's how I did it:
Create an instance of ISpeechMMSysAudio called AudioIn
Set AudioIn.DeviceID to your audio device ID
Set AudioIn.Format to the desired audio format
Using an instance of ISpeechRecognizer called Recognizer, set the
following properties:
Recognizer.AllowAudioInputFormatChangesOnNextSet := false;
Recognizer.AudioInputStream := AudioIn;
Chris
Because i am using 5.3..
Anyway.. found this.. can be helpful for other people..