Share via


Note

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

Microsoft Speech Platform

ISpProperties::GetPropertyString

ISpProperties::GetPropertyString retrieves the string value corresponding to the specified key name.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetPropertyString(</strong> <strong>LPCWSTR</strong> *<em>pName</em>, <strong>WCHAR</strong> **<em>ppCoMemValue</em> <strong>);</strong> </pre>

Parameters

  • pName
    [in] Null-terminated string containing the property name. See Modify Speech Recognition Engine Properties for valid values.
  • ppCoMemValue
    [out] Address to store the pointer to the string value.
    The caller must call CoTaskMemFree() to free the string pointer.

Return Values

Value Description
S_OK Function completed successfully.
S_FALSE The speech recognition engine does not support specified property name.
E_INVALIDARG One or more parameters are invalid.
E_POINTER Value pointer is invalid.
FAILED(hr) The speech recognition engine returned specific error.