fred
2009-06-09 21:13:59 UTC
Hi,
All my hopes are with this group :)
microsoft.public.win32.programmer.mmedia looks like it is on the death bed.
and google search is not the help either.
SAPI SDK is not to clear on this subject I need your help with.
I am using text-to-speech (SAPI5) in my app.
From SAPI 5 SDK:
==================
Set up SAPI audio input/output
To transmit voice data over telecommunications devices using SAPI, it is
very important to set up the audio input and output to the specific audio
device correctly. The following are examples of how to set the audio output
and input in C++ and Visual Basic, respectively.
To set the audio output object for TTS in C/C++, use the following steps:
Create an ISpeechMMSysAudio audio object.
Retrieve the wav/out device identifier and set it to the audio object
calling ISpMMSysAudio::SetDeviceId().
Find the wav format that your audio device supports and assign it to the
audio object using ISpMMSysAudio::SetFormat().
Call ISpVoice::SetOutput () to inform the TTS engine of the audio object.
==================
As far as I understand that, it means that TTS output must be the wav/out
device.
I need to redirect TTS output to the port (to create a TCIP server).
Another quote from SAPI 5 SDK:
=======================
Audio input/output devices
If your audio input or output source is not a standard windows Multimedia
device, you need to create an audio object first and then call SAPI SetInput
and SetOutput to the device (see the Set Audio Input and Output to an Audio
section of this paper). Your application will not work if you simply select
your wave In/Out device as the default audio input or output device using
Speech properties in Control Panel.
=======================
How to approach that problem?
How to create an audio object knowing the TCIP port?
Your comments are appreciated,
Fred
All my hopes are with this group :)
microsoft.public.win32.programmer.mmedia looks like it is on the death bed.
and google search is not the help either.
SAPI SDK is not to clear on this subject I need your help with.
I am using text-to-speech (SAPI5) in my app.
From SAPI 5 SDK:
==================
Set up SAPI audio input/output
To transmit voice data over telecommunications devices using SAPI, it is
very important to set up the audio input and output to the specific audio
device correctly. The following are examples of how to set the audio output
and input in C++ and Visual Basic, respectively.
To set the audio output object for TTS in C/C++, use the following steps:
Create an ISpeechMMSysAudio audio object.
Retrieve the wav/out device identifier and set it to the audio object
calling ISpMMSysAudio::SetDeviceId().
Find the wav format that your audio device supports and assign it to the
audio object using ISpMMSysAudio::SetFormat().
Call ISpVoice::SetOutput () to inform the TTS engine of the audio object.
==================
As far as I understand that, it means that TTS output must be the wav/out
device.
I need to redirect TTS output to the port (to create a TCIP server).
Another quote from SAPI 5 SDK:
=======================
Audio input/output devices
If your audio input or output source is not a standard windows Multimedia
device, you need to create an audio object first and then call SAPI SetInput
and SetOutput to the device (see the Set Audio Input and Output to an Audio
section of this paper). Your application will not work if you simply select
your wave In/Out device as the default audio input or output device using
Speech properties in Control Panel.
=======================
How to approach that problem?
How to create an audio object knowing the TCIP port?
Your comments are appreciated,
Fred