Tag: speechsynthesis
All the articles with the tag "speechsynthesis".
網頁載入時自動朗讀內容 - 使用 SpeechSynthesisUtterance
Posted on:2023/03/03 09:17:00最近有接到一個 case 是要在網頁載入後,自動朗讀內文的內容,最後使用 JS 內建的 SpeechSynthesisUtterance 來達成這個需求。順便記錄一下遇到的問題,像是換頁不會自行中斷及手機無法自動朗讀等問題。