@voice-ping/cognitive-services-speech
Version:
VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft
93 lines (91 loc) • 3.78 kB
JavaScript
;
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var RestConfigBase_1 = require("../../common.browser/RestConfigBase");
var ConversationConnectionConfig = /** @class */ (function (_super) {
__extends(ConversationConnectionConfig, _super);
function ConversationConnectionConfig() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(ConversationConnectionConfig, "host", {
get: function () {
return ConversationConnectionConfig.privHost;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ConversationConnectionConfig, "apiVersion", {
get: function () {
return ConversationConnectionConfig.privApiVersion;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ConversationConnectionConfig, "clientAppId", {
get: function () {
return ConversationConnectionConfig.privClientAppId;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ConversationConnectionConfig, "defaultLanguageCode", {
get: function () {
return ConversationConnectionConfig.privDefaultLanguageCode;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ConversationConnectionConfig, "restPath", {
get: function () {
return ConversationConnectionConfig.privRestPath;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ConversationConnectionConfig, "webSocketPath", {
get: function () {
return ConversationConnectionConfig.privWebSocketPath;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ConversationConnectionConfig, "speechHost", {
get: function () {
return ConversationConnectionConfig.privSpeechHost;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ConversationConnectionConfig, "speechPath", {
get: function () {
return ConversationConnectionConfig.privSpeechPath;
},
enumerable: true,
configurable: true
});
ConversationConnectionConfig.privHost = "dev.microsofttranslator.com";
ConversationConnectionConfig.privRestPath = "/capito/room";
ConversationConnectionConfig.privApiVersion = "2.0";
ConversationConnectionConfig.privDefaultLanguageCode = "en-US";
ConversationConnectionConfig.privClientAppId = "FC539C22-1767-4F1F-84BC-B4D811114F15";
ConversationConnectionConfig.privWebSocketPath = "/capito/translate";
ConversationConnectionConfig.privSpeechHost = "{region}.s2s.speech.microsoft.com";
ConversationConnectionConfig.privSpeechPath = "/speech/translation/cognitiveservices/v1";
return ConversationConnectionConfig;
}(RestConfigBase_1.RestConfigBase));
exports.ConversationConnectionConfig = ConversationConnectionConfig;
//# sourceMappingURL=ConversationConnectionConfig.js.map