Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method adds the current text to the transcript.
HRESULT AppendTranscript(const WCHAR* pszTranscript);
Parameters
- pszTranscript
[in] Pointer to the text of the transcript. If**NULL, the current transcript is deleted. Otherwise, the text is appended to the current transcript.
Return Values
The following table shows the possible return values.
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | pszTranscript is bad or invalid. |
E_OUTOFMEMORY | Exceeded available memory. |
FAILED(hr) | Appropriate error message. |
Example
The following code snippet illustrates the use of this method.
HRESULT hr = S_OK;
// Bind a stream to an existing wavefile
hr = SPBindToFile( FILENAME, SPFM_CREATE_ALWAYS, &cpStream);
// Check hr
hr = cpStream.QueryInterface(&cpTranscript);
// Check hr
hr = cpTranscript->AppendTranscript(L"this is a test");
// Check hr
Requirements
OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h, Sapi.idl.
Link Library: Sapilib.lib.
See Also
ISpTranscript | SAPI Interfaces
Send Feedback on this topic to the authors