@voice-ping/cognitive-services-speech
Version:
VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft
1 lines • 1.77 kB
Source Map (JSON)
{"version":3,"sources":["src/sdk/SourceLanguageConfig.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,qBAAa,oBAAoB;IAC7B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,cAAc,CAAS;IAE/B,OAAO;IAMP;;;;;;;;;OASG;WACW,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,oBAAoB;IAIvF,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,UAAU,IAAI,MAAM,CAE9B;CACJ","file":"SourceLanguageConfig.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\nimport { Contracts } from \"./Contracts\";\n\n/**\n * Source Language configuration.\n * @class SourceLanguageConfig\n */\nexport class SourceLanguageConfig {\n private privLanguage: string;\n private privEndpointId: string;\n\n private constructor(language: string, endpointId?: string) {\n Contracts.throwIfNullOrUndefined(language, \"language\");\n this.privLanguage = language;\n this.privEndpointId = endpointId;\n }\n\n /**\n * @member SourceLanguageConfig.fromLanguage\n * @function\n * @public\n * @param {string} language language (eg. \"en-US\") value of config.\n * @param {string?} endpointId endpointId of model bound to given language of config.\n * @return {SourceLanguageConfig} Instance of SourceLanguageConfig\n * @summary Creates an instance of the SourceLanguageConfig with the given language and optional endpointId.\n * Added in version 1.13.0.\n */\n public static fromLanguage(language: string, endpointId?: string): SourceLanguageConfig {\n return new SourceLanguageConfig(language, endpointId);\n }\n\n public get language(): string {\n return this.privLanguage;\n }\n\n public get endpointId(): string {\n return this.privEndpointId;\n }\n}\n"]}