
內容簡介
總結:這是一個能夠在你的網站上添加文本轉語音功能的區塊。利用 Web Speech API,該外掛將根據文件語言和用戶偏好朗讀頁面內容。不使用第三方服務,因此無需使用 cookies,符合RGPD條例,同時具備無障礙設計。
問題與答案:
1. 外掛使用的API是什麼?
- 答:外掛使用了Web Speech API來讀取頁面內容。
2. 如何控制外掛跳過不想朗讀的內容?
- 答:可以通過將類別.skip-speech添加到元素中來跳過不需要朗讀的內容。
3. 這個外掛是否符合GDPR條例?
- 答:是的,不使用第三方服務,不需使用cookies,符合RGPD條例。
4. 這個外掛的優勢特點有哪些?
- 答:能夠根據文件語言和用戶偏好朗讀頁面內容,無障礙設計,性能優化並輕量,不需要使用區塊庫,主要使用原生WordPress組件,並且易於開發者自定義。
外掛標籤
開發者團隊
原文外掛簡介
This is a block that allows you to add a text-to-speech feature to your website.
Using the Web Speech API, the plugin will read the content of the page according to the document language and user’s preferences.
No third-party services are used, so no cookies are required. GDPR-friendly. Accessibility-ready.
Key Features
Listen to the content of a page according to the document language and user’s preferences.
(New) Highlight the current sentence being spoken with custom colors.
Skip undesired content by adding the class .skip-speech to the element.
Accessibility-ready
No cookies used (GDPR-friendly)
Performance-optimized and lightweight
No block library required
Primarily built with native WordPress components
Developer-friendly and easy to customize
Stay Connected
View on GitHub
Visit my website
Credits
The icons of this block come from Heroicons with MIT license
heroicons.com
