TikTok Live Reader

This add-on connects to TikTok Live streams and extracts information from them in real time. It uses the TikTokLive Python library to access a specific live stream. The following features are supported: TikTok Live Reader allows hosts or viewers to monitor essential stream data without external tools. The data is saved in text files, located in Documents\Tiktok live folder. They can be reviewed later. The add-on extracts the following data types into separate files:

Settings

TikTok Live Reader has its own settings window, which can be opened with the shortcut NVDA+Shift+Control+L. It contains 3 tabs:

General

This section includes the following settings:

Events

This section contains checkboxes to determine which data is recorded in events.txt (Comments, Followers, Gifts, Likes, Requests, Shares, and Visitors). Additional settings:

Auto speak

This section defines which data is announced when the Auto speak function is enabled. Activate it via NVDA+Shift+Control+S or with the "Auto speak selected events" check box. When it's active, specific events can be selected for automatic reading (e.g., "New follower: Username"). Sounds and messages are played with a one-second pause between them and are stored in temporary files to ensure they are reported in order during high-traffic streams. The sound and auto-speak functions work independently.

How to use the add-on

Press NVDA+Shift+Control+T and the TikTok Live Reader client will try to connect to the user. Connection status is announced automatically. Once connected, the following shortcuts are available: Press NVDA+Shift+Control+T to terminate the add-on session.

Notes

Limitations

Changelog

Version 1.5

  1. Stabilized the logic for loading and disabling the add-on.
  2. Migrated to the NVDA addon template for improved automation and localization.
  3. Stabilized the logging logic for likes, shares, and follows.
  4. The Auto speak option is now respected from the add-on. Announcements start 10 seconds after a successful connection.
  5. The Auto speak tab now dynamically hides event options unless the main function is enabled.
  6. Fixed a bug where sounds and announcements would play immediately after restart of the add-on.
  7. Added shortcut NVDA+Shift+Control+P to toggle sounds during an active session.
  8. Added access keys (Alt + letter) for all settings.
  9. Optimized the Audio volume slider logic. Its label is now Volume.
  10. Settings are now saved dynamically. Background logging continues while the settings window is opened.
  11. Automatic connection to the new user if it's changed in active session.
  12. Added support for tracking guest join requests. They are saved in requests.txt file.
  13. A new "Requests" option in settings and a corresponding sound notification for the event.
  14. Added username field validation: must be at least two characters and can contain only Latin letters, numbers, dots and underscores.

Acknowledgements

Final Clarifications

This add-on was developed with the assistance of language models ChatGPT, Google Gemini, and Claude OPUS 4.6 Thinking. It is distributed under the GNU General Public License 2.0.