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.