I am trying to use the advance settings in the AI character chat in order to write a Javascript code that lets me scrape the message and output it to my computer for use in coqui-tts. I have coqui-tts set up with python flask in order to listen for the message but every time I try there seems to be errors. The main error I get in the Chrome console is about it being sandboxed. Can I get around this by editing the generator’s code itself instead of adding Javascript code to the advanced settings, or is the entire website sandboxed? Coqui-tts is old and outdated so I have been using the updated idiap/coqui-ai-tts in case that helps. I have it running on my computer perfectly so I do know that the only problem is getting the output from perchance.
Is your python flask server have an API that Perchance can post and receive from? You could possibly post into your local server, then maybe receive an audio file that would play in the browser. Here is an example code of using a TTS API for character TTS.