
內容簡介
OST Read Aloud 外掛為您的文章新增「聆聽此文章」的播放器,利用 Google Cloud Text-to-Speech 生成音頻,並在訪客瀏覽時高亮顯示正在朗讀的單詞,提供更友善的閱讀體驗。
【主要功能】
• 支援 Google API 金鑰或服務帳戶 JSON 金鑰連接
• 可選擇語言、聲音、速度、音調及音頻格式
• 自動生成音頻或在編輯器中手動生成音頻
• 支援長文章分段處理,避免超時問題
• 可自訂播放器位置及樣式,並支援自動滾動
外掛標籤
開發者團隊
原文外掛簡介
OST Read Aloud adds a “Listen to this article” player to your posts. The audio is made once with Google Cloud Text-to-Speech and saved in your media uploads folder, so visitors never call Google and you are only charged when you generate audio.
While the audio plays, the word being read is highlighted, along with its paragraph, and the page scrolls gently to follow along.
Everything is set up from Settings → Text to Speech. No code changes are needed.
Features
Connect with a Google API key or a service account JSON key.
“Test connection” and “Preview voice” buttons on the settings page.
Choose language, voice, speed, pitch and audio format (MP3 or WAV).
Choose which post types get audio, and whether the title is read first.
Generate audio from a panel in the block editor or a box in the classic editor, or automatically when a post is published or updated.
Long posts are split into small parts and made one part at a time, so there are no timeouts.
Word and paragraph highlighting that keeps your links and formatting intact.
Player above or below the post, or anywhere with the [ost_tts_player] shortcode.
Sticky player while listening, custom highlight colours, auto-scroll that pauses when the visitor scrolls.
Add the class ost-tts-skip to any block (Advanced → Additional CSS class) to leave it out of the audio.
External service
This plugin sends post text to the Google Cloud Text-to-Speech API (texttospeech.googleapis.com) when an editor or administrator generates audio or a voice preview, or when automatic generation is turned on and a post is published or updated. When a service account is used, a sign-in token is requested from oauth2.googleapis.com. No data is sent to Google when visitors view or play audio.
Google charges per character after the free monthly allowance. See the Google Cloud Text-to-Speech pricing and the Google Cloud terms and Google privacy policy.
