@uptime.app/contracts 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/text-to-speech/supported-voices.d.ts +4 -0
- package/dist/cjs/text-to-speech/supported-voices.d.ts.map +1 -0
- package/dist/cjs/text-to-speech/supported-voices.js +91 -0
- package/dist/cjs/text-to-speech/supported-voices.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/text-to-speech/supported-voices.d.ts +4 -0
- package/dist/esm/text-to-speech/supported-voices.d.ts.map +1 -0
- package/dist/esm/text-to-speech/supported-voices.js +86 -0
- package/dist/esm/text-to-speech/supported-voices.js.map +1 -0
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/text-to-speech/supported-voices.ts +101 -0
package/dist/cjs/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export * from './skin/skin';
|
|
|
49
49
|
export * from './skin/skin-events';
|
|
50
50
|
export * from './text-to-speech/create-speech-commands';
|
|
51
51
|
export * from './text-to-speech/speech-created-events';
|
|
52
|
+
export * from './text-to-speech/supported-voices';
|
|
52
53
|
export * from './text-to-speech/text-segment';
|
|
53
54
|
export * from './theme/theme';
|
|
54
55
|
export * from './theme/theme-events';
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AAErD,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAE/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C;AACnD,cAAc,kCAAkC,CAAC;AAEjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+CAA+C,CAAC;AAE9D,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AAEzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAElC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAE9C,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AAErC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -65,6 +65,7 @@ __exportStar(require("./skin/skin"), exports);
|
|
|
65
65
|
__exportStar(require("./skin/skin-events"), exports);
|
|
66
66
|
__exportStar(require("./text-to-speech/create-speech-commands"), exports);
|
|
67
67
|
__exportStar(require("./text-to-speech/speech-created-events"), exports);
|
|
68
|
+
__exportStar(require("./text-to-speech/supported-voices"), exports);
|
|
68
69
|
__exportStar(require("./text-to-speech/text-segment"), exports);
|
|
69
70
|
__exportStar(require("./theme/theme"), exports);
|
|
70
71
|
__exportStar(require("./theme/theme-events"), exports);
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6EAA2D;AAC3D,uEAAqD;AAErD,2DAAyC;AACzC,+DAA6C;AAC7C,iEAA+C;AAE/C,sEAAoD;AACpD,6EAA2D;A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AACzC,8CAA4B;AAC5B,yDAAuC;AACvC,qDAAmC;AACnC,gEAA8C;AAE9C,gEAA8C;AAC9C,uEAAqD;AAErD,sEAAoD;AACpD,6EAA2D;AAE3D,8DAA4C;AAC5C,iEAA+C;AAC/C,qEAAmD;AACnD,mEAAiD;AAEjD,8DAA4C;AAC5C,qEAAmD;AACnD,yEAAuD;AACvD,gFAA8D;AAE9D,oDAAkC;AAClC,+DAA6C;AAC7C,2DAAyC;AAEzC,+DAA6C;AAC7C,6DAA2C;AAC3C,oDAAkC;AAElC,8CAA4B;AAC5B,qDAAmC;AAEnC,0EAAwD;AACxD,yEAAuD;AACvD,oEAAkD;AAClD,gEAA8C;AAE9C,gDAA8B;AAC9B,uDAAqC;AAErC,kEAAgD;AAChD,yEAAuD;AAEvD,8DAA4C;AAC5C,qEAAmD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supported-voices.d.ts","sourceRoot":"","sources":["../../../src/text-to-speech/supported-voices.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAqFhE,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,EAAE,CAM1D;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAMrD"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDefaultVoice = exports.getSupportedVoices = void 0;
|
|
4
|
+
const supported_locales_1 = require("../localisation/supported-locales");
|
|
5
|
+
const text_segment_1 = require("./text-segment");
|
|
6
|
+
const britishSonia = { id: 'en-GB-SoniaNeural', name: 'Sonia', countryCode: 'GB', language: 'en-GB', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
7
|
+
const britishRyan = { id: 'en-GB-RyanNeural', name: 'Ryan', countryCode: 'GB', language: 'en-GB', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
8
|
+
const americanNancy = { id: 'en-US-NancyNeural', name: 'Nancy', countryCode: 'US', language: 'en-US', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
9
|
+
const americanSara = { id: 'en-US-SaraNeural', name: 'Sara', countryCode: 'US', language: 'en-US', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
10
|
+
const americanChristopher = { id: 'en-US-ChristopherNeural', name: 'Christopher', countryCode: 'US', language: 'en-US', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
11
|
+
const americanTony = { id: 'en-US-TonyNeural', name: 'Tony', countryCode: 'US', language: 'en-US', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
12
|
+
const brazilianBrenda = { id: 'pt-BR-BrendaNeural', name: 'Brenda', countryCode: 'BR', language: 'pt-BR', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
13
|
+
const brazilianGiovanna = { id: 'pt-BR-GiovannaNeural', name: 'Giovanna', countryCode: 'BR', language: 'pt-BR', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
14
|
+
const brazilianAntonio = { id: 'pt-BR-AntonioNeural', name: 'Antonio', countryCode: 'BR', language: 'pt-BR', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
15
|
+
const brazilianHumberto = { id: 'pt-BR-HumbertoNeural', name: 'Humberto', countryCode: 'BR', language: 'pt-BR', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
16
|
+
const mexicanBeatriz = { id: 'es-MX-BeatrizNeural', name: 'Beatriz', countryCode: 'MX', language: 'es', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
17
|
+
const mexicanCecilio = { id: 'es-MX-CecilioNeural', name: 'Cecilio', countryCode: 'MX', language: 'es', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
18
|
+
const spanishAbril = { id: 'es-ES-AbrilNeural', name: 'Abril', countryCode: 'ES', language: 'es', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
19
|
+
const spanishAlvaro = { id: 'es-ES-AlvaroNeural', name: 'Alvaro', countryCode: 'ES', language: 'es', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
20
|
+
const latamPaloma = { id: 'es-US-PalomaNeural', name: 'Paloma', countryCode: 'LATAM', language: 'es', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
21
|
+
const latamAlonso = { id: 'es-US-AlonsoNeural', name: 'Alonso', countryCode: 'LATAM', language: 'es', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
22
|
+
const frenchHenri = { id: 'fr-FR-HenriNeural', name: 'Henri', countryCode: 'FR', language: 'fr-FR', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
23
|
+
const frenchJerome = { id: 'fr-FR-JeromeNeural', name: 'Jerome', countryCode: 'FR', language: 'fr-FR', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
24
|
+
const frenchJacqueline = { id: 'fr-FR-JacquelineNeural', name: 'Jacqueline', countryCode: 'FR', language: 'fr-FR', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
25
|
+
const belgianCharline = { id: 'fr-BE-CharlineNeural', name: 'Charline', countryCode: 'BE', language: 'fr-FR', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
26
|
+
const italianElsa = { id: 'it-IT-ElsaNeural', name: 'Elsa', countryCode: 'IT', language: 'it-IT', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
27
|
+
const italianFabiola = { id: 'it-IT-FabiolaNeural', name: 'Fabiola', countryCode: 'IT', language: 'it-IT', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
28
|
+
const italianCalimero = { id: 'it-IT-CalimeroNeural', name: 'Calimero', countryCode: 'IT', language: 'it-IT', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
29
|
+
const italianCataldo = { id: 'it-IT-CataldoNeural', name: 'Cataldo', countryCode: 'IT', language: 'it-IT', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
30
|
+
const dutchColette = { id: 'nl-NL-ColetteNeural', name: 'Colette', countryCode: 'NL', language: 'nl-NL', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
31
|
+
const dutchMaarten = { id: 'nl-NL-MaartenNeural', name: 'Maarten', countryCode: 'NL', language: 'nl-NL', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
32
|
+
const dutchFenna = { id: 'nl-NL-FennaNeural', name: 'Fenna', countryCode: 'NL', language: 'nl-NL', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
33
|
+
const germanKatja = { id: 'de-DE-KatjaNeural', name: 'Katja', countryCode: 'DE', language: 'de-DE', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
34
|
+
const germanConrad = { id: 'de-DE-ConradNeural', name: 'Conrad', countryCode: 'DE', language: 'de-DE', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
35
|
+
const germanChristoph = { id: 'de-DE-ChristophNeural', name: 'Christoph', countryCode: 'DE', language: 'de-DE', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
36
|
+
const germanElke = { id: 'de-DE-ElkeNeural', name: 'Elke', countryCode: 'DE', language: 'de-DE', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
37
|
+
const polishZofia = { id: 'pl-PL-ZofiaNeural', name: 'Zofia', countryCode: 'PL', language: 'pl-PL', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
38
|
+
const polishMarek = { id: 'pl-PL-MarekNeural', name: 'Marek', countryCode: 'PL', language: 'pl-PL', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
39
|
+
const swedishSofie = { id: 'sv-SE-SofieNeural', name: 'Sofie', countryCode: 'SV', language: 'sv-SE', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
40
|
+
const swedishMattias = { id: 'sv-SE-MattiasNeural', name: 'Mattias', countryCode: 'SV', language: 'sv-SE', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
41
|
+
const turkishAhmet = { id: 'tr-TR-AhmetNeural', name: 'Ahmet', countryCode: 'TR', language: 'tr-TR', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
42
|
+
const turkishEmel = { id: 'tr-TR-EmelNeural', name: 'Emel', countryCode: 'TR', language: 'tr-TR', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
43
|
+
const canadianFrenchSylvie = { id: 'fr-CA-SylvieNeural', name: 'Sylvie', countryCode: 'CA', language: 'fr-CA', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
44
|
+
const canadianFrenchThierry = { id: 'fr-CA-ThierryNeural', name: 'Thierry', countryCode: 'CA', language: 'fr-CA', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
45
|
+
const canadianFrenchAntoine = { id: 'fr-CA-AntoineNeural', name: 'Antoine', countryCode: 'CA', language: 'fr-CA', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
46
|
+
const canadianFrenchJean = { id: 'fr-CA-JeanNeural', name: 'Jean', countryCode: 'CA', language: 'fr-CA', speechProvider: text_segment_1.SupportedSpeechProvider.MicrosoftAzure };
|
|
47
|
+
const voicesForLocales = new Map([
|
|
48
|
+
[supported_locales_1.SupportedLocale.enGB, [britishSonia, britishRyan, americanNancy, americanSara, americanChristopher, americanTony]],
|
|
49
|
+
[supported_locales_1.SupportedLocale.enUS, [britishSonia, britishRyan, americanNancy, americanSara, americanChristopher, americanTony]],
|
|
50
|
+
[supported_locales_1.SupportedLocale.ptBR, [brazilianBrenda, brazilianGiovanna, brazilianAntonio, brazilianHumberto]],
|
|
51
|
+
[supported_locales_1.SupportedLocale.es, [mexicanBeatriz, mexicanCecilio, spanishAbril, spanishAlvaro, latamPaloma, latamAlonso]],
|
|
52
|
+
[supported_locales_1.SupportedLocale.frFR, [frenchHenri, frenchJerome, frenchJacqueline, belgianCharline]],
|
|
53
|
+
[supported_locales_1.SupportedLocale.itIT, [italianElsa, italianFabiola, italianCalimero, italianCataldo]],
|
|
54
|
+
[supported_locales_1.SupportedLocale.nlNL, [dutchColette, dutchMaarten, dutchFenna]],
|
|
55
|
+
[supported_locales_1.SupportedLocale.deDE, [germanKatja, germanConrad, germanChristoph, germanElke]],
|
|
56
|
+
[supported_locales_1.SupportedLocale.plPL, [polishZofia, polishMarek]],
|
|
57
|
+
[supported_locales_1.SupportedLocale.svSE, [swedishSofie, swedishMattias]],
|
|
58
|
+
[supported_locales_1.SupportedLocale.trTR, [turkishAhmet, turkishEmel]],
|
|
59
|
+
[supported_locales_1.SupportedLocale.frCA, [canadianFrenchSylvie, canadianFrenchThierry, canadianFrenchAntoine, canadianFrenchJean]]
|
|
60
|
+
]);
|
|
61
|
+
const defaultVoiceForLocales = new Map([
|
|
62
|
+
[supported_locales_1.SupportedLocale.enGB, americanSara],
|
|
63
|
+
[supported_locales_1.SupportedLocale.enUS, americanSara],
|
|
64
|
+
[supported_locales_1.SupportedLocale.ptBR, brazilianHumberto],
|
|
65
|
+
[supported_locales_1.SupportedLocale.es, latamPaloma],
|
|
66
|
+
[supported_locales_1.SupportedLocale.frFR, frenchJacqueline],
|
|
67
|
+
[supported_locales_1.SupportedLocale.itIT, italianElsa],
|
|
68
|
+
[supported_locales_1.SupportedLocale.nlNL, dutchColette],
|
|
69
|
+
[supported_locales_1.SupportedLocale.deDE, germanKatja],
|
|
70
|
+
[supported_locales_1.SupportedLocale.plPL, polishZofia],
|
|
71
|
+
[supported_locales_1.SupportedLocale.svSE, swedishSofie],
|
|
72
|
+
[supported_locales_1.SupportedLocale.trTR, turkishAhmet],
|
|
73
|
+
[supported_locales_1.SupportedLocale.frCA, canadianFrenchSylvie]
|
|
74
|
+
]);
|
|
75
|
+
function getSupportedVoices(locale) {
|
|
76
|
+
const voices = voicesForLocales.get(locale);
|
|
77
|
+
if (!voices) {
|
|
78
|
+
throw new Error(`Cannot list supported voices. Unsupported locale: ${JSON.stringify(locale)}`);
|
|
79
|
+
}
|
|
80
|
+
return voices;
|
|
81
|
+
}
|
|
82
|
+
exports.getSupportedVoices = getSupportedVoices;
|
|
83
|
+
function getDefaultVoice(locale) {
|
|
84
|
+
const voice = defaultVoiceForLocales.get(locale);
|
|
85
|
+
if (!voice) {
|
|
86
|
+
throw new Error(`Cannot find default voice. Unsupported locale: ${JSON.stringify(locale)}`);
|
|
87
|
+
}
|
|
88
|
+
return voice;
|
|
89
|
+
}
|
|
90
|
+
exports.getDefaultVoice = getDefaultVoice;
|
|
91
|
+
//# sourceMappingURL=supported-voices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supported-voices.js","sourceRoot":"","sources":["../../../src/text-to-speech/supported-voices.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;AACpE,iDAAgE;AAEhE,MAAM,YAAY,GAAU,EAAE,EAAE,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,sCAAuB,CAAC,cAAc,EAAE,CAAC;AACrK,MAAM,WAAW,GAAU,EAAE,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,sCAAuB,CAAC,cAAc,EAAE,CAAC;AAElK,MAAM,aAAa,GAAU,EAAE,EAAE,EAAE,mBAAmB,EA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AE,YAAY,CAAC;IACpC,CAAC,mCAAe,CAAC,IAAI,EAAE,oBAAoB,CAAC;CAC/C,CAAC,CAAC;AAEH,SAAgB,kBAAkB,CAAC,MAAc;IAC7C,MAAM,MAAM,GAAG,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5C,IAAI,CAAC,MAAM,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,qDAAqD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACnG,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAND,gDAMC;AAED,SAAgB,eAAe,CAAC,MAAc;IAC1C,MAAM,KAAK,GAAG,sBAAsB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACjD,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CAAC,kDAAkD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAChG,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAND,0CAMC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export * from './skin/skin';
|
|
|
49
49
|
export * from './skin/skin-events';
|
|
50
50
|
export * from './text-to-speech/create-speech-commands';
|
|
51
51
|
export * from './text-to-speech/speech-created-events';
|
|
52
|
+
export * from './text-to-speech/supported-voices';
|
|
52
53
|
export * from './text-to-speech/text-segment';
|
|
53
54
|
export * from './theme/theme';
|
|
54
55
|
export * from './theme/theme-events';
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AAErD,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAE/C,cAAc,qCAAqC,CAA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C,CAAC;AAEjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+CAA+C,CAAC;AAE9D,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AAEzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAElC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAE9C,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AAErC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -49,6 +49,7 @@ export * from './skin/skin';
|
|
|
49
49
|
export * from './skin/skin-events';
|
|
50
50
|
export * from './text-to-speech/create-speech-commands';
|
|
51
51
|
export * from './text-to-speech/speech-created-events';
|
|
52
|
+
export * from './text-to-speech/supported-voices';
|
|
52
53
|
export * from './text-to-speech/text-segment';
|
|
53
54
|
export * from './theme/theme';
|
|
54
55
|
export * from './theme/theme-events';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AAErD,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAE/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAE3D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mDA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CAAwC,CAAC;AACvD,cAAc,+CAA+C,CAAC;AAE9D,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AAEzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAElC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAE9C,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AAErC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supported-voices.d.ts","sourceRoot":"","sources":["../../../src/text-to-speech/supported-voices.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAqFhE,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,EAAE,CAM1D;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAMrD"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { SupportedLocale } from '../localisation/supported-locales';
|
|
2
|
+
import { SupportedSpeechProvider } from './text-segment';
|
|
3
|
+
const britishSonia = { id: 'en-GB-SoniaNeural', name: 'Sonia', countryCode: 'GB', language: 'en-GB', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
4
|
+
const britishRyan = { id: 'en-GB-RyanNeural', name: 'Ryan', countryCode: 'GB', language: 'en-GB', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
5
|
+
const americanNancy = { id: 'en-US-NancyNeural', name: 'Nancy', countryCode: 'US', language: 'en-US', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
6
|
+
const americanSara = { id: 'en-US-SaraNeural', name: 'Sara', countryCode: 'US', language: 'en-US', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
7
|
+
const americanChristopher = { id: 'en-US-ChristopherNeural', name: 'Christopher', countryCode: 'US', language: 'en-US', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
8
|
+
const americanTony = { id: 'en-US-TonyNeural', name: 'Tony', countryCode: 'US', language: 'en-US', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
9
|
+
const brazilianBrenda = { id: 'pt-BR-BrendaNeural', name: 'Brenda', countryCode: 'BR', language: 'pt-BR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
10
|
+
const brazilianGiovanna = { id: 'pt-BR-GiovannaNeural', name: 'Giovanna', countryCode: 'BR', language: 'pt-BR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
11
|
+
const brazilianAntonio = { id: 'pt-BR-AntonioNeural', name: 'Antonio', countryCode: 'BR', language: 'pt-BR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
12
|
+
const brazilianHumberto = { id: 'pt-BR-HumbertoNeural', name: 'Humberto', countryCode: 'BR', language: 'pt-BR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
13
|
+
const mexicanBeatriz = { id: 'es-MX-BeatrizNeural', name: 'Beatriz', countryCode: 'MX', language: 'es', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
14
|
+
const mexicanCecilio = { id: 'es-MX-CecilioNeural', name: 'Cecilio', countryCode: 'MX', language: 'es', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
15
|
+
const spanishAbril = { id: 'es-ES-AbrilNeural', name: 'Abril', countryCode: 'ES', language: 'es', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
16
|
+
const spanishAlvaro = { id: 'es-ES-AlvaroNeural', name: 'Alvaro', countryCode: 'ES', language: 'es', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
17
|
+
const latamPaloma = { id: 'es-US-PalomaNeural', name: 'Paloma', countryCode: 'LATAM', language: 'es', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
18
|
+
const latamAlonso = { id: 'es-US-AlonsoNeural', name: 'Alonso', countryCode: 'LATAM', language: 'es', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
19
|
+
const frenchHenri = { id: 'fr-FR-HenriNeural', name: 'Henri', countryCode: 'FR', language: 'fr-FR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
20
|
+
const frenchJerome = { id: 'fr-FR-JeromeNeural', name: 'Jerome', countryCode: 'FR', language: 'fr-FR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
21
|
+
const frenchJacqueline = { id: 'fr-FR-JacquelineNeural', name: 'Jacqueline', countryCode: 'FR', language: 'fr-FR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
22
|
+
const belgianCharline = { id: 'fr-BE-CharlineNeural', name: 'Charline', countryCode: 'BE', language: 'fr-FR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
23
|
+
const italianElsa = { id: 'it-IT-ElsaNeural', name: 'Elsa', countryCode: 'IT', language: 'it-IT', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
24
|
+
const italianFabiola = { id: 'it-IT-FabiolaNeural', name: 'Fabiola', countryCode: 'IT', language: 'it-IT', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
25
|
+
const italianCalimero = { id: 'it-IT-CalimeroNeural', name: 'Calimero', countryCode: 'IT', language: 'it-IT', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
26
|
+
const italianCataldo = { id: 'it-IT-CataldoNeural', name: 'Cataldo', countryCode: 'IT', language: 'it-IT', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
27
|
+
const dutchColette = { id: 'nl-NL-ColetteNeural', name: 'Colette', countryCode: 'NL', language: 'nl-NL', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
28
|
+
const dutchMaarten = { id: 'nl-NL-MaartenNeural', name: 'Maarten', countryCode: 'NL', language: 'nl-NL', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
29
|
+
const dutchFenna = { id: 'nl-NL-FennaNeural', name: 'Fenna', countryCode: 'NL', language: 'nl-NL', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
30
|
+
const germanKatja = { id: 'de-DE-KatjaNeural', name: 'Katja', countryCode: 'DE', language: 'de-DE', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
31
|
+
const germanConrad = { id: 'de-DE-ConradNeural', name: 'Conrad', countryCode: 'DE', language: 'de-DE', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
32
|
+
const germanChristoph = { id: 'de-DE-ChristophNeural', name: 'Christoph', countryCode: 'DE', language: 'de-DE', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
33
|
+
const germanElke = { id: 'de-DE-ElkeNeural', name: 'Elke', countryCode: 'DE', language: 'de-DE', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
34
|
+
const polishZofia = { id: 'pl-PL-ZofiaNeural', name: 'Zofia', countryCode: 'PL', language: 'pl-PL', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
35
|
+
const polishMarek = { id: 'pl-PL-MarekNeural', name: 'Marek', countryCode: 'PL', language: 'pl-PL', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
36
|
+
const swedishSofie = { id: 'sv-SE-SofieNeural', name: 'Sofie', countryCode: 'SV', language: 'sv-SE', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
37
|
+
const swedishMattias = { id: 'sv-SE-MattiasNeural', name: 'Mattias', countryCode: 'SV', language: 'sv-SE', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
38
|
+
const turkishAhmet = { id: 'tr-TR-AhmetNeural', name: 'Ahmet', countryCode: 'TR', language: 'tr-TR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
39
|
+
const turkishEmel = { id: 'tr-TR-EmelNeural', name: 'Emel', countryCode: 'TR', language: 'tr-TR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
40
|
+
const canadianFrenchSylvie = { id: 'fr-CA-SylvieNeural', name: 'Sylvie', countryCode: 'CA', language: 'fr-CA', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
41
|
+
const canadianFrenchThierry = { id: 'fr-CA-ThierryNeural', name: 'Thierry', countryCode: 'CA', language: 'fr-CA', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
42
|
+
const canadianFrenchAntoine = { id: 'fr-CA-AntoineNeural', name: 'Antoine', countryCode: 'CA', language: 'fr-CA', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
43
|
+
const canadianFrenchJean = { id: 'fr-CA-JeanNeural', name: 'Jean', countryCode: 'CA', language: 'fr-CA', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
44
|
+
const voicesForLocales = new Map([
|
|
45
|
+
[SupportedLocale.enGB, [britishSonia, britishRyan, americanNancy, americanSara, americanChristopher, americanTony]],
|
|
46
|
+
[SupportedLocale.enUS, [britishSonia, britishRyan, americanNancy, americanSara, americanChristopher, americanTony]],
|
|
47
|
+
[SupportedLocale.ptBR, [brazilianBrenda, brazilianGiovanna, brazilianAntonio, brazilianHumberto]],
|
|
48
|
+
[SupportedLocale.es, [mexicanBeatriz, mexicanCecilio, spanishAbril, spanishAlvaro, latamPaloma, latamAlonso]],
|
|
49
|
+
[SupportedLocale.frFR, [frenchHenri, frenchJerome, frenchJacqueline, belgianCharline]],
|
|
50
|
+
[SupportedLocale.itIT, [italianElsa, italianFabiola, italianCalimero, italianCataldo]],
|
|
51
|
+
[SupportedLocale.nlNL, [dutchColette, dutchMaarten, dutchFenna]],
|
|
52
|
+
[SupportedLocale.deDE, [germanKatja, germanConrad, germanChristoph, germanElke]],
|
|
53
|
+
[SupportedLocale.plPL, [polishZofia, polishMarek]],
|
|
54
|
+
[SupportedLocale.svSE, [swedishSofie, swedishMattias]],
|
|
55
|
+
[SupportedLocale.trTR, [turkishAhmet, turkishEmel]],
|
|
56
|
+
[SupportedLocale.frCA, [canadianFrenchSylvie, canadianFrenchThierry, canadianFrenchAntoine, canadianFrenchJean]]
|
|
57
|
+
]);
|
|
58
|
+
const defaultVoiceForLocales = new Map([
|
|
59
|
+
[SupportedLocale.enGB, americanSara],
|
|
60
|
+
[SupportedLocale.enUS, americanSara],
|
|
61
|
+
[SupportedLocale.ptBR, brazilianHumberto],
|
|
62
|
+
[SupportedLocale.es, latamPaloma],
|
|
63
|
+
[SupportedLocale.frFR, frenchJacqueline],
|
|
64
|
+
[SupportedLocale.itIT, italianElsa],
|
|
65
|
+
[SupportedLocale.nlNL, dutchColette],
|
|
66
|
+
[SupportedLocale.deDE, germanKatja],
|
|
67
|
+
[SupportedLocale.plPL, polishZofia],
|
|
68
|
+
[SupportedLocale.svSE, swedishSofie],
|
|
69
|
+
[SupportedLocale.trTR, turkishAhmet],
|
|
70
|
+
[SupportedLocale.frCA, canadianFrenchSylvie]
|
|
71
|
+
]);
|
|
72
|
+
export function getSupportedVoices(locale) {
|
|
73
|
+
const voices = voicesForLocales.get(locale);
|
|
74
|
+
if (!voices) {
|
|
75
|
+
throw new Error(`Cannot list supported voices. Unsupported locale: ${JSON.stringify(locale)}`);
|
|
76
|
+
}
|
|
77
|
+
return voices;
|
|
78
|
+
}
|
|
79
|
+
export function getDefaultVoice(locale) {
|
|
80
|
+
const voice = defaultVoiceForLocales.get(locale);
|
|
81
|
+
if (!voice) {
|
|
82
|
+
throw new Error(`Cannot find default voice. Unsupported locale: ${JSON.stringify(locale)}`);
|
|
83
|
+
}
|
|
84
|
+
return voice;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=supported-voices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supported-voices.js","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
1
|
{
|
|
2
2
|
"name": "@uptime.app/contracts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"types": "./dist/esm/index.d.ts",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"typescript": "^5.4.3"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "77be6f107bb3a15dd0d6e2b5ab4e4322294111b3"
|
|
17
17
|
}
|
package/src/index.ts
CHANGED
|
@@ -67,6 +67,7 @@ export * from './skin/skin-events';
|
|
|
67
67
|
|
|
68
68
|
export * from './text-to-speech/create-speech-commands';
|
|
69
69
|
export * from './text-to-speech/speech-created-events';
|
|
70
|
+
export * from './text-to-speech/supported-voices';
|
|
70
71
|
export * from './text-to-speech/text-segment';
|
|
71
72
|
|
|
72
73
|
export * from './theme/theme';
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { SupportedLocale } from '../localisation/supported-locales';
|
|
2
|
+
import { SupportedSpeechProvider, Voice } from './text-segment';
|
|
3
|
+
|
|
4
|
+
const britishSonia: Voice = { id: 'en-GB-SoniaNeural', name: 'Sonia', countryCode: 'GB', language: 'en-GB', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
5
|
+
const britishRyan: Voice = { id: 'en-GB-RyanNeural', name: 'Ryan', countryCode: 'GB', language: 'en-GB', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
6
|
+
|
|
7
|
+
const americanNancy: Voice = { id: 'en-US-NancyNeural', name: 'Nancy', countryCode: 'US', language: 'en-US', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
8
|
+
const americanSara: Voice = { id: 'en-US-SaraNeural', name: 'Sara', countryCode: 'US', language: 'en-US', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
9
|
+
const americanChristopher: Voice = { id: 'en-US-ChristopherNeural', name: 'Christopher', countryCode: 'US', language: 'en-US', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
10
|
+
const americanTony: Voice = { id: 'en-US-TonyNeural', name: 'Tony', countryCode: 'US', language: 'en-US', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
11
|
+
|
|
12
|
+
const brazilianBrenda: Voice = { id: 'pt-BR-BrendaNeural', name: 'Brenda', countryCode: 'BR', language: 'pt-BR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
13
|
+
const brazilianGiovanna: Voice = { id: 'pt-BR-GiovannaNeural', name: 'Giovanna', countryCode: 'BR', language: 'pt-BR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
14
|
+
const brazilianAntonio: Voice = { id: 'pt-BR-AntonioNeural', name: 'Antonio', countryCode: 'BR', language: 'pt-BR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
15
|
+
const brazilianHumberto: Voice = { id: 'pt-BR-HumbertoNeural', name: 'Humberto', countryCode: 'BR', language: 'pt-BR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
16
|
+
|
|
17
|
+
const mexicanBeatriz: Voice = { id: 'es-MX-BeatrizNeural', name: 'Beatriz', countryCode: 'MX', language: 'es', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
18
|
+
const mexicanCecilio: Voice = { id: 'es-MX-CecilioNeural', name: 'Cecilio', countryCode: 'MX', language: 'es', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
19
|
+
const spanishAbril: Voice = { id: 'es-ES-AbrilNeural', name: 'Abril', countryCode: 'ES', language: 'es', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
20
|
+
const spanishAlvaro: Voice = { id: 'es-ES-AlvaroNeural', name: 'Alvaro', countryCode: 'ES', language: 'es', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
21
|
+
const latamPaloma: Voice = { id: 'es-US-PalomaNeural', name: 'Paloma', countryCode: 'LATAM', language: 'es', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
22
|
+
const latamAlonso: Voice = { id: 'es-US-AlonsoNeural', name: 'Alonso', countryCode: 'LATAM', language: 'es', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
23
|
+
|
|
24
|
+
const frenchHenri: Voice = { id: 'fr-FR-HenriNeural', name: 'Henri', countryCode: 'FR', language: 'fr-FR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
25
|
+
const frenchJerome: Voice = { id: 'fr-FR-JeromeNeural', name: 'Jerome', countryCode: 'FR', language: 'fr-FR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
26
|
+
const frenchJacqueline: Voice = { id: 'fr-FR-JacquelineNeural', name: 'Jacqueline', countryCode: 'FR', language: 'fr-FR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
27
|
+
const belgianCharline: Voice = { id: 'fr-BE-CharlineNeural', name: 'Charline', countryCode: 'BE', language: 'fr-FR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
28
|
+
|
|
29
|
+
const italianElsa: Voice = { id: 'it-IT-ElsaNeural', name: 'Elsa', countryCode: 'IT', language: 'it-IT', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
30
|
+
const italianFabiola: Voice = { id: 'it-IT-FabiolaNeural', name: 'Fabiola', countryCode: 'IT', language: 'it-IT', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
31
|
+
const italianCalimero: Voice = { id: 'it-IT-CalimeroNeural', name: 'Calimero', countryCode: 'IT', language: 'it-IT', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
32
|
+
const italianCataldo: Voice = { id: 'it-IT-CataldoNeural', name: 'Cataldo', countryCode: 'IT', language: 'it-IT', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
33
|
+
|
|
34
|
+
const dutchColette: Voice = { id: 'nl-NL-ColetteNeural', name: 'Colette', countryCode: 'NL', language: 'nl-NL', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
35
|
+
const dutchMaarten: Voice = { id: 'nl-NL-MaartenNeural', name: 'Maarten', countryCode: 'NL', language: 'nl-NL', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
36
|
+
const dutchFenna: Voice = { id: 'nl-NL-FennaNeural', name: 'Fenna', countryCode: 'NL', language: 'nl-NL', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
37
|
+
|
|
38
|
+
const germanKatja: Voice = { id: 'de-DE-KatjaNeural', name: 'Katja', countryCode: 'DE', language: 'de-DE', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
39
|
+
const germanConrad: Voice = { id: 'de-DE-ConradNeural', name: 'Conrad', countryCode: 'DE', language: 'de-DE', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
40
|
+
const germanChristoph: Voice = { id: 'de-DE-ChristophNeural', name: 'Christoph', countryCode: 'DE', language: 'de-DE', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
41
|
+
const germanElke: Voice = { id: 'de-DE-ElkeNeural', name: 'Elke', countryCode: 'DE', language: 'de-DE', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
42
|
+
|
|
43
|
+
const polishZofia: Voice = { id: 'pl-PL-ZofiaNeural', name: 'Zofia', countryCode: 'PL', language: 'pl-PL', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
44
|
+
const polishMarek: Voice = { id: 'pl-PL-MarekNeural', name: 'Marek', countryCode: 'PL', language: 'pl-PL', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
45
|
+
|
|
46
|
+
const swedishSofie: Voice = { id: 'sv-SE-SofieNeural', name: 'Sofie', countryCode: 'SV', language: 'sv-SE', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
47
|
+
const swedishMattias: Voice = { id: 'sv-SE-MattiasNeural', name: 'Mattias', countryCode: 'SV', language: 'sv-SE', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
48
|
+
|
|
49
|
+
const turkishAhmet: Voice = { id: 'tr-TR-AhmetNeural', name: 'Ahmet', countryCode: 'TR', language: 'tr-TR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
50
|
+
const turkishEmel: Voice = { id: 'tr-TR-EmelNeural', name: 'Emel', countryCode: 'TR', language: 'tr-TR', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
51
|
+
|
|
52
|
+
const canadianFrenchSylvie: Voice = { id: 'fr-CA-SylvieNeural', name: 'Sylvie', countryCode: 'CA', language: 'fr-CA', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
53
|
+
const canadianFrenchThierry: Voice = { id: 'fr-CA-ThierryNeural', name: 'Thierry', countryCode: 'CA', language: 'fr-CA', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
54
|
+
const canadianFrenchAntoine: Voice = { id: 'fr-CA-AntoineNeural', name: 'Antoine', countryCode: 'CA', language: 'fr-CA', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
55
|
+
const canadianFrenchJean: Voice = { id: 'fr-CA-JeanNeural', name: 'Jean', countryCode: 'CA', language: 'fr-CA', speechProvider: SupportedSpeechProvider.MicrosoftAzure };
|
|
56
|
+
|
|
57
|
+
const voicesForLocales = new Map<string, Voice[]>([
|
|
58
|
+
[SupportedLocale.enGB, [britishSonia, britishRyan, americanNancy, americanSara, americanChristopher, americanTony]],
|
|
59
|
+
[SupportedLocale.enUS, [britishSonia, britishRyan, americanNancy, americanSara, americanChristopher, americanTony]],
|
|
60
|
+
[SupportedLocale.ptBR, [brazilianBrenda, brazilianGiovanna, brazilianAntonio, brazilianHumberto]],
|
|
61
|
+
[SupportedLocale.es, [mexicanBeatriz, mexicanCecilio, spanishAbril, spanishAlvaro, latamPaloma, latamAlonso]],
|
|
62
|
+
[SupportedLocale.frFR, [frenchHenri, frenchJerome, frenchJacqueline, belgianCharline]],
|
|
63
|
+
[SupportedLocale.itIT, [italianElsa, italianFabiola, italianCalimero, italianCataldo]],
|
|
64
|
+
[SupportedLocale.nlNL, [dutchColette, dutchMaarten, dutchFenna]],
|
|
65
|
+
[SupportedLocale.deDE, [germanKatja, germanConrad, germanChristoph, germanElke]],
|
|
66
|
+
[SupportedLocale.plPL, [polishZofia, polishMarek]],
|
|
67
|
+
[SupportedLocale.svSE, [swedishSofie, swedishMattias]],
|
|
68
|
+
[SupportedLocale.trTR, [turkishAhmet, turkishEmel]],
|
|
69
|
+
[SupportedLocale.frCA, [canadianFrenchSylvie, canadianFrenchThierry, canadianFrenchAntoine, canadianFrenchJean]]
|
|
70
|
+
]);
|
|
71
|
+
|
|
72
|
+
const defaultVoiceForLocales = new Map<string, Voice>([
|
|
73
|
+
[SupportedLocale.enGB, americanSara],
|
|
74
|
+
[SupportedLocale.enUS, americanSara],
|
|
75
|
+
[SupportedLocale.ptBR, brazilianHumberto],
|
|
76
|
+
[SupportedLocale.es, latamPaloma],
|
|
77
|
+
[SupportedLocale.frFR, frenchJacqueline],
|
|
78
|
+
[SupportedLocale.itIT, italianElsa],
|
|
79
|
+
[SupportedLocale.nlNL, dutchColette],
|
|
80
|
+
[SupportedLocale.deDE, germanKatja],
|
|
81
|
+
[SupportedLocale.plPL, polishZofia],
|
|
82
|
+
[SupportedLocale.svSE, swedishSofie],
|
|
83
|
+
[SupportedLocale.trTR, turkishAhmet],
|
|
84
|
+
[SupportedLocale.frCA, canadianFrenchSylvie]
|
|
85
|
+
]);
|
|
86
|
+
|
|
87
|
+
export function getSupportedVoices(locale: string): Voice[] {
|
|
88
|
+
const voices = voicesForLocales.get(locale);
|
|
89
|
+
if (!voices) {
|
|
90
|
+
throw new Error(`Cannot list supported voices. Unsupported locale: ${JSON.stringify(locale)}`);
|
|
91
|
+
}
|
|
92
|
+
return voices;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function getDefaultVoice(locale: string): Voice {
|
|
96
|
+
const voice = defaultVoiceForLocales.get(locale);
|
|
97
|
+
if (!voice) {
|
|
98
|
+
throw new Error(`Cannot find default voice. Unsupported locale: ${JSON.stringify(locale)}`);
|
|
99
|
+
}
|
|
100
|
+
return voice;
|
|
101
|
+
}
|