UNPKG

microsoft-cognitiveservices-speech-sdk

Version:
37 lines (36 loc) 1.28 kB
/** * Represents collection of parameters and their values. * @class Translations */ export declare class Translations { private privMap; /** * Get the languages in the object in a String array. * @member Translations.prototype.languages * @function * @public * @returns {string[]} languages in translations object. */ get languages(): string[]; /** * Returns the parameter value in type String. The parameter must have the same type as String. * Currently only String, int and bool are allowed. * If the name is not available, the specified defaultValue is returned. * @member Translations.prototype.get * @function * @public * @param {string} key - The parameter name. * @param {string} def - The default value which is returned if the parameter is not available in the collection. * @returns {string} value of the parameter. */ get(key: string, def?: string): string; /** * Sets the String value of the parameter specified by name. * @member Translations.prototype.set * @function * @public * @param {string} key - The parameter name. * @param {string} value - The value of the parameter. */ set(key: string, value: string): void; }