Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

ISpVoice::GetVoice

ISpVoice::GetVoice retrieves the object token that identifies the voice currently in use. If there is not a voice currently in use, this method will return the token for the default voice.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetVoice(</strong><a runat="server" href="jj127672(v=msdn.10).md"><strong>ISpObjectToken</strong></a> **<em>ppToken</em> <strong>);</strong> </pre>

Parameters

  • ppToken
    [out] Pointer which will be set to point to the current voice's object token. 

Return Values

Value Description
S_OK Function completed successfully.
E_POINTER ppToken is invalid.