Step 1 — Create a Google Cloud Project
- Go to console.cloud.google.com
- Log in with your Google account
- Click the Project Dropdown at the top left → New Project
- Name it something recognizable (e.g.
MyServer-TTS) and click Create
Step 2 — Enable the Text-to-Speech API
- Make sure your new project is selected at the top
- Search for Cloud Text-to-Speech API in the search bar and select it
- Click the blue Enable button
Google requires an active billing account to enable APIs. You’ll need to attach a card, but the free tier handles normal server traffic without charge.
Step 3 — Generate Your API Key
- Open the left navigation menu → APIs & Services → Credentials
- Click + CREATE CREDENTIALS → API Key
- Copy the generated key
Step 4 — Add to config.lua
Disabling AI Voice
If you prefer traditional sound effects instead, set:.ogg files in the appropriate directory for your chosen sound script and update Config.CustomSounds with the correct filenames.