Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Nov 12, 2023
1 parent 25d1480 commit b1de77b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/components/ReadButton/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions src/config/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ export const defaultConfig = {
activeApiModes: [
// 'claude2Api',
'chatgptFree35',
'chatgptFree35Mobile',
// 'chatgptPlus4',
//'chatgptFree35Mobile',
'chatgptPlus4',
// 'chatgptPlus4Mobile',
'chatgptApi35',
'chatgptApi35_16k',
Expand Down

0 comments on commit b1de77b

Please sign in to comment.