AUDIOSD Sample Differs from Speech Multimedia Audio Objects

Last reviewed: February 22, 1996
Article ID: 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:

   ARTICLE-ID: Q147122
   TITLE     : PRB: AUDIOSD Sample Returns E_FAIL from CoCreateInstance


Additional reference words: SAPI 1.00
KBCategory: kbmm kbprg
KBSubcategory: MMSpeech


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 22, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.