Moodle Plugins directory: oohoo - Text to Speech | Moodle.org

oohoo - Text to Speech
Blocks ::: block_tts
Maintained by
Patrick Thibaudeau,
Nicolas Bretin
OOHOO Text to Speech is a Moodle block that reads outloud the content of a resource
Latest release:
107 sites
15 downloads
18 fans
Current versions available: 1
This block adds text to speech functionality to Moodle
It can be configured to use either the Google speech engine or the Microsoft speech engine. When added to a resource such as a page, it reads the contents.
There is also a lexicon to add pronunciations for words that it pronounces improperly. For example, it could possibly say I.V. for the text IV. It should, however, say 4. You could add in the lexicon IV = four and it willpronounce it properly.
A special thank you to Ryan Thomas who is the original author of this block.
Useful links
Contributors
Patrick Thibaudeau (Lead maintainer)
Nicolas Bretin: Developer
Please login to view contributors details and/or to contact them
Thanks it works better with this server!
So on this page, with firebug you have the request : http://smartmove.moodle.com.au/blocks/tts/app/_php/tts_config.php?courseid=3&service=google&voice=en&_=1366382325334
And it should return JSON. But if you look at the response it start with a notice:
Strict Standards: Creating default object from empty value in /home/sli/public_html/smartmove/config.php on line 5
It is generally because the config.php missed the $CFG = new stdClass();
It is because your config.php file is from an older version of moodle and of course this file is not updated when you update Moodle.
So just add this line to your config file and try again.
But I'm not sure why this error doesn't show up on your normal pages...
Nicolas
"The reason the div id was renamed was to avoid conflicts with Moodle's base theme CSS. The Moodle_25 branch of the bootstrap theme does not rely on base CSS anymore so I guess we could change the names back to region-main."
So, fingers crossed you don't need to spend time implementing any changes to the block in order to ensure compatibility. Btw, just to confirm I followed your suggestion and modified the selector definition and the blocks works fine now.
Thanks again.
That’s fixed it! The plug-in is now light grey ,the spinning icon has stopped and I can now click “play”. Thank you so much for your help.
Just for clarification and reference for anyone else who experiences a problem with the plug-in being greyed out and spinning. The fix is to add $CFG = new stdClass(); to the top of the moodle/config.php file .
I now just have one further small problem. The TTS system works with Microsoft but not with Google. If I click on play with the system set to Microsoft I get some sound but it is fairly slow and stuttered. I understand that the Google TTS is smoother, so I thought that I would try that one. However I get no sound via Google
See the following page
http://smartmove.moodle.com.au/course/view.php?id=3
It highlights the first word but no sound and I cannot get past the first word
I attach the Firebug debug info here. The first part is Microsoft (which works, The second is Google, which produces no sound)
http://smartmove.moodle.com.au/misc/TTSlog2.txt
I hope that we can resolve this and then I can leave you in peace!
Thanks again for your help to date
Regards
Tim
Apparently the Google service refuse to serve the mp3...
Can you go on github => https://github.com/oohoo/moodle-block_tts/issues/2
And follow my instructions in order to modify a file in your TTS block.
I just don't want to publish something that doesn't work on Moodle!
Thank you for your return!
Nicolas
I am able to download the test file from here without any problems
http://translate.google.com/translate_tts?tl=en&ie=UTF-8&q=test%201%202%203
I added the new file to /tts/app/_php/_services/google_tts_config.php
(Note that I could only find this file in _services).
However unfortunately I still have the same problem playing Google TTS
Sorry about this. Can you please let me know if there is anything else that I can do to troubleshoot the problem
Thanks
Tim
I wish to know, when you people release plugin for moodle 2.6. I wish to use this plugin and eagerly waiting for it.
We use Moodle 2.6.4 (Build: 20140714) and the same issue with the gray box and the spinning wheel. Any help will be appreciated.
This plugin seems to be awesome. Unfortunately my version of Moodle is 2.7. Are there any chances that an update will be released for this version ?
Thank you.
It seems to be not working. I am running Moodle version 3.7 locally.
thanks,
I installed this plugin but its not working properly
Its showing javascript error Uncaught TypeError: Cannot read property 'msie' of undefined.
Please help me
My moodle version is 3.2