Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
::GetAudio
Collapse the table of content
Expand the table of content

ISpPhrase2::GetAudio (SAPI 5.3)

Speech API 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

ValueDescription
S_OKFunction 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.

Show:
© 2015 Microsoft