Microsoft Speech Platform
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 | Description |
---|---|
S_OK | Function completed successfully. | 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.