From d87239b839fae378300913c00297ae043c3abfee Mon Sep 17 00:00:00 2001 From: Yulin Li Date: Sat, 6 Apr 2024 22:24:47 +0800 Subject: [PATCH] [tts] update the default voice to multilingual with auto language detection (#808) Co-authored-by: Yulin Li --- README.md | 4 ++-- src/sdk/Synthesizer.ts | 2 +- tests/Settings.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 05e32b58..b01ed2ba 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ npm install microsoft-cognitiveservices-speech-sdk ## Building -This source code for the Cognitive Services Speeck SDK (JavaScript) is available in a public [GitHub repository](https://github.com/Microsoft/cognitive-services-speech-sdk-js). You are not required to go through the build process. We create prebuilt packages tuned for your use-cases. These are updated in regular intervals. +This source code for the Cognitive Services Speech SDK (JavaScript) is available in a public [GitHub repository](https://github.com/Microsoft/cognitive-services-speech-sdk-js). You are not required to go through the build process. We create prebuilt packages tuned for your use-cases. These are updated in regular intervals. In order to build the Speech SDK, ensure that you have [Git](https://git-scm.com/downloads) and [Node.js](https://nodejs.org/) installed. Version requirement for Node: 12.44.0 or higher (or 14.17.0 or higher for Node 14). @@ -93,7 +93,7 @@ you want to run. For example, to only run tests defined in `AutoSourceLangDetect ```javascript import { Settings } from "../tests/Settings"; Settings.SpeechSubscriptionKey = "0123456789abcdef0123456789abcdef"; - Settings.SpeechRegion = "westcentralus"; + Settings.SpeechRegion = "westcentralus"; ``` Then to run the tests type `RunTests.cmd` in the root of the repo. diff --git a/src/sdk/Synthesizer.ts b/src/sdk/Synthesizer.ts index 9fa762d3..aca42ccb 100644 --- a/src/sdk/Synthesizer.ts +++ b/src/sdk/Synthesizer.ts @@ -129,7 +129,7 @@ export abstract class Synthesizer { ["en-PH"]: "en-PH-JamesNeural", ["en-SG"]: "en-SG-LunaNeural", ["en-TZ"]: "en-TZ-ElimuNeural", - ["en-US"]: "en-US-JennyNeural", + ["en-US"]: "en-US-AvaMultilingualNeural", ["en-ZA"]: "en-ZA-LeahNeural", ["es-AR"]: "es-AR-ElenaNeural", ["es-BO"]: "es-BO-MarceloNeural", diff --git a/tests/Settings.ts b/tests/Settings.ts index 2fdfaf7d..4ef08c82 100644 --- a/tests/Settings.ts +++ b/tests/Settings.ts @@ -105,8 +105,8 @@ export class Settings { private static IsSettingsInitialized: boolean = false; public static SettingsClassLock: Settings; - public static CustomVoiceEndpointId: string = "6b231818-6b8c-4452-9a69-2009355d5d7a"; - public static CustomVoiceVoiceName: string = "sdk-test"; + public static CustomVoiceEndpointId: string = "8d4cf211-8602-40b7-833c-56a2f1060f89"; + public static CustomVoiceVoiceName: string = "carbonTestNeural"; public static testIfDOMCondition: jest.It = (typeof window === "undefined") ? test.skip : test; public static testIfNode: jest.It = (typeof window !== "undefined") ? test.skip : test;