BACK TO DIRECTORY

WP Speech Contents

by shin1kt

0.0
(0 ratings)

Displays a button to speech the content.
Single page only
Web Speech API compatible browser only

Web Speech API Browser compatibility.

Example

You can change the display position with a filter hook.

add_filter( 'wp-speech-contents_mode', function () {
    return 'bottom'; // top or bottom
});

You can change the content to be read out with the filter hook.

add_filter( 'wp-speech-contents_content', function ( $content ) {
    $content = preg_replace('/\pS/u','',$content); // Delete symbols etc.
    $content = 'Speech starts!.'.$content; // First "Speech starts!"
    return $content;
});

You can Setting the language to be read out with the filter hook.

add_filter( 'wp-speech-contents_language', function ( ) {
    return 'ja-JP';
});

Plugin Details

Active Installs
30
Total Downloads
1,640
Version
0.3.2
Requires WP
4.8
Requires PHP
Tested Up To
4.8.30
Added
2017-09-13
Last Updated
2017-09-13 8:56pm GMT

Ratings

5
0
4
0
3
0
2
0
1
0