|
| Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab. |
You are reading help file online using chmlib.com
|
Microsoft Speech SDK
SAPI 5.1
ISpRecognizer::GetFormat
ISpRecognizer::GetFormat retrieves the current input audio format.
HRESULT GetFormat(
SPSTREAMFORMATTYPE WaveFormatType,
GUID *pFormatId,
WAVEFORMATEX **ppCoMemWFEX
);
Parameters
- WaveFormatType
- [in] One of the wave file format types specified in SPSTREAMFORMATTYPE.
- pFormatId
- [out] The address of the unique identifier associated with the format type.
- ppCoMemWFEX
- [out] Address of a pointer to a WAVEFORMATEX structure that receives the format information. This is set only if the input is of a wave format type. The application must free this data with CoTaskMemFree after use.
Return values
Value |
Description |
S_OK |
Function completed successfully. |
E_POINTER |
Invalid pointer. |
SPERR_UNINITIALIZED |
Audio input not yet set. |
FAILED(hr) |
Appropriate error message. |
Remarks
This method can return either the input format or the engine format. Normally these two values will be the same, but if SAPI is using a format converter to convert the input data from the audio input to the engine format these will be different.
You are reading help file online using chmlib.com
|
If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com