Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to set input to other audio device,than default.

3 views
Skip to first unread message

cornelyus

unread,
Dec 10, 2009, 1:07:01 PM12/10/09
to
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

unread,
Dec 13, 2009, 1:41:49 AM12/13/09
to
=?Utf-8?B?Y29ybmVseXVz?= <corn...@discussions.microsoft.com> wrote in
news:08C9A414-4B64-4204...@microsoft.com:

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>-

Chris Lenover

unread,
Dec 15, 2009, 4:08:42 PM12/15/09
to
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

unread,
Dec 17, 2009, 12:31:01 PM12/17/09
to

Thanks for your reply.. will look to that tip soon.

cornelyus

unread,
Dec 17, 2009, 12:33:02 PM12/17/09
to
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

unread,
Jan 22, 2010, 9:58:01 AM1/22/10
to
What about choosing the output other than the default?
0 new messages