Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpPhrase2::GetAudio
ISpPhrase2::GetAudio returns the retained audio for a recognized phrase.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetAudio(</strong> <strong> ULONG</strong> <em>ulStartElement</em>, <strong> ULONG</strong> <em>cElements</em>, <strong> <a runat="server" href="jj127807(v=msdn.10).md">ISPStreamFormat</a></strong> **<em>ppStream</em> <strong>);</strong> </pre>
Parameters
- ulStartElement
Index of the first spphrase element for which to return audio. - cElements
The number of elements for which to return audio. - 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.