Moodle Plugins directory: SimpleSpeak text-to-speech | Moodle.org

SimpleSpeak text-to-speech
Filters ::: filter_simplespeak
Maintained by
Nick Freear
A Moodle filter to provide speech synthesis (text-to-speech/ TTS) services for arbitrary text.
Latest release:
3 sites
26 downloads
13 fans
Current versions available: 1
A filter to provide speech synthesis (text-to-speech/ TTS) services for arbitrary text. Text such as [Speak] Hello world! [/Speak] is replaced with a button with the text as a label. Press the button, and the text is spoken!
This is beneficial, for example, when teaching younger children. And for accessibility to those with disabilities.
Requirements: tested with Moodle 1.9.7 and 2.0.2 (all Moodle 1.9.x and 2.0.x should work). Requires Javascript. Requires a TTS service - see Readme.
Uses: jQuery (v1.3.2).
Installation
- Download and unzip the code files. Copy to the directory on the server, eg.
/var/www/moodle/filter/simplespeak/
- Log in to Moodle as admin, visit `Site Administration | Modules | Filters | Manage Filters`. Scroll down and click on the icon for Simplespeak to enable it.
- Choose SimpleSpeak under Filters, and add a TTS service. Or set in config.php, eg.
$CFG->simplespeak_service_url = 'http://example.org/cgi-bin/espeak/getsound.pl?lang=!LANG&text=!TEXT';
The string can contain two placeholders, !TEXT and optionally !LANG (language). This service can be local, or third-party - see Readme. - Ensure that the directory $CFG->datarootis writeable by the Apache user, or create a writeable cache directory,
$CFG->dataroot/simplespeak/cache/
Usage
Simple example. Enable the filter (admin). Then, type the following in a Moodle resource:
[Speak] Hello world! [/Speak]
Contributors
Nick Freear (Lead maintainer)
Please login to view contributors details and/or to contact them
Very strange. The same filter which works on Moodle 1.9.15, with the setting text of:
http://translate.google.com/translate_tts?tl=en&q=!TEXT
doesn't work in Moodle 2.5. I can't figure out why. Any ideas?
currently it supports only 100 chars with tag if it exceeds it not working. Is there any way to increase the chars?
Does this plugin work in Moodle version 2.8?
Regards,
Rges
Install plugin from ZIP file
Validating filter_simplespeak ... Error
[Error] Plugin does not declare its component name [null]
Installation aborted due to validation failure
Do you know what I should do? Thank you for your help!