# Shared runtime config for /storage01/home/xll/202607/voice/docker-compose.yml

# Speakr / ASR
USE_ASR_ENDPOINT=true
ASR_BASE_URL=http://asr-test:59805
ASR_DIARIZE=true
ASR_MIN_SPEAKERS=1
ASR_MAX_SPEAKERS=10

# LLM used by Speakr summaries and chat
TEXT_MODEL_BASE_URL=http://192.168.0.46:59800/v1
TEXT_MODEL_NAME=46-qwen3.5-35B
TEXT_MODEL_API_KEY=none

# Realtime WebSocket bridge
FUNASR_WEBSOCKET_IP=ws://fastapi-wss:10095/websocket_offline
TARGET_WS_URL=ws://funasr-runtime-2pass:10095
# Optional A/B target for the official C++/ONNX FunASR runtime service:
# TARGET_WS_URL=ws://funasr-online:10096
REDIS_URL=redis://redis:6379/0
LLM_API_KEY=none
LLM_BASE_URL=http://192.168.0.46:59800/v1
LLM_MODEL=46-qwen3.5-35B
USE_LLM_ROLE_IDENTIFICATION=false
LLM_ROLE_CANDIDATES=主持人,正方辩手,反方辩手,计时员,评委,嘉宾,未知
LLM_ROLE_MIN_TEXT_LEN=8
LLM_ROLE_CACHE_CONFIDENCE=0.82
LLM_ROLE_HISTORY_MAX_CHARS=1200

# ASR voiceprint adapter
VOICE_DETECTED_URL=http://voice-dected:8000
VOICEPRINT_STORE=/data/asr_voiceprints.json
VOICEPRINT_MATCH_THRESHOLD=0.45
REALTIME_PARTIAL_MIN_SECONDS=1.5
REALTIME_PARTIAL_INTERVAL_SECONDS=2.0

# fastapi_wss legacy/local ASR-with-speaker helper
ASR_LOCAL_URL=http://asr-test:59805/asr
SPEAKER_DET_URL=http://voice-dected:8000/extract_embedding

# Runtime
DEVICE=cuda
CUDA_VISIBLE_DEVICES=0
NVIDIA_VISIBLE_DEVICES=7
PYTHONUNBUFFERED=1
