Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

echo errors in the log via TTS #2

Open
C-Loftus opened this issue Nov 19, 2023 · 3 comments
Open

echo errors in the log via TTS #2

C-Loftus opened this issue Nov 19, 2023 · 3 comments

Comments

@C-Loftus
Copy link
Owner

Terminals and other programs that operate upon a text log are usually not very accessible. it would be useful to try and find a way to watch the log file see if there is any errors and if so echo something to the user via text to speech.

This functionality could also be useful for users who do have full sight but still don't want to switch back and forth for the log on one monitor

@C-Loftus
Copy link
Owner Author

I am realizing this is going to cause issues given the fact that the current text to speech implementation on windows requires you to spawn a thread and spawning a thread in talon always races a warning in the log
Need to come back to this

@C-Loftus
Copy link
Owner Author

aegis has said that the proper way to do this would be to spawn one thread and then do message passing with a queue object. so you would only get the warning on the initial startup of the thread but then after that would not have any additional warnings from extra threads unless you are spawning more on the reload of the file. it still would be good to ignore the first warning for this file specifically and this specific thread, so it's possible something hacky might need to be done such as waiting a specific amount of time after start up to spawn the thread

@C-Loftus
Copy link
Owner Author

Reading the log with fs.watch is not feasible so unclear what the proper way to do this would be without using a screen reader add-on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant