Dynamic voice TTS


Adds real-time dynamically voiced player proximity chat, train stop announcements and speakers. 314 custom voices for multiplayer. Calculates volume and direction based on source location. Running included python script in background will synthesize audio. One click install, read instructions. Tags: Text to speech, text-to-speech, voice chat, accessibility, messages, audio, fun.

Content
a month ago
1.1
87
Transportation Trains Circuit network
Owner:
estgamer
Source:
https://github.com/lassethorlepik/fac...
Homepage:
N/A
License:
MIT
Created:
2 months ago
Latest Version:
0.1.1 (a month ago)
Factorio version:
1.1
Downloaded by:
87 users

This mod integrates Text-To-Speech (TTS) into Factorio, providing an immersive auditory experience by voicing specific in-game events. Stereo audio is supported for all sounds - voice will come from a direction and have correct volume depending on the distance of the source. To use this mod, follow the setup instructions and keep the accompanying Python script running in the background while playing.

Demo

Following links include short clips showing basic functionality:
Train voice in action
Multiplayer chat in action

Setup Instructions

  1. Unpack the contents of the zip file into the mods folder of Factorio.
  2. Navigate to /PythonScript/ and run launcher.py. This script will set up a virtual environment, install necessary dependencies, and start the Python program.
  3. Ensure you have an active internet connection as this mod utilizes Edge TTS for voicing text.

Features

Player Chat Text-To-Speech

  • Player messages in chat are voiced through TTS.
  • Each player can choose their own voice, that is heard by others in multiplayer.
  • Proximity chat is enabled by default, allowing you to hear messages from players within a 250 tile radius.
  • This feature can be toggled off if desired.

Train Stop Announcements

  • When a player is within 150 tiles of a train stop and a train arrives, the mod will announce the current and next stops.
  • Announcement text can be customized.
  • This feature can be disabled by each player.

Custom Voices

  • There are 314 supported voice models in different languages and genders.
  • Swap models and all settings at runtime, no reloads necessary for both factorio and the python script.
  • You can customize the speed and pitch of the voice.
  • If any read text includes a tag with model name, for example: [MODEL=en-GB-RyanNeural], then it will override the used voice model for that text.

TTS Speakers

  • TTS speakers voice the text in their memory when they receive a green signal. Text can be edited by interacting with the speaker.
  • If a TTS speaker receives an info signal, it will voice the number of the green signal.

Dependencies

  • An active internet connection for Edge TTS.
  • Python installed.
  • Python environment set up through the provided launcher.py script.
  • Factorio base game

Usage

Keep the Python script running in the background while playing Factorio to enjoy real-time voice notifications of in-game events.