-

Note: You are currently viewing documentation for Moodle 3.10. Up-to-date documentation for the latest stable version of Moodle may be available here: Nick Freear/SimpleSpeak filter.

User:Nick Freear/SimpleSpeak filter: Difference between revisions

From MoodleDocs
(→‎TTS service: , Adding 'WebAnywhere')
(Adding 'category')
 
Line 22: Line 22:
[http://code.google.com/p/webanywhere/ WebAnywhere] for ideas.
[http://code.google.com/p/webanywhere/ WebAnywhere] for ideas.
Or it could be a third-party service. There are a number of TTS services
Or it could be a third-party service. There are a number of TTS services
emerging on the Web. I've been wary of saying to much, because in many cases
emerging on the Web. I've been wary of saying too much, because in many cases
I'm unclear on their terms of use. Please check with the service before
I'm unclear on their terms of use. Please check with the service before
proceeding. (And I accept no responsibility for your use of the services.)
proceeding. (And I accept no responsibility for your use of the services.) - [[User:Nick Freear|Nick Freear]].


Note, currently (May 2011) we need a service that returns an MP3 file:
Note, currently (May 2011) we need a service that returns an MP3 file:
Line 41: Line 41:


More to follow!
More to follow!
[[Category:Contributed code]]

Latest revision as of 10:03, 7 May 2011

SimpleSpeak TTS filter

A Moodle 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, teaching languages, 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 below).

Uses: jQuery (v1.3.2).



TTS service

You can install local software, eg. use eSpeak/LAME, see WebAnywhere for ideas. Or it could be a third-party service. There are a number of TTS services emerging on the Web. I've been wary of saying too much, because in many cases I'm unclear on their terms of use. Please check with the service before proceeding. (And I accept no responsibility for your use of the services.) - Nick Freear.

Note, currently (May 2011) we need a service that returns an MP3 file:

  • jTalkPlugin. Uses LAME and Festival. They've recently exposed their API, eg.
 http://speech.jtalkplugin.com/api/?usecache=true&speech=Hello+world
  • VozMe. Just discovered via the excellent Text to voice addon for Firefox. Exposes a popup Flash player - not directly useable yet, eg.
 http://vozme.com/text2voice.php?lang=en&gn=ml&text=Hello+world
 http://translate.google.com/translate_tts?lang=en&q=Hello+world


To use, log in to Moodle as admin, go to Site Admin | Plugins | Filters | SimpleSpeak, and enter the service URL in the settings form. Eg.

 http://speech.jtalkplugin.com/api/?usecache=true&speech=!TEXT

More to follow!