Files
aistream-test/audio_ai_chat/.env.example
T
2025-12-02 21:04:46 +08:00

32 lines
843 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 服务端口
APP_PORT=8000
# 日志级别(DEBUG/INFO/WARNING/ERROR
LOG_LEVEL=INFO
# 日志文件路径
LOG_FILE=logs/app.log
# ASR服务配置
ASR_SERVICE_URL=http://localhost:5000/asr
ASR_TIMEOUT=30 # 超时时间(秒)
ASR_RETRY_TIMES=2 # 重试次数
# LLM服务配置
LLM_SERVICE_URL=http://localhost:6000/chat
LLM_TIMEOUT=60
LLM_RETRY_TIMES=2
LLM_MODEL=gpt-3.5-turbo # 可选:指定大模型版本
# TTS服务配置
TTS_SERVICE_URL=http://localhost:7000/tts
TTS_TIMEOUT=30
TTS_RETRY_TIMES=2
TTS_VOICE=female # 可选:指定语音类型
# WebSocket配置
WS_MAX_SIZE=10485760 # 最大消息大小(10MB
WS_PING_INTERVAL=30 # 心跳检测间隔(秒)
WS_PING_TIMEOUT=10 # 心跳超时时间(秒)
# 加密配置(ProtocolCodec依赖的密钥等)
ENCRYPT_KEY=your_secret_key_123
ENCRYPT_IV=your_iv_456