Discussion:
how to set input to other audio device,than default.
(too old to reply)
cornelyus
2009-12-10 18:07:01 UTC
Permalink
Hello

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
MBB
2009-12-13 06:41:49 UTC
Permalink
Post by cornelyus
Hello
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>-
cornelyus
2009-12-17 17:31:01 UTC
Permalink
Thanks for your reply.. will look to that tip soon.
Chris Lenover
2009-12-15 21:08:42 UTC
Permalink
Hi cornelyus,

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
cornelyus
2009-12-17 17:33:02 UTC
Permalink
Are u talking about SAPI 5.1?

Because i am using 5.3..

Anyway.. found this.. can be helpful for other people..

http://gotspeech.net/forums/thread/7424.aspx
cornelyus
2010-01-22 14:58:01 UTC
Permalink
What about choosing the output other than the default?
Post by cornelyus
Are u talking about SAPI 5.1?
Because i am using 5.3..
Anyway.. found this.. can be helpful for other people..
http://gotspeech.net/forums/thread/7424.aspx
Loading...