UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

28 lines (27 loc) 1.23 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AzureSpeechToCaptionsSettings = void 0; const Mapper_1 = require("../common/Mapper"); const AzureSpeechServicesCredentials_1 = require("./AzureSpeechServicesCredentials"); /** * @export * @class AzureSpeechToCaptionsSettings */ class AzureSpeechToCaptionsSettings { constructor(obj) { if (!obj) { return; } this.azureSpeechServicesCredentials = (0, Mapper_1.map)(obj.azureSpeechServicesCredentials, AzureSpeechServicesCredentials_1.default); this.region = (0, Mapper_1.map)(obj.region); this.apiEndpoint = (0, Mapper_1.map)(obj.apiEndpoint); this.language = (0, Mapper_1.map)(obj.language); this.captionDelay = (0, Mapper_1.map)(obj.captionDelay); this.captionRemainTime = (0, Mapper_1.map)(obj.captionRemainTime); this.captionMaxLineLength = (0, Mapper_1.map)(obj.captionMaxLineLength); this.captionLines = (0, Mapper_1.map)(obj.captionLines); this.profanityOption = (0, Mapper_1.map)(obj.profanityOption); } } exports.AzureSpeechToCaptionsSettings = AzureSpeechToCaptionsSettings; exports.default = AzureSpeechToCaptionsSettings;