Skip to content

Commit

Permalink
Merge pull request lencx#572 from tk103331/main
Browse files Browse the repository at this point in the history
  • Loading branch information
lencx authored Mar 6, 2023
2 parents 488e249 + fa96092 commit ce0d898
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/view/settings/General.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export default function General() {

useInit(async () => {
setPlatform(await platform());
speechSynthesis.addEventListener('voiceschanged', () => {
const voices = speechSynthesis.getVoices();
console.log(voices);
setVoices(voices);
});
setVoices(speechSynthesis.getVoices());
});

Expand Down

0 comments on commit ce0d898

Please sign in to comment.