次のタグが付いている新しい回答: google-chrome
2
票
Accepted
speechSynthesis.getVoices()で使用可能な音声を取得できない
voiceschanged イベントを待ってから実行しましょう。ページロード直後は声の用意ができていないことがあります。
speechSynthesis.addEventListener('voiceschanged', e => {
const voice = speechSynthesis.getVoices();
console.log(voice);
});
- 7,340
上位 50 件の最近の回答が含まれています
関連するタグ
google-chrome × 145javascript × 44
selenium × 19
html × 13
chrome-extension × 13
python × 12
android × 11
firefox × 11
google-chrome-devtools × 8
css × 7
html5 × 6
http × 6
safari × 5
python3 × 4
windows × 4
ubuntu × 4
google-apps-script × 4
selenium-webdriver × 4
cookie × 4
google-chrome-apps × 4
ruby-on-rails × 3
linux × 3
macos × 3
node.js × 3
windows-10 × 3