Text to Speech: let visitors listen to your content

On this page

Text to Speech reads your content aloud using the voices built into your visitor's browser. It needs no API key and costs nothing to run.

Go to Voice Widgets Pro > Text to Speech. Click Save Settings after any change.

Turn on the "Listen To This" player

In General Text To Speech Settings:

  1. Set Enable Voice Text Speech to ON.
  2. Choose a Voice. The list shows the voices available in your own browser.
  3. Adjust Pitch, Rate (speed) and Volume. The default for each is 1.
  4. Change the Button Text if you like. The default is "Listen To This".
  5. Choose the Player Postion: Before Title, After Title, Before Content or After Content.
  6. Choose where the player appears:
    • Show on Pages: All Pages or Selected Pages Only.
    • Show on Blog Posts: YES or NO.
    • Show on Custom Post types: None or choose specific types.
  7. Set the button's Background Color, Background Hover Color and Text Color.
  8. Click Save Settings.
General Text To Speech Settings with Enable Voice Text Speech, Voice, Pitch, Rate, Volume and Button Text

Note

Voices come from the visitor's browser and device, so a visitor may hear a different voice from the one you picked if theirs isn't available.

Add read-aloud buttons with shortcodes

Use these shortcodes to place Text to Speech exactly where you want it.

Read the whole page: add a button that reads the page's content aloud.

[wp_button_voice btn_text="Listen to this"]

Read a specific passage: wrap the text you want read. Use buttontext and buttonstop to set the button labels. The button appears before the text.

[wp_button_text_to_speech buttontext="Play" buttonstop="stop"]Your text here[/wp_button_text_to_speech]

Voice box: a text box where visitors paste or type any text and click Play to hear it.

[wp_button_voice_box]

Here are all three on a page, plus the floating player:

A page with a read-aloud button (1), a passage with a Play button (2), a voice box with a Play button (3) and the floating Listen To This button (4)

Floating player button

The floating button stays on screen while visitors scroll, so they can start or stop listening at any time.

In Floating Player Button Settings:

  1. Set Enable Floating Button to ON.
  2. Choose where it shows: Show on Home Page, Show on Blog Posts, Show on Pages (All Pages or Selected Pages Only) and Show on Custom Post types.
  3. Change the button texts: Listen To This for the start label and Stop to Listen for the stop label (default "Stop Listening").
  4. Set the Background Color and Background Hover Color.
  5. Click Save Settings.

Note

Screenshot coming soon: the Floating Player Button Settings section on the Text to Speech page (/wp-admin/edit.php?post_type=qcvoicemsg_record&page=wpvoice_to_text_speech)