Skip to content

TTS for tf2 gaming. Type something in chat and it will be said in vc using TTS.

License

Notifications You must be signed in to change notification settings

rootofminus1atu/tf2tts

Repository files navigation

tf2tts

A tool that converts your tf2 chat messages to speech and plays them through vc.

Installation

WIP

Architecture

architecture

The app relies on tf2 saving its console output to a file, as well as on VBCable to actually redirect audio to TF2.

The main components of the app (LogWatcher, MessageProcessor, AudioPlayer) are connected to each other in an event-driven way, utilizing channels as queues. This might change in the future.

The app also leverages plugin architecture to allow for custom TTS implementations. It can be done by implementing the Tts trait and passing it to the main App struct.

Todos

In no particular order

Alpha:

  • rearrange the tts module, maybe move tts_impl to an example provider
  • add audio device to config
  • potentially extract config into a config file
  • turn this into a workspace, the main core lib, a terminal/gui app, etc.
  • examples
  • examples with custom tts providers as well
  • modular error handling, so that this could be used in a gui/terminal app in the future, for example an app might want to catch critical errors and restart one of the components, or they might want to catch non-cricial errors and notify the user about them
  • some docs
  • create a simple gui
  • finish the installation guide
  • release on crates.io

Future:

  • improve the default tts_impl, fetch concurrently rather than sequentially
  • better logging
  • maybe figure out RVC for more voice choie freedom
  • possibly improve error handling or sender/receiver stuff
  • allow for more config options, such as providing a vc key other than the default V
  • installer for this? not sure how one would achieve that considering that it involves external software and running commands in tf2

Contributing

Issues and pull requests are welcome!

Credits

Inspired by TF2ChatToSpeech

About

TTS for tf2 gaming. Type something in chat and it will be said in vc using TTS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages