@euirim/microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
22 lines (20 loc) • 764 B
JavaScript
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
/**
* Defines the possible reasons a recognition result might be canceled.
* @class CancellationReason
*/
export var CancellationReason;
(function (CancellationReason) {
/**
* Indicates that an error occurred during speech recognition.
* @member CancellationReason.Error
*/
CancellationReason[CancellationReason["Error"] = 0] = "Error";
/**
* Indicates that the end of the audio stream was reached.
* @member CancellationReason.EndOfStream
*/
CancellationReason[CancellationReason["EndOfStream"] = 1] = "EndOfStream";
})(CancellationReason || (CancellationReason = {}));
//# sourceMappingURL=CancellationReason.js.map