A visual editor for building custom audio blocks. Pick your text, voice, and player options. Preview the result. Copy the generated shortcode and paste it into any post, page, or widget.
When to use it
Use the Shortcode Generator when you want:
- Audio from text that is not inside a post body (headers, footers, sidebars, landing pages)
- A different voice or model than your site default on one specific piece of content
- An autoplay or looping player
- A custom label above the player
For regular post audio, you do not need this. TTSWP adds the player automatically.
Build a shortcode step by step
- Go to Tools → Shortcode Generator.
- Type or paste the text you want narrated in the main text box.
- Pick a voice from the right panel. Change the model if needed.
- Set player options: label, autoplay, show download, show time, loop, volume and speed controls.
- Click Play to preview. You hear the audio as the visitor would.
- Click Copy shortcode.
- Paste the shortcode into any post, page, widget, or theme template.
Where you can paste shortcodes
- Any post or page (classic editor, block editor, Gutenberg custom HTML block)
- Widgets that support shortcodes
- Theme templates via
do_shortcode() - Elementor shortcode widget
- WPBakery shortcode element
The generated shortcode
A typical generated shortcode looks like this:
[mementor-tts voice="IKne3meq5aSn9XLyUdCD" model="eleven_flash_v2_5" label="Listen to this article" autoplay="no" download="yes"]
Your text goes here.
[/mementor-tts]
See Shortcodes reference for every available attribute.
Character limit
Shortcode text counts against the same per-request character limit as regular post audio. See model limits in Choose a voice.
Credits
Clicking Play in the preview uses credits the same way any generation does. If you preview three voices, you pay for three generations.
If you only want to test voice sounds, use the preview icons on the Voices page instead - those do not cost credits.