Microsoft Speech Platform
ISpRecoResult2::SetTextFeedback
ISpRecoResult2::SetTextFeedback provides text to the operating system's built-in speech user experience's GUI to display to the user.
HRESULT SetTextFeedback(
LPCWSTR pszFeedback,
BOOL fSuccessful
);
Parameters
- pszFeedback
- The text to display.
- fSuccessful
- Indicates whether the recognition was acted on or rejected.
Return values
| Value | Description |
|---|---|
| S_OK | Function completed successfully. |
| E_INVALIDARG | pszFeedback is invalid. |
| FAILED(hr) | Appropriate error message. |