ISpMMSysAudio (SAPI 5.3)
Microsoft Speech API 5.3
ISpMMSysAudio
This is the interface to the audio implementation for the standard Windows multimedia layer (wave in and wave out). Audio objects created through an object token do not allow ISpMMSysAudio::SetDeviceId to work because the token specifies which audio device ID to use. If an application wants to associate an audio object with a specific multimedia wave in or wave out device ID, it should use CoCreateInstance with CLSID_SpMMAudioOut or CLSID_SpMMAudioIn and then use the ISpMMSysAudio::SetDeviceId method to select the device. In normal application development, this will not be necessary for two reasons:
- Desktop applications will generally use the shared recognizer instance which automatically uses the default audio device. This cannot be changed.
- For the InProc recognizer instance, the audio device will attempt to use the default device id automatically.
For input devices, SAPI will attempt to automatically identify the microphone line on the input device. On non-English versions of Windows and on a small number of English systems, it may not be possible for SAPI to automatically detect the correct microphone line. In this case, no error will be detected or returned. In such cases, if speech input is not correctly detected, the user must set the microphone input line directly using Speech properties in Control Panel-->Speech Recognition tab-->Audio Input Settings-->Properties. In particular, it may be necessary to adjust the microphone input line used on devices with multiple microphone inputs such as the SoundBlaster Live Platinum because the default input line may not be the input preferred by the user.
Implemented By
Methods in Vtable Order
ISpMMSysAudio Methods |
ISpStreamFormat interface |
ISpAudio interface |
GetDeviceId |
SetDeviceId |
GetMMHandle |
GetLineId |
SetLineId |
IStream functions as inherited from ISpAudio
Please see the MSDN IStream interface topic for a complete description of the IStream interface.
IStream Methods |
Seek |
SetSize |
CopyTo |
Commit |
Revert |
LockRegion |
UnlockRegion |
Stat |
Clone |