75155171163a97c99ef9bd367ad694f19a2c2fc7c4f8f53461013ecc924b1d4b.json 7.4 KB

1
  1. {"ast":null,"code":"\"use strict\";\n\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SpeechSynthesisWordBoundaryEventArgs = void 0;\n/**\n * Defines contents of speech synthesis word boundary event.\n * @class SpeechSynthesisWordBoundaryEventArgs\n * Added in version 1.11.0\n */\nclass SpeechSynthesisWordBoundaryEventArgs {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {number} audioOffset - The audio offset.\n * @param {number} duration - The audio duration.\n * @param {string} text - The text.\n * @param {number} wordLength - The length of the word.\n * @param {number} textOffset - The text offset.\n * @param {SpeechSynthesisBoundaryType} boundaryType - The boundary type\n */\n constructor(audioOffset, duration, text, wordLength, textOffset, boundaryType) {\n this.privAudioOffset = audioOffset;\n this.privDuration = duration;\n this.privText = text;\n this.privWordLength = wordLength;\n this.privTextOffset = textOffset;\n this.privBoundaryType = boundaryType;\n }\n /**\n * Specifies the audio offset.\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.audioOffset\n * @function\n * @public\n * @returns {number} the audio offset.\n */\n get audioOffset() {\n return this.privAudioOffset;\n }\n /**\n * Specifies the duration, in ticks (100 nanoseconds).\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.duration\n * @function\n * @public\n * @returns {number} Duration in 100 nanosecond increments.\n */\n get duration() {\n return this.privDuration;\n }\n /**\n * Specifies the text of the word boundary event.\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.text\n * @function\n * @public\n * @returns {string} the text.\n */\n get text() {\n return this.privText;\n }\n /**\n * Specifies the word length\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.wordLength\n * @function\n * @public\n * @returns {number} the word length\n */\n get wordLength() {\n return this.privWordLength;\n }\n /**\n * Specifies the text offset.\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.textOffset\n * @function\n * @public\n * @returns {number} the text offset.\n */\n get textOffset() {\n return this.privTextOffset;\n }\n /**\n * Specifies the boundary type.\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.boundaryType\n * @function\n * @public\n * @returns {SpeechSynthesisBoundaryType} the boundary type.\n */\n get boundaryType() {\n return this.privBoundaryType;\n }\n}\nexports.SpeechSynthesisWordBoundaryEventArgs = SpeechSynthesisWordBoundaryEventArgs;","map":{"version":3,"names":["Object","defineProperty","exports","value","SpeechSynthesisWordBoundaryEventArgs","constructor","audioOffset","duration","text","wordLength","textOffset","boundaryType","privAudioOffset","privDuration","privText","privWordLength","privTextOffset","privBoundaryType"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisWordBoundaryEventArgs.js"],"sourcesContent":["\"use strict\";\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SpeechSynthesisWordBoundaryEventArgs = void 0;\n/**\n * Defines contents of speech synthesis word boundary event.\n * @class SpeechSynthesisWordBoundaryEventArgs\n * Added in version 1.11.0\n */\nclass SpeechSynthesisWordBoundaryEventArgs {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {number} audioOffset - The audio offset.\n * @param {number} duration - The audio duration.\n * @param {string} text - The text.\n * @param {number} wordLength - The length of the word.\n * @param {number} textOffset - The text offset.\n * @param {SpeechSynthesisBoundaryType} boundaryType - The boundary type\n */\n constructor(audioOffset, duration, text, wordLength, textOffset, boundaryType) {\n this.privAudioOffset = audioOffset;\n this.privDuration = duration;\n this.privText = text;\n this.privWordLength = wordLength;\n this.privTextOffset = textOffset;\n this.privBoundaryType = boundaryType;\n }\n /**\n * Specifies the audio offset.\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.audioOffset\n * @function\n * @public\n * @returns {number} the audio offset.\n */\n get audioOffset() {\n return this.privAudioOffset;\n }\n /**\n * Specifies the duration, in ticks (100 nanoseconds).\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.duration\n * @function\n * @public\n * @returns {number} Duration in 100 nanosecond increments.\n */\n get duration() {\n return this.privDuration;\n }\n /**\n * Specifies the text of the word boundary event.\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.text\n * @function\n * @public\n * @returns {string} the text.\n */\n get text() {\n return this.privText;\n }\n /**\n * Specifies the word length\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.wordLength\n * @function\n * @public\n * @returns {number} the word length\n */\n get wordLength() {\n return this.privWordLength;\n }\n /**\n * Specifies the text offset.\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.textOffset\n * @function\n * @public\n * @returns {number} the text offset.\n */\n get textOffset() {\n return this.privTextOffset;\n }\n /**\n * Specifies the boundary type.\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.boundaryType\n * @function\n * @public\n * @returns {SpeechSynthesisBoundaryType} the boundary type.\n */\n get boundaryType() {\n return this.privBoundaryType;\n }\n}\nexports.SpeechSynthesisWordBoundaryEventArgs = SpeechSynthesisWordBoundaryEventArgs;\n\n"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACAA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,oCAAoC,GAAG,KAAK,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA,MAAMA,oCAAoC,CAAC;EACvC;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIC,WAAWA,CAACC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,UAAU,EAAEC,UAAU,EAAEC,YAAY,EAAE;IAC3E,IAAI,CAACC,eAAe,GAAGN,WAAW;IAClC,IAAI,CAACO,YAAY,GAAGN,QAAQ;IAC5B,IAAI,CAACO,QAAQ,GAAGN,IAAI;IACpB,IAAI,CAACO,cAAc,GAAGN,UAAU;IAChC,IAAI,CAACO,cAAc,GAAGN,UAAU;IAChC,IAAI,CAACO,gBAAgB,GAAGN,YAAY;EACxC;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIL,WAAWA,CAAA,EAAG;IACd,OAAO,IAAI,CAACM,eAAe;EAC/B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIL,QAAQA,CAAA,EAAG;IACX,OAAO,IAAI,CAACM,YAAY;EAC5B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIL,IAAIA,CAAA,EAAG;IACP,OAAO,IAAI,CAACM,QAAQ;EACxB;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIL,UAAUA,CAAA,EAAG;IACb,OAAO,IAAI,CAACM,cAAc;EAC9B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIL,UAAUA,CAAA,EAAG;IACb,OAAO,IAAI,CAACM,cAAc;EAC9B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIL,YAAYA,CAAA,EAAG;IACf,OAAO,IAAI,CAACM,gBAAgB;EAChC;AACJ;AACAf,OAAO,CAACE,oCAAoC,GAAGA,oCAAoC","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}