Skip to content

mixerrules/TF2ChatToTTS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TF2ChatToTTS

TF2 Chat To TTS is an exteneral script/app, made using TypeScript and Deno, that reads from a TF2 Log File and prints out any chat messages. Note: This is tested and built for windows since it relys on Microsoft TTS voices.

(THIS SHOULD ALSO WORK FOR ANY SOURCE GAME BUT I HAVE ONLY TESTED IT WITH Team Fortress 2)

Features:

  • Team Only mode
  • Filter Out "Trade Chat"
  • Swear Filter:
    • None (no filter)
    • Light (slurs and extremes)
    • Heavy (Filters Everything basically)
  • Changable TTS Voice
  • Disable the reading of names

screenshots:

alt text

Requirements:

Note: there are no compiled binaries due to Deno not supporting the compiling of NPM & Node packages, so it will have to be started by command line or a bat file.

TF2 Setup:

  • Open Steam
  • Find Team Fortress 2 In your library
  • Right click on the name in the library
  • Click "properties"
  • Under launch options add: +con_logfile "FILENAME.log" (change "Filename" to whatever you want the file to be named: Default is "ttslog")
  • Start game.

App Setup:

  • Download the Latest Version of Deno.
  • Download the Latest Version of TF2 Chat To TTS.
  • Extract it to the location of your choosing.
  • Optional: edit the config "-settings.json" (Only change the "consoleLogFile" and "autoStart" options)
  • Open the folder in Terminal or CMD.
  • Start the TTS using the Line:
deno --unstable run --allow-ffi --allow-net --allow-write --allow-read --allow-run app.ts 

How to get More TTS voices:

You can change the TTS voice using the windows built-in voices, go to this url in your browser: ms-settings:speech

Known issues:

  • (Possibly Fixed) Sometimes when starting the app it will crash with a "Not Ready State" error, run it again it should fix itself.
  • Some languages may not get printed out by the TTS (blame javascript)

Future roadmap:

  • redo basically all of the tts window layout
  • compile into an exe when NPM is supported by deno
  • allow players to have a different voice than default (set by user)

About

Read out TF2's chat in basically real time using TTS made is TypeScript and Deno

Topics

Resources

Stars

Watchers

Forks