Microsoft KB Archive/147125

{|
 * width="100%"|

AUDIOSD Sample Differs from Speech Multimedia Audio Objects

 * }

Q147125

The information in this article applies to:


 * Microsoft Speech Software Development Kit (SDK) version 1.0

The AUDIOSD sample found in the Microsoft Speech SDK 1.0 contains sample code for audio source and destination objects that record from and play to the multmedia devices installed on the Windows system. The sample code is very similar to the code shipped by Microsoft for the CLSID_MMAudioSource and CLSID_MMAudioDest objects found in Speech.dll. However, there a couple of differences as follows:


 * Audiosd.dll does not contain code for the CLSID_SREnumerator or CLSID_TTSEnumerator objects found in Speech.dll. These objects can still be created and used as long as Speech.dll is also properly installed on the system.
 * Audiosd.dll does not contain code to properly use the WAVE_MAPPER constant as a parameter to IAudioMultimediaDevice::DeviceNumSet. For this reason, when using the CLSID_MyAudioSource or CLSID_MyAudioDest, DeviceNumSet must be called with an explicit device ID.

Additionally, to function properly, you must edit the AUDIOSD source code to reference the CLSID_MyAudioSource and CLSID_MyAudioDest objects instead of the CLSID_MMAudioSource and CLSID_MMAudioDest objects used by Speech.dll. For more information about this, please see the following article in the Microsoft Knowledge Base:

Q147122 PRB: AUDIOSD Sample Returns E_FAIL from CoCreateInstance

Additional query words: SAPI 1.00

Keywords : kbmm

Issue type :

Technology :