File size: 4,487 Bytes
61ad06f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7ef1394
 
 
61ad06f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7ef1394
 
 
 
 
 
 
 
bf013e2
 
 
 
 
 
 
7ef1394
 
bf013e2
7ef1394
d745a13
 
 
 
 
 
7ef1394
 
bf013e2
7ef1394
 
 
 
d745a13
 
7ef1394
 
 
 
 
 
 
 
d745a13
 
 
 
 
7ef1394
 
 
 
 
 
 
 
61ad06f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# ============================================================================
# Environment Variables Template for PyCatan AI
# ============================================================================
# This file is a TEMPLATE - it will be committed to Git.
# Copy this file to .env and fill in your actual API keys.
#
# SETUP INSTRUCTIONS:
# 1. Copy this file: cp .env.example .env
# 2. Edit .env and paste your actual API keys
# 3. NEVER commit the .env file to Git!
# ============================================================================

# ----------------------------------------------------------------------------
# LLM API Keys
# ----------------------------------------------------------------------------
# Get your API keys from:
# - Gemini: https://aistudio.google.com/app/apikey
# - OpenAI: https://platform.openai.com/api-keys
# - Anthropic: https://console.anthropic.com/settings/keys

# Google Gemini API Key (recommended for development)
GEMINI_API_KEY=

# OpenAI API Key (optional)
OPENAI_API_KEY=

# Anthropic Claude API Key (optional)
ANTHROPIC_API_KEY=

# ElevenLabs API Key (optional, for AI chat text-to-speech)
ELEVENLABS_API_KEY=

# Azure OpenAI (optional)
AZURE_OPENAI_KEY=
AZURE_OPENAI_ENDPOINT=

# ----------------------------------------------------------------------------
# Optional: LLM Configuration Overrides
# ----------------------------------------------------------------------------
# You can override default settings via environment variables

# Default LLM provider (gemini, openai, anthropic, azure)
# DEFAULT_LLM_PROVIDER=gemini

# Default model name
# DEFAULT_MODEL_NAME=gemini-2.0-flash-exp

# Default temperature (0.0 to 2.0)
# DEFAULT_TEMPERATURE=0.7

# ----------------------------------------------------------------------------
# Optional: ElevenLabs Text-to-Speech for AI Table Talk
# ----------------------------------------------------------------------------
# Set TTS_PROVIDER to gemini, elevenlabs, or off. This works for
# play_ai_auto.bat and PLAY_WITH_SET_SETTINGS.bat.

TTS_PROVIDER=off

# Generated voice clips are cached per session by default:
#   <session_dir>/tts_cache/
# Set AI_TTS_CACHE_ENABLED=false to disable this, or override AI_TTS_CACHE_DIR
# if you intentionally want a shared cache.
AI_TTS_CACHE_ENABLED=true
# AI_TTS_CACHE_DIR=

# Gemini TTS uses GEMINI_API_KEY by default.
GEMINI_TTS_ENABLED=true
GEMINI_TTS_MODEL_ID=gemini-3.1-flash-tts-preview
GEMINI_TTS_VOICE_NAME=Kore
# Per-player voices are keyed by player slot, so renaming Alice/Bob/etc.
# does not change who sounds like whom. PLAYER1 and PLAYER_1 both work.
GEMINI_TTS_VOICE_PLAYER_1=Achernar
GEMINI_TTS_VOICE_PLAYER_2=Achird
GEMINI_TTS_VOICE_PLAYER_3=Alnilam
# GEMINI_TTS_VOICE_PLAYER_4=Kore
GEMINI_TTS_PLAY_AUDIO=true
GEMINI_TTS_VERIFY_SSL=true
GEMINI_TTS_PROMPT_TEMPLATE=[casual, conversational, Israeli Hebrew pronunciation] {text}

# ElevenLabs TTS requires ELEVENLABS_API_KEY and a voice ID.
#
# Set ELEVENLABS_DEFAULT_VOICE_ID to any voice from your ElevenLabs library.
# Per-player voice overrides are optional and should be keyed by player slot,
# so renaming the player does not change the voice.

ELEVENLABS_TTS_ENABLED=false
ELEVENLABS_DEFAULT_VOICE_ID=
ELEVENLABS_TTS_MODEL_ID=eleven_v3
ELEVENLABS_TTS_OUTPUT_FORMAT=pcm_16000
ELEVENLABS_TTS_PLAY_AUDIO=true
ELEVENLABS_TTS_VERIFY_SSL=true

# Optional per-player voices. PLAYER1 and PLAYER_1 both work.
# ELEVENLABS_VOICE_PLAYER_1=
# ELEVENLABS_VOICE_PLAYER_2=
# ELEVENLABS_VOICE_PLAYER_3=
# ELEVENLABS_VOICE_PLAYER_4=

# Optional tuning
# ELEVENLABS_TTS_LANGUAGE_CODE=he
# ELEVENLABS_TTS_STABILITY=
# ELEVENLABS_TTS_SIMILARITY_BOOST=
# ELEVENLABS_TTS_STYLE=
# ELEVENLABS_TTS_USE_SPEAKER_BOOST=

# ----------------------------------------------------------------------------
# Development Settings
# ----------------------------------------------------------------------------

# Enable debug mode for detailed logging
# DEBUG_MODE=false

# Log directory
# LOG_DIRECTORY=logs/ai_agents

# ----------------------------------------------------------------------------
# Notes
# ----------------------------------------------------------------------------
# - The .env file is ignored by Git (see .gitignore)
# - Never share your .env file or commit it to version control
# - Keep your API keys secret and rotate them regularly
# - Each developer should have their own .env file with their own keys
# ============================================================================