XSpeechSynthesizerGetStreamData
Retrieves the data from a speech synthesis stream.Syntax
Parameters
speechSynthesisStream _In_Type: XSpeechSynthesizerStreamHandle The speech synthesis stream that contains the data buffer. bufferSize _In_
Type: size_t The size of the buffer, in bytes, returned by XSpeechSynthesizerGetStreamDataSize. buffer _Out_writes_to_(bufferSize,bufferUsed)
Type: void A pointer to the data buffer that will receive the data. bufferUsed _Out_opt_
Type: size_t* The size of the data received in buffer, in bytes.
Return value
Type: HRESULT Returns S_OK if successful; otherwise, returns an error code. For a list of error codes, see Error Codes. If the function fails because speechSynthesisStream isn’t set to a valid speech synthesizer stream handle, the return value is set to HRESULT_FROM_WIN32(ERROR_NOT_FOUND).Remarks
This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
audio/wav MIME type) format.
For an example that demonstrates how to use the XSpeechSynthesizerGetStreamData function, see XSpeechSynthesizerCreate.
Requirements
Header: XSpeechSynthesizer.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesConceptual documentation
See also
XAccessibilityXSpeechSynthesizerGetStreamDataSize
XSpeechSynthesizer
