Merge pull request #572 from tk103331/main

This commit is contained in:
lencx 2023-03-06 16:28:08 +08:00 committed by GitHub
commit ce0d8983eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());
});