Microsoft Speech SDK
SAPI 5.1
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.
HRESULT GetVoice(
ISpObjectToken **ppToken
);
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. |