karashiiro / TextToTalk

Chat TTS plugin for Dalamud. Has support for triggers/exclusions, several TTS providers, and more!
MIT License
46 stars 30 forks source link

Is there a way to prevent it from speaking the things you say? #95

Closed karashiiro closed 1 year ago

karashiiro commented 2 years ago

Discussed in https://github.com/karashiiro/TextToTalk/discussions/94

Originally posted by **OmsagroSylph** April 15, 2022 I would like to prevent it from reading out things typed by me. I tried to use an exclusion which didn't seem to work, but maybe I didn't format things correctly.
ryankhart commented 2 years ago

I like this idea to not read text typed by the player. It might even make for a good default to exclude player chat.

karashiiro commented 2 years ago

This can be implemented by checking the sender SeString in the chat message handler, and seeing if the name equals the current player's name. Even better is if the SeString has a payload with an ID or something that uniquely identifies the current play from anything else with the same name, but I don't know what's in there off the top of my head.

karashiiro commented 1 year ago

Implemented in v1.19