From b1de77bcb303db37436e7412eb6e779d185eba0b Mon Sep 17 00:00:00 2001 From: josc146 Date: Sun, 12 Nov 2023 11:22:50 +0800 Subject: [PATCH] chore --- src/components/ReadButton/index.jsx | 2 ++ src/config/index.mjs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/ReadButton/index.jsx b/src/components/ReadButton/index.jsx index e468990..5ca051c 100644 --- a/src/components/ReadButton/index.jsx +++ b/src/components/ReadButton/index.jsx @@ -29,6 +29,8 @@ function ReadButton({ className, contentFn, size }) { voice = voices.find((v) => v.name.toLowerCase().includes('microsoft aria')) else if (config.preferredLanguage.includes('zh') || navigator.language.includes('zh')) voice = voices.find((v) => v.name.toLowerCase().includes('xiaoyi')) + else if (config.preferredLanguage.includes('ja') || navigator.language.includes('ja')) + voice = voices.find((v) => v.name.toLowerCase().includes('nanami')) if (!voice) voice = voices.find((v) => v.lang.substring(0, 2) === config.preferredLanguage) if (!voice) voice = voices.find((v) => v.lang === navigator.language) diff --git a/src/config/index.mjs b/src/config/index.mjs index 7d56e78..d677d04 100644 --- a/src/config/index.mjs +++ b/src/config/index.mjs @@ -180,8 +180,8 @@ export const defaultConfig = { activeApiModes: [ // 'claude2Api', 'chatgptFree35', - 'chatgptFree35Mobile', - // 'chatgptPlus4', + //'chatgptFree35Mobile', + 'chatgptPlus4', // 'chatgptPlus4Mobile', 'chatgptApi35', 'chatgptApi35_16k',