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.
Check out: Voice TTS EN pre-rendered if you do not wish to use python.
The pre-rendered version performs worse and is far more limited, but works out of the box and does not require user to have python running.
Demo
Following links include short clips showing basic functionality:
Train voice in action
Multiplayer chat in action
Setup Instructions
- Unpack the contents of the zip file into the
mods
folder of Factorio. - Navigate to
/PythonScript/
and runlauncher.py
. This script will set up a virtual environment, install necessary dependencies, and start the Python program. - 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.