microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
238 lines (236 loc) • 11.3 kB
JavaScript
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpeechSynthesisOutputFormat = void 0;
/**
* Define speech synthesis audio output formats.
* @enum SpeechSynthesisOutputFormat
* Updated in version 1.17.0
*/
var SpeechSynthesisOutputFormat;
(function (SpeechSynthesisOutputFormat) {
/**
* raw-8khz-8bit-mono-mulaw
* @member SpeechSynthesisOutputFormat.Raw8Khz8BitMonoMULaw,
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Raw8Khz8BitMonoMULaw"] = 0] = "Raw8Khz8BitMonoMULaw";
/**
* riff-16khz-16kbps-mono-siren
* @note Unsupported by the service. Do not use this value.
* @member SpeechSynthesisOutputFormat.Riff16Khz16KbpsMonoSiren
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Riff16Khz16KbpsMonoSiren"] = 1] = "Riff16Khz16KbpsMonoSiren";
/**
* audio-16khz-16kbps-mono-siren
* @note Unsupported by the service. Do not use this value.
* @member SpeechSynthesisOutputFormat.Audio16Khz16KbpsMonoSiren
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Audio16Khz16KbpsMonoSiren"] = 2] = "Audio16Khz16KbpsMonoSiren";
/**
* audio-16khz-32kbitrate-mono-mp3
* @member SpeechSynthesisOutputFormat.Audio16Khz32KBitRateMonoMp3
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Audio16Khz32KBitRateMonoMp3"] = 3] = "Audio16Khz32KBitRateMonoMp3";
/**
* audio-16khz-128kbitrate-mono-mp3
* @member SpeechSynthesisOutputFormat.Audio16Khz128KBitRateMonoMp3
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Audio16Khz128KBitRateMonoMp3"] = 4] = "Audio16Khz128KBitRateMonoMp3";
/**
* audio-16khz-64kbitrate-mono-mp3
* @member SpeechSynthesisOutputFormat.Audio16Khz64KBitRateMonoMp3
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Audio16Khz64KBitRateMonoMp3"] = 5] = "Audio16Khz64KBitRateMonoMp3";
/**
* audio-24khz-48kbitrate-mono-mp3
* @member SpeechSynthesisOutputFormat.Audio24Khz48KBitRateMonoMp3
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Audio24Khz48KBitRateMonoMp3"] = 6] = "Audio24Khz48KBitRateMonoMp3";
/**
* audio-24khz-96kbitrate-mono-mp3
* @member SpeechSynthesisOutputFormat.Audio24Khz96KBitRateMonoMp3
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Audio24Khz96KBitRateMonoMp3"] = 7] = "Audio24Khz96KBitRateMonoMp3";
/**
* audio-24khz-160kbitrate-mono-mp3
* @member SpeechSynthesisOutputFormat.Audio24Khz160KBitRateMonoMp3
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Audio24Khz160KBitRateMonoMp3"] = 8] = "Audio24Khz160KBitRateMonoMp3";
/**
* raw-16khz-16bit-mono-truesilk
* @member SpeechSynthesisOutputFormat.Raw16Khz16BitMonoTrueSilk
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Raw16Khz16BitMonoTrueSilk"] = 9] = "Raw16Khz16BitMonoTrueSilk";
/**
* riff-16khz-16bit-mono-pcm
* @member SpeechSynthesisOutputFormat.Riff16Khz16BitMonoPcm
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Riff16Khz16BitMonoPcm"] = 10] = "Riff16Khz16BitMonoPcm";
/**
* riff-8khz-16bit-mono-pcm
* @member SpeechSynthesisOutputFormat.Riff8Khz16BitMonoPcm
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Riff8Khz16BitMonoPcm"] = 11] = "Riff8Khz16BitMonoPcm";
/**
* riff-24khz-16bit-mono-pcm
* @member SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Riff24Khz16BitMonoPcm"] = 12] = "Riff24Khz16BitMonoPcm";
/**
* riff-8khz-8bit-mono-mulaw
* @member SpeechSynthesisOutputFormat.Riff8Khz8BitMonoMULaw
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Riff8Khz8BitMonoMULaw"] = 13] = "Riff8Khz8BitMonoMULaw";
/**
* raw-16khz-16bit-mono-pcm
* @member SpeechSynthesisOutputFormat.Raw16Khz16BitMonoPcm
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Raw16Khz16BitMonoPcm"] = 14] = "Raw16Khz16BitMonoPcm";
/**
* raw-24khz-16bit-mono-pcm
* @member SpeechSynthesisOutputFormat.Raw24Khz16BitMonoPcm
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Raw24Khz16BitMonoPcm"] = 15] = "Raw24Khz16BitMonoPcm";
/**
* raw-8khz-16bit-mono-pcm
* @member SpeechSynthesisOutputFormat.Raw8Khz16BitMonoPcm
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Raw8Khz16BitMonoPcm"] = 16] = "Raw8Khz16BitMonoPcm";
/**
* ogg-16khz-16bit-mono-opus
* @member SpeechSynthesisOutputFormat.Ogg16Khz16BitMonoOpus
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Ogg16Khz16BitMonoOpus"] = 17] = "Ogg16Khz16BitMonoOpus";
/**
* ogg-24khz-16bit-mono-opus
* @member SpeechSynthesisOutputFormat.Ogg24Khz16BitMonoOpus
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Ogg24Khz16BitMonoOpus"] = 18] = "Ogg24Khz16BitMonoOpus";
/**
* raw-48khz-16bit-mono-pcm
* @member SpeechSynthesisOutputFormat.Raw48Khz16BitMonoPcm
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Raw48Khz16BitMonoPcm"] = 19] = "Raw48Khz16BitMonoPcm";
/**
* riff-48khz-16bit-mono-pcm
* @member SpeechSynthesisOutputFormat.Riff48Khz16BitMonoPcm
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Riff48Khz16BitMonoPcm"] = 20] = "Riff48Khz16BitMonoPcm";
/**
* audio-48khz-96kbitrate-mono-mp3
* @member SpeechSynthesisOutputFormat.Audio48Khz96KBitRateMonoMp3
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Audio48Khz96KBitRateMonoMp3"] = 21] = "Audio48Khz96KBitRateMonoMp3";
/**
* audio-48khz-192kbitrate-mono-mp3
* @member SpeechSynthesisOutputFormat.Audio48Khz192KBitRateMonoMp3
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Audio48Khz192KBitRateMonoMp3"] = 22] = "Audio48Khz192KBitRateMonoMp3";
/**
* ogg-48khz-16bit-mono-opus
* Added in version 1.16.0
* @member SpeechSynthesisOutputFormat.Ogg48Khz16BitMonoOpus
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Ogg48Khz16BitMonoOpus"] = 23] = "Ogg48Khz16BitMonoOpus";
/**
* webm-16khz-16bit-mono-opus
* Added in version 1.16.0
* @member SpeechSynthesisOutputFormat.Webm16Khz16BitMonoOpus
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Webm16Khz16BitMonoOpus"] = 24] = "Webm16Khz16BitMonoOpus";
/**
* webm-24khz-16bit-mono-opus
* Added in version 1.16.0
* @member SpeechSynthesisOutputFormat.Webm24Khz16BitMonoOpus
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Webm24Khz16BitMonoOpus"] = 25] = "Webm24Khz16BitMonoOpus";
/**
* raw-24khz-16bit-mono-truesilk
* Added in version 1.17.0
* @member SpeechSynthesisOutputFormat.Raw24Khz16BitMonoTrueSilk
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Raw24Khz16BitMonoTrueSilk"] = 26] = "Raw24Khz16BitMonoTrueSilk";
/**
* raw-8khz-8bit-mono-alaw
* Added in version 1.17.0
* @member SpeechSynthesisOutputFormat.Raw8Khz8BitMonoALaw
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Raw8Khz8BitMonoALaw"] = 27] = "Raw8Khz8BitMonoALaw";
/**
* riff-8khz-8bit-mono-alaw
* Added in version 1.17.0
* @member SpeechSynthesisOutputFormat.Riff8Khz8BitMonoALaw
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Riff8Khz8BitMonoALaw"] = 28] = "Riff8Khz8BitMonoALaw";
/**
* webm-24khz-16bit-24kbps-mono-opus
* Audio compressed by OPUS codec in a webm container, with bitrate of 24kbps, optimized for IoT scenario.
* Added in version 1.19.0
* @member SpeechSynthesisOutputFormat.Webm24Khz16Bit24KbpsMonoOpus
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Webm24Khz16Bit24KbpsMonoOpus"] = 29] = "Webm24Khz16Bit24KbpsMonoOpus";
/**
* audio-16khz-16bit-32kbps-mono-opus
* Audio compressed by OPUS codec without container, with bitrate of 32kbps.
* Added in version 1.20.0
* @member SpeechSynthesisOutputFormat.Audio16Khz16Bit32KbpsMonoOpus
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Audio16Khz16Bit32KbpsMonoOpus"] = 30] = "Audio16Khz16Bit32KbpsMonoOpus";
/**
* audio-24khz-16bit-48kbps-mono-opus
* Audio compressed by OPUS codec without container, with bitrate of 48kbps.
* Added in version 1.20.0
* @member SpeechSynthesisOutputFormat.Audio24Khz16Bit48KbpsMonoOpus
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Audio24Khz16Bit48KbpsMonoOpus"] = 31] = "Audio24Khz16Bit48KbpsMonoOpus";
/**
* audio-24khz-16bit-24kbps-mono-opus
* Audio compressed by OPUS codec without container, with bitrate of 24kbps.
* Added in version 1.20.0
* @member SpeechSynthesisOutputFormat.Audio24Khz16Bit24KbpsMonoOpus
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Audio24Khz16Bit24KbpsMonoOpus"] = 32] = "Audio24Khz16Bit24KbpsMonoOpus";
/**
* raw-22050hz-16bit-mono-pcm
* Raw PCM audio at 22050Hz sampling rate and 16-bit depth.
* Added in version 1.22.0
* @member SpeechSynthesisOutputFormat.Raw22050Hz16BitMonoPcm
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Raw22050Hz16BitMonoPcm"] = 33] = "Raw22050Hz16BitMonoPcm";
/**
* riff-22050hz-16bit-mono-pcm
* PCM audio at 22050Hz sampling rate and 16-bit depth, with RIFF header.
* Added in version 1.22.0
* @member SpeechSynthesisOutputFormat.Riff22050Hz16BitMonoPcm
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Riff22050Hz16BitMonoPcm"] = 34] = "Riff22050Hz16BitMonoPcm";
/**
* raw-44100hz-16bit-mono-pcm
* Raw PCM audio at 44100Hz sampling rate and 16-bit depth.
* Added in version 1.22.0
* @member SpeechSynthesisOutputFormat.Raw44100Hz16BitMonoPcm
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Raw44100Hz16BitMonoPcm"] = 35] = "Raw44100Hz16BitMonoPcm";
/**
* riff-44100hz-16bit-mono-pcm
* PCM audio at 44100Hz sampling rate and 16-bit depth, with RIFF header.
* Added in version 1.22.0
* @member SpeechSynthesisOutputFormat.Riff44100Hz16BitMonoPcm
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["Riff44100Hz16BitMonoPcm"] = 36] = "Riff44100Hz16BitMonoPcm";
/**
* amr-wb-16000hz
* AMR-WB audio at 16kHz sampling rate.
* Added in version 1.38.0
* @member SpeechSynthesisOutputFormat.AmrWb16000Hz
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["AmrWb16000Hz"] = 37] = "AmrWb16000Hz";
/**
* g722-16khz-64kbps
* G.722 audio at 16kHz sampling rate and 64kbps bitrate.
* Added in version 1.38.0
*/
SpeechSynthesisOutputFormat[SpeechSynthesisOutputFormat["G72216Khz64Kbps"] = 38] = "G72216Khz64Kbps";
})(SpeechSynthesisOutputFormat = exports.SpeechSynthesisOutputFormat || (exports.SpeechSynthesisOutputFormat = {}));
//# sourceMappingURL=SpeechSynthesisOutputFormat.js.map