in src/sdk/Audio/AudioOutputFormat.ts [97:487]
public static fromSpeechSynthesisOutputFormatString(speechSynthesisOutputFormatString: string): AudioOutputFormatImpl {
switch (speechSynthesisOutputFormatString) {
case "raw-8khz-8bit-mono-mulaw":
return new AudioOutputFormatImpl(
AudioFormatTag.MuLaw,
1,
8000,
8000,
1,
8,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "riff-16khz-16kbps-mono-siren":
return new AudioOutputFormatImpl(
AudioFormatTag.Siren,
1,
16000,
2000,
40,
0,
speechSynthesisOutputFormatString,
"audio-16khz-16kbps-mono-siren",
true);
case "audio-16khz-16kbps-mono-siren":
return new AudioOutputFormatImpl(
AudioFormatTag.Siren,
1,
16000,
2000,
40,
0,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "audio-16khz-32kbitrate-mono-mp3":
return new AudioOutputFormatImpl(
AudioFormatTag.MP3,
1,
16000,
32 << 7,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "audio-16khz-128kbitrate-mono-mp3":
return new AudioOutputFormatImpl(
AudioFormatTag.MP3,
1,
16000,
128 << 7,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "audio-16khz-64kbitrate-mono-mp3":
return new AudioOutputFormatImpl(
AudioFormatTag.MP3,
1,
16000,
64 << 7,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "audio-24khz-48kbitrate-mono-mp3":
return new AudioOutputFormatImpl(
AudioFormatTag.MP3,
1,
24000,
48 << 7,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "audio-24khz-96kbitrate-mono-mp3":
return new AudioOutputFormatImpl(
AudioFormatTag.MP3,
1,
24000,
96 << 7,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "audio-24khz-160kbitrate-mono-mp3":
return new AudioOutputFormatImpl(
AudioFormatTag.MP3,
1,
24000,
160 << 7,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "raw-16khz-16bit-mono-truesilk":
return new AudioOutputFormatImpl(
AudioFormatTag.SILKSkype,
1,
16000,
32000,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "riff-8khz-16bit-mono-pcm":
return new AudioOutputFormatImpl(
AudioFormatTag.PCM,
1,
8000,
16000,
2,
16,
speechSynthesisOutputFormatString,
"raw-8khz-16bit-mono-pcm",
true);
case "riff-24khz-16bit-mono-pcm":
return new AudioOutputFormatImpl(
AudioFormatTag.PCM,
1,
24000,
48000,
2,
16,
speechSynthesisOutputFormatString,
"raw-24khz-16bit-mono-pcm",
true);
case "riff-8khz-8bit-mono-mulaw":
return new AudioOutputFormatImpl(
AudioFormatTag.MuLaw,
1,
8000,
8000,
1,
8,
speechSynthesisOutputFormatString,
"raw-8khz-8bit-mono-mulaw",
true);
case "raw-16khz-16bit-mono-pcm":
return new AudioOutputFormatImpl(
AudioFormatTag.PCM,
1,
16000,
32000,
2,
16,
speechSynthesisOutputFormatString,
"raw-16khz-16bit-mono-pcm",
false);
case "raw-24khz-16bit-mono-pcm":
return new AudioOutputFormatImpl(
AudioFormatTag.PCM,
1,
24000,
48000,
2,
16,
speechSynthesisOutputFormatString,
"raw-24khz-16bit-mono-pcm",
false);
case "raw-8khz-16bit-mono-pcm":
return new AudioOutputFormatImpl(
AudioFormatTag.PCM,
1,
8000,
16000,
2,
16,
speechSynthesisOutputFormatString,
"raw-8khz-16bit-mono-pcm",
false);
case "ogg-16khz-16bit-mono-opus":
return new AudioOutputFormatImpl(
AudioFormatTag.OGG_OPUS,
1,
16000,
8192,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "ogg-24khz-16bit-mono-opus":
return new AudioOutputFormatImpl(
AudioFormatTag.OGG_OPUS,
1,
24000,
8192,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "raw-48khz-16bit-mono-pcm":
return new AudioOutputFormatImpl(
AudioFormatTag.PCM,
1,
48000,
96000,
2,
16,
speechSynthesisOutputFormatString,
"raw-48khz-16bit-mono-pcm",
false);
case "riff-48khz-16bit-mono-pcm":
return new AudioOutputFormatImpl(
AudioFormatTag.PCM,
1,
48000,
96000,
2,
16,
speechSynthesisOutputFormatString,
"raw-48khz-16bit-mono-pcm",
true);
case "audio-48khz-96kbitrate-mono-mp3":
return new AudioOutputFormatImpl(
AudioFormatTag.MP3,
1,
48000,
96 << 7,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "audio-48khz-192kbitrate-mono-mp3":
return new AudioOutputFormatImpl(
AudioFormatTag.MP3,
1,
48000,
192 << 7,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "ogg-48khz-16bit-mono-opus":
return new AudioOutputFormatImpl(
AudioFormatTag.OGG_OPUS,
1,
48000,
12000,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "webm-16khz-16bit-mono-opus":
return new AudioOutputFormatImpl(
AudioFormatTag.WEBM_OPUS,
1,
16000,
4000,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "webm-24khz-16bit-mono-opus":
return new AudioOutputFormatImpl(
AudioFormatTag.WEBM_OPUS,
1,
24000,
6000,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "webm-24khz-16bit-24kbps-mono-opus":
return new AudioOutputFormatImpl(
AudioFormatTag.WEBM_OPUS,
1,
24000,
3000,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "audio-16khz-16bit-32kbps-mono-opus":
return new AudioOutputFormatImpl(
AudioFormatTag.OPUS,
1,
16000,
4000,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "audio-24khz-16bit-48kbps-mono-opus":
return new AudioOutputFormatImpl(
AudioFormatTag.OPUS,
1,
24000,
6000,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "audio-24khz-16bit-24kbps-mono-opus":
return new AudioOutputFormatImpl(
AudioFormatTag.OPUS,
1,
24000,
3000,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "audio-24khz-16bit-mono-flac":
return new AudioOutputFormatImpl(
AudioFormatTag.FLAC,
1,
24000,
24000,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "audio-48khz-16bit-mono-flac":
return new AudioOutputFormatImpl(
AudioFormatTag.FLAC,
1,
48000,
30000,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "raw-24khz-16bit-mono-truesilk":
return new AudioOutputFormatImpl(
AudioFormatTag.SILKSkype,
1,
24000,
48000,
2,
16,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "raw-8khz-8bit-mono-alaw":
return new AudioOutputFormatImpl(
AudioFormatTag.ALaw,
1,
8000,
8000,
1,
8,
speechSynthesisOutputFormatString,
speechSynthesisOutputFormatString,
false);
case "riff-8khz-8bit-mono-alaw":
return new AudioOutputFormatImpl(
AudioFormatTag.ALaw,
1,
8000,
8000,
1,
8,
speechSynthesisOutputFormatString,
"raw-8khz-8bit-mono-alaw",
true);
case "riff-16khz-16bit-mono-pcm":
default:
return new AudioOutputFormatImpl(
AudioFormatTag.PCM,
1,
16000,
32000,
2,
16,
"riff-16khz-16bit-mono-pcm",
"raw-16khz-16bit-mono-pcm",
true);
}
}