feat: support both JSON and form-urlencoded body; change default port to 3333

This commit is contained in:
TTS Service
2026-03-27 13:52:11 +08:00
parent 6c5caa308d
commit 4b5797575d
4 changed files with 32 additions and 22 deletions

View File

@@ -12,7 +12,7 @@ MIMO_VOICE = os.environ.get("MIMO_VOICE", "mimo_default")
# 服务器配置
SERVER_HOST = os.environ.get("SERVER_HOST", "0.0.0.0")
SERVER_PORT = int(os.environ.get("SERVER_PORT", "17200"))
SERVER_PORT = int(os.environ.get("SERVER_PORT", "3333"))
# 音频存储目录
AUDIO_DIR = os.environ.get("AUDIO_DIR", os.path.join(BASE_DIR, "audio"))