みかづきブログ・カスタム

基本的にはちょちょいのほいです。

2024-12-04から1日間の記事一覧

スマートフォンでSpeechSynthesisUtteranceを使用する際はユーザーアクションが必要 ☝️

SpeechSynthesisUtteranceを使用し、 let number = 0; setInterval(() => { const utterThis = new SpeechSynthesisUtterance(); utterThis.text = String(++number); speechSynthesis.speak(utterThis); }, 1000); こんな感じで、数字を読み上げるWebサイト…