Skip to content

Implementation of HTML5 Text Speech API as a WordPress Shortcode.

Notifications You must be signed in to change notification settings

miya0001/speech-shortcode

Repository files navigation

Speech Shortcode for WordPress

Build Status

Implementation of HTML5 Text Speech API as a WordPress Shortcode.

Demo: https://miya.io/2017/02/10/html5-web-speech-api/

How to Use

* [speech]He has a very relaxed attitude towards work.[/speech]
* [speech]Charles Darwin developed the theory of Evolution.[/speech]

Arguments

  • lang - Language that you want it to speak. Default value is "en-US".
  • voice - Voice. Default value is "".
  • rate - Default value is 1.

Example:

[speech lang="en-US" voice="Alex"]Hello World[/speech]

Filter Hooks

  • speech_shortcode_default_lang
  • speech_shortcode_default_voice
  • speech_shortcode_default_rate

Screenshots