UNPKG

@voice-ping/cognitive-services-speech

Version:

VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft

30 lines (28 loc) 1.4 kB
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import { RecognitionResult } from "./Exports"; /** * Defines result of speech recognition. * @class SpeechRecognitionResult */ export class SpeechRecognitionResult extends RecognitionResult { /** * Creates and initializes an instance of this class. * @constructor * @public * @param {string} resultId - The result id. * @param {ResultReason} reason - The reason. * @param {string} text - The recognized text. * @param {number} duration - The duration. * @param {number} offset - The offset into the stream. * @param {string} language - Primary Language detected, if provided. * @param {string} languageDetectionConfidence - Primary Language confidence ("Unknown," "Low," "Medium," "High"...), if provided. * @param {string} errorDetails - Error details, if provided. * @param {string} json - Additional Json, if provided. * @param {PropertyCollection} properties - Additional properties, if provided. */ constructor(resultId, reason, text, duration, offset, language, languageDetectionConfidence, errorDetails, json, properties) { super(resultId, reason, text, duration, offset, language, languageDetectionConfidence, errorDetails, json, properties); } } //# sourceMappingURL=SpeechRecognitionResult.js.map