generated from capacitor-community/.github
-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
bug/fixSomething isn't workingSomething isn't workingneeds: triageplatform: webWeb platformWeb platform
Description
Plugin version:
4.0.2
Platform(s):
web
Current behavior:
const voices = await TextToSpeech.getSupportedVoices();
const languages = await TextToSpeech.getSupportedLanguages();
console.log(voices)
console.log(languages)
both return empty arrays
Expected behavior:
They should be a list
Steps to reproduce:
in one of my js files, I have that code, when I run it I gen empty arrays
Related code:
const voices = await TextToSpeech.getSupportedVoices();
const languages = await TextToSpeech.getSupportedLanguages();
console.log(voices)
console.log(languages)
Other information:
as a workaround, I wrapp it in a settimeout. That works
setTimeout(async () => {
const voices = await TextToSpeech.getSupportedVoices();
const languages = await TextToSpeech.getSupportedLanguages();
console.log(voices)
console.log(languages)
}, 100)
Capacitor doctor:
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 6.1.0
@capacitor/core: 6.1.0
@capacitor/android: 6.1.0
@capacitor/ios: 6.1.0
Installed Dependencies:
@capacitor/ios: not installed
@capacitor/cli: 6.1.0
@capacitor/core: 6.1.0
@capacitor/android: 6.1.0
[success] Android looking great! 👌
Metadata
Metadata
Assignees
Labels
bug/fixSomething isn't workingSomething isn't workingneeds: triageplatform: webWeb platformWeb platform