前言介紹
- 這款 WordPress 外掛「WP Speech Contents」是 2017-09-12 上架。
- 目前有 30 個安裝啟用數。
- 上一次更新是 2017-09-13,距離現在已有 2788 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.8 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
kt_shin1 |
外掛標籤
內容簡介
這個外掛可以在網頁上顯示一個按鈕,用來朗讀網頁內容。
僅限單頁面使用。
必須使用支援 Web Speech API 的瀏覽器。
Web Speech API 瀏覽器相容性。
範例
可以使用過濾器鈎子調整顯示位置。
add_filter( 'wp-speech-contents_mode', function () {
return 'bottom'; // top 或 bottom
});
可以使用過濾器鈎子調整要朗讀的內容。
add_filter( 'wp-speech-contents_content', function ( $content ) {
$content = preg_replace('/\pS/u','',$content); // 刪除符號等等
$content = '朗讀開始!'.$content; // 先念出 "朗讀開始!"
return $content;
});
可以使用過濾器鈎子調整要朗讀的語言。
add_filter( 'wp-speech-contents_language', function ( ) {
return 'ja-JP';
});
原文外掛簡介
Displays a button to speech the content.
Single page only
Web Speech API compatible browser only
Web Speech API Browser compatibility.
Example
You can change the display position with a filter hook.
add_filter( 'wp-speech-contents_mode', function () {
return 'bottom'; // top or bottom
});
You can change the content to be read out with the filter hook.
add_filter( 'wp-speech-contents_content', function ( $content ) {
$content = preg_replace('/\pS/u','',$content); // Delete symbols etc.
$content = 'Speech starts!.'.$content; // First "Speech starts!"
return $content;
});
You can Setting the language to be read out with the filter hook.
add_filter( 'wp-speech-contents_language', function ( ) {
return 'ja-JP';
});
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP Speech Contents」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.1 | 0.2 | 0.3 | 0.3.1 | 0.3.2 | trunk |
延伸相關外掛(你可能也想知道)
WebSpeechAPI for WP 》這是一個使用 Web Speech API 的語音輸入外掛程式。, 預設語言為日文,需要手動切換您的語言。, 此外掛程式原本是在以下網站上發佈:, https://www.value-web...。