Sahajanand Post to Speech

Description

Sahajanand Post to Speech helps you convert WordPress posts into listenable audio. Add the Sahajanand Post To Speech block, generate speech from your post content, and visitors get a simple audio player — no post text is shown on the frontend.

Features

  • Gutenberg block for post-to-audio conversion
  • Post content or custom text as the audio source
  • Frontend shows only the audio player (no duplicated post text)
  • Browser (WASM) or external API generation modes
  • 8 built-in voices with adjustable speed
  • Generated audio saved to the WordPress media library

Generation modes

  • Browser (WASM) — runs in the block editor using ONNX Runtime Web. No server-side TTS engine required. Speech models are downloaded on first use.
  • API — proxies requests to a compatible HTTP TTS API you host. Useful for long posts or low-powered devices. Your API key stays on the server.

Credits

This plugin uses the open-source KittenTTS speech synthesis models from KittenML and bundles eSpeak-NG (GPL-3.0-or-later) for browser phonemization.

Sahajanand Post to Speech is developed independently and is not affiliated with, endorsed by, or sponsored by KittenML.

External services

This plugin may contact the following third-party services when generating audio:

Browser mode (editor only)

  • Hugging Face — downloads speech model files configured in settings (default models published by KittenML). ONNX Runtime and eSpeak-NG WASM files ship inside the plugin package.

API mode (server-side, when configured)

  • Your configured TTS API URL — WordPress sends post text and receives WAV audio. Only the site administrator configures this URL and API key.

No data is sent to external services on the public frontend unless you use API mode during generation in the editor.

Screenshots

Blocks

This plugin provides 1 block.

  • Sahajanand Post To Speech Convert post content or custom text to speech with Sahajanand Post to Speech and embed an audio player.

Installation

  1. Upload the plugin folder to /wp-content/plugins/sahajanand-post-to-speech/ or install from the WordPress plugin directory.
  2. Activate the plugin through the Plugins screen.
  3. Go to Settings Sahajanand Post to Speech and choose Browser or API mode.
  4. Edit a post, add the Sahajanand Post To Speech block, and click Generate audio.

FAQ

Can I convert an entire blog post to audio?

Yes. Set Text source to Post content in the block sidebar. The block reads the full post text when you generate audio.

Is post text shown on the frontend?

No. Only the audio player is displayed to visitors.

Can I migrate from an older “Post to Speech” install?

This release uses the folder slug sahajanand-post-to-speech and block namespace sahajanand-post-to-speech/post-audio. Deactivate and remove any old plugin folder, install this version, then re-add the Sahajanand Post To Speech block to your posts. Plugin settings are preserved when option keys match.

Which mode should I use?

Use Browser on modern desktops with a good internet connection for the first model download. Use API if you host a compatible TTS HTTP service or need server-side generation.

Where do I get an API service?

API mode expects a REST API that accepts JSON and returns WAV audio. You can self-host a service using the open-source KittenTTS project.

Does this work on shared hosting?

Yes. Browser mode needs no special server software. API mode only requires wp_remote_post() outbound HTTP access to your API URL.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Sahajanand Post to Speech” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • Initial release of Sahajanand Post to Speech.
  • Sahajanand Post To Speech Gutenberg block — convert post content or custom text to audio.
  • Browser (WASM) generation with ONNX Runtime Web and bundled eSpeak-NG.
  • Optional API mode for server-side generation via a compatible TTS HTTP service.
  • Eight voices, adjustable speed, and audio saved to the media library.