SpeechSynthesisCancellationDetails.fromResult(SpeechSynthesisResult result) Method

Definition

Creates an instance of SpeechSynthesisCancellationDetails object for the canceled SpeechSynthesisResult.

public static com.microsoft.cognitiveservices.speech.SpeechSynthesisCancellationDetails fromResult(SpeechSynthesisResult result)

Parameters

result
SpeechSynthesisResult

The speech synthesis result that was canceled.

Returns

The cancellation details object being created.

Applies to