Displays a button to speech the content.
| Author: | kt_shin1 (profile at wordpress.org) |
| WordPress version required: | 4.8 |
| WordPress version tested: | 4.8.17 |
| Plugin version: | 0.3.2 |
| Added to WordPress repository: | 13-09-2017 |
| Last updated: | 13-09-2017
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | http://www.katacom.jp/a/wp-speech-contents/ |
| Total downloads: | 1 830 |
| Active installs: | 30+ |
![]() Click to start download |
|
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';
});
FAQ
ChangeLog
