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:
97 sites
24 downloads
17 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
I just downloaded oohoo-moodle-block_tts-ac1c215.zip from github, and when I tried to edit the English language strings in order to make a translation for later upload to AMOS, I got the following error:
Error writing to database
Debug info: Duplicate entry 'es_mx-378-AM' for key 'mdl_toolcust_lancomstr_uix'
INSERT INTO mdl_tool_customlang (lang,componentid,stringid,original,master,timemodified,outdated,local,timecustomized) VALUES(?,?,?,?,?,?,?,?,?)
[array (
0 => 'es_mx',
1 => '378',
2 => 'AM',
3 => 'AM',
4 => 'AM',
5 => 1352079651,
6 => 0,
7 => NULL,
8 => NULL,
)]
Error code: dmlwriteexception
Stack trace:
line 410 of \lib\dml\moodle_database.php: dml_write_exception thrown
line 1029 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1071 of \lib\dml\mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
line 190 of \admin\tool\customlang\locallib.php: call to mysqli_native_moodle_database->insert_record()
line 60 of \admin\tool\customlang\index.php: call to tool_customlang_utils::checkout()
I have mexican spanish besides English language pack, Running Moodle 2.3.2+ (Build: 20120914) in Windows 7 64 bits.
I will appreciatte any help about this error.
... Hi,
I just downloaded oohoo-moodle-block_tts-ac1c215.zip from github, and when I tried to edit the English language strings in order to make a translation for later upload to AMOS, I got the following error:
Error writing to database...
... Removing the block and deleting the folder effectively removed the error.
Thank you
$string['am'] = 'am';
$string['AM'] = 'AM';
$string['pm'] = 'pm';
$string['PM'] = 'PM';
Although these do not conflict in normal php due to case, it does in the Moodle language customization. This has now been fixed.
Github has been updated with the latest version.
One other thing: can I make this block visible to a few users? Just the one that need the TTS block?
For the time being the block is visible to all users. We would have to add that functionality in order to make viewable by certain users and not others. I'll discuss with my team and see if we can add this feature in the future.
I never seen this problem on my servers. The URL that you sent works perfectly for me.
It seems to be a problem like too much requests at the same time or at least in a short time.
How many users have you on your moodle and what is the average number of users connected at the same time ?
There is a cache system that keeps sounds in order to avoid to download them each time, but maybe it is possible to enhance that.
For now you can try to modify the $plugin->cron time in the version.php file to call the purge after more time.
Nicolas
The tests for both microsoft and google work fine. However when I go to a page the TTS block is dark grey and has a spinning timer in the middle as if it is trying to connect to something.
The only think I have done so far is upload the software and add the block. I presume that I can just highlight text on a resource and click play. It sounds too easy….Am I missing something!
Thanks in advance
Tim
This really sounds like a quota exceeded...
The problem we never heard about quota in these tools.
I know that Microsoft has a new API to do that, so maybe it will solve the problem, but it will probably take me time to integrate it.
I will keep you inform when we will start working on that!
Thanks for your patience,
Nicolas
The spinning timer is here during the initialization of the plugin and the loading of the firsts words.
So if it's playing, it's working!
To play a specific sentence, first start the player, give it some time to download the sounds and just click on the first word you want to play. It will automatically start from here.
If it is highlighted in red, that means it is not yet downloaded. Just wait and re-click!
Nicolas