From 75f982bac73473fe2bc45918efa62d9176f665e1 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Wed, 15 Jan 2025 11:01:22 +0700 Subject: [PATCH] verbio list voice api is changed, fixed --- lib/utils/speech-data/tts-verbio.js | 10 ---------- lib/utils/speech-utils.js | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/lib/utils/speech-data/tts-verbio.js b/lib/utils/speech-data/tts-verbio.js index 2286bc0..c7bfb2c 100644 --- a/lib/utils/speech-data/tts-verbio.js +++ b/lib/utils/speech-data/tts-verbio.js @@ -1,14 +1,4 @@ module.exports = [ - { - value: 'en-US', - name: 'US English', - voices: [ - { - value: 'tommy_en_us', - name: 'Tommy-Male', - }, - ], - }, { value: 'es-ES', name: 'Castilian Spanish', diff --git a/lib/utils/speech-utils.js b/lib/utils/speech-utils.js index 769aa40..24a48e2 100644 --- a/lib/utils/speech-utils.js +++ b/lib/utils/speech-utils.js @@ -1132,7 +1132,7 @@ function parseMicrosoftLanguagesVoices(data) { } function parseVerbioLanguagesVoices(data) { - return data.reduce((acc, voice) => { + return data.voices.reduce((acc, voice) => { const languageCode = voice.language; const existingLanguage = acc.find((lang) => lang.value === languageCode); if (existingLanguage) {