ISpPhrase2::GetAudio (SAPI 5.3)
Microsoft Speech API 5.3
ISpPhrase2::GetAudio
ISpPhrase2::GetAudio returns the retained audio for the phrase.
HRESULT GetAudio(
ULONG ulStartElement,
ULONG cElements,
ISPStreamFormat **ppStream
);
Parameters
- ulStartElement
Index of the first spphrase element to return audio for. - cElements
The number of elements to return audio for. - ppStream
The returned audio.
Return values
Value |
S_OK |
E_NOTIMPL |
Not supported because the retained audio is in a different format from the engine's format. |
Remarks
This function should only be used on phrases that are being passed to the engine as part of alternates generation.