PDA

View Full Version : Story and Reference Manual Text to Speech (for visually impaired)



bayne7400
September 8th, 2021, 12:56
I made this extension for a player that has a visual impairment. This extension is designed mainly to help you take the text from a reference manual inside Fantasy Grounds and add it to your clipboard (properly formatted) . As you may know reference manuals are locked and do not contain story entries so just copy paste is not an option.

https://forge.fantasygrounds.com/shop/items/213/view

I tested it extensively with 5E reference manuals using https://ttsreader.com/. It will also work with NPC notes tab and story entries.

Here is a short video on how it works inside FG.

https://youtu.be/qJGzseOWCok

The parser attempts to remove all special formatting, tables and images. The 5E ref manuals use a specific frame for tables so it will exclude that when it searches the DB but I also added some separate code that does a decent job. I have placed the code in Data so if anyone wants to provide any feedback I would most welcome it.

If your a user and need something added please just ask. I also made a few substitutions like change a "-" to "to", fixing a few of the special character types I found (&) and you might see some extra periods but that usually follows a header or title chapter to ensure the reader pauses and doesn't run the lines together.

If you find a bug let me know but please include the ref manual and page it occurred. I am still learning to code!

MeAndUnique
September 8th, 2021, 14:51
Fantastic idea! Great work and thanks for the contribution to the community!

bayne7400
September 8th, 2021, 15:15
Thanks a player was discussing this in a Discord channel so I thought it might be fun to do this to see if it can help.

gqwebb
December 23rd, 2024, 00:39
Thanks for the MOD it was helpful in the past. I recently tried it and it gives me this error.

[12/22/2024 7:07:17 PM] [ERROR] Script execution error: [string "Text To speech:scripts/manager_desktop.lua"]:3: attempt to call field 'registerSidebarStackButton' (a nil value)

And I do not see the ear icon any longer.

Thank you

bayne7400
December 24th, 2024, 02:45
You can now copy and paste story and ref manual entries which allow you to use a web based reader. I discontinued updates

gqwebb
December 24th, 2024, 04:45
You can now copy and paste story and ref manual entries which allow you to use a web based reader. I discontinued updates

Thanks for the update. It was helpful when I was last doing sessions. Have a blessed and Merry Christmas.