Share via


Note

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

Microsoft Speech Platform

ISpDataKey::SetStringValue

ISpDataKey::SetStringValue sets the string value information for a specified token.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT SetStringValue(</strong> <strong> LPCWSTR </strong> *<em>pszValueName</em>, <strong> LPCWSTR </strong> *<em>pszValue</em> <strong>);</strong> </pre>

Parameters

  • pszValueName
    Address of the null-terminated string specifying the name of the string value. If NULL, the default value of the token is used.
  • pszValue
    Address of a null-terminated string that contains the string value to be set for the specified key.

Return Values

Value Description
S_OK Function completed successfully.
E_INVALIDARG Either pszValueName or pszValue is invalid or bad.
FAILED(hr) Appropriate error message.