| 开发者 | tanindev |
|---|---|
| 更新时间 | 2026年12月3日 01:04 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
window.speechSynthesis) available in all modern browsers (Chrome, Safari, Edge, Firefox, iOS, Android). No monthly subscriptions, no server costs, and no API keys required.navigator.mediaSession! Mobile listeners can control playback, pause, and see the article title and featured artwork right from their lock screen, notification shade, Apple Watch, or car display.🎧 3 min listen) beside the audio button.K (play/pause), Left/Right arrow keys or J/L (seek 10s), with ARIA live region status announcements.[gallery]), code blocks, scripts, raw URLs, and navigation links before speaking to ensure clean, natural speech.tts-1 & tts-1-hd), ElevenLabs (Prime Voice AI & Turbo v2.5), Google Cloud TTS, Amazon Polly, or self-hosted custom endpoints..mp3 audio files to any post to use recorded narration instead of synthesized speech, with an optional one-click download button.AudioObject schema (JSON-LD) into pages so search engines index your spoken content.[tts_player]
2. Custom Spoken Text (Hero Section / Greeting)
Speaks custom text instead of the page content:
[tts_player text="Welcome to our website! Listen to our quick audio introduction."]
3. Custom Labels & Styling Override
[tts_player theme="solid" accent="#e11d48" radius="pill" size="large" listen_text="Listen to Audio Intro"]
4. Custom MP3 Audio File Player
Plays pre-recorded audio or podcast file:
[tts_player audio_url="https://example.com/audio.mp3" listen_text="Play Podcast Episode"]
5. Enclosed Text Block
Wrap any specific paragraph or text inside shortcode tags:
[tts_player]This exact text inside the shortcode will be spoken aloud.[/tts_player]
6. Specific Post Content
Play audio for another specific post by ID:
[tts_player id="42"]
7. Sticky Fixed Floating Player
Anchor a floating audio player to any screen corner with custom horizontal (X) and vertical (Y) offsets:
[tts_player position="sticky" sticky_position="bottom_right" offset_x="24" offset_y="24"]
8. PHP Theme Template Integration
Directly embed in front-page.php, header.php, or single post templates:
<?php echo do_shortcode( '[tts_player]' ); ?>
🔒 Privacy & GDPR Compliance
Text to Speech Player is built with privacy-by-design:
Text to Speech Player.text-to-speech-player.zip archive.text-to-speech-player directory to /wp-content/plugins/.No. The default speech engine runs entirely in your visitor's web browser using the standard Web Speech API at zero cost. It requires no subscription, no credit card, and zero cloud API keys. Cloud AI providers (OpenAI, ElevenLabs, Google Cloud) are completely optional for users who want neural voices.
Go to Text to Speech > Settings > General and turn on "Disable Player on Front Page / Home Page". You can also disable the player on any specific post or page using the "Text to Speech Player" metabox in the editor sidebar.
Set Player Position to "Manual (Shortcode / Block Only)" in Text to Speech > Settings > General. Then insert the [tts_player] shortcode or block exactly where you want the player to appear.
Yes. Under Text to Speech > Settings > Appearance, you can choose between 5 color themes (Modern Light, Dark Glass, Solid, Outline, Soft Tint), customize the accent color with a live color picker, adjust border radius, change button sizes, and configure real-time word highlighting colors.
Yes. The plugin automatically detects the language of the current post (compatible with native WordPress locales, Polylang, WPML, and TranslatePress) and selects matching native voices in that language.
Yes. When editing any post or page, look for the "Text to Speech Player" sidebar panel and paste the URL of your uploaded MP3 file into the "Custom MP3 Audio URL" field. The player will stream your MP3 file instead of synthesizing speech.
As the audio plays, the player synchronizes with speech boundaries in real time, highlighting the current word in yellow and the active sentence with a soft background tint, while gently auto-scrolling to keep the reading position centered in the viewport.
Yes! Navigate to Text to Speech > Settings > Pronunciation (Aliases). You can add phonetic rules such as reading "WP" as "WordPress", "SEO" as "Search Engine Optimization", or "COVID-19" as "Covid nineteen".
Yes. The audio player and sticky floating dock are fully responsive and touch-optimized for iOS, iPadOS, Android smartphones, and tablets.
No. The frontend runtime JavaScript is under 15 KB with zero third-party script dependencies. Assets are loaded asynchronously and do not block page rendering.