Files
DPM/backend/pyproject.toml
T
Pine 9f64b4273b feat(s2s): 后端嵌入实时语音栈(云 ASR/LLM/TTS + 本地 VAD)
- s2s_bridge:同进程构建 s2s 管线池(silero VAD + dashscope ASR + qwen-plus + qwen3-tts)并起 RealtimeServer(:8765)
- ThreadManager 启动管线 handler 线程;启动重试与完整配置日志
- config:DPM_S2S_* 系列配置(开关/端口/模型/重试/日志级别)
- main lifespan 按 DPM_S2S_ENABLED 启停;pyproject 增加 s2s 依赖(httpx/nltk/scipy/torch 等)
2026-08-18 01:37:48 +08:00

35 lines
1.2 KiB
TOML
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.
[project]
name = "backend"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"certifi>=2024.2",
"fastapi>=0.110",
"paho-mqtt>=1.6,<2",
"python-multipart>=0.0.9",
"uvicorn[standard]>=0.29",
"dashscope>=1.26",
"jinja2>=3.1",
# ---- s2s 实时语音栈(VAD本地 + 云ASR/LLM/TTS----
# speech-to-speech 本体以 --no-deps 安装(路径依赖见下方 [tool.uv.sources]),
# 这里只声明其运行所需的最小依赖,避免 base 依赖把 mlx/transformers 等拖进来。
"httpx>=0.28",
"nltk==3.9.4",
"numpy>=1.26",
"openai==2.28.0",
"scipy>=1.10",
"soundfile>=0.13",
"torch>=2.4",
"transformers>=4.40",
"websockets>=12",
"ultralytics>=8.4.121",
]
[tool.uv.sources]
# 补丁后的 s2s 云化栈,已 vendor 进项目(backend/vendor/s2s-cloud),相对路径,无跨项目依赖
# 说明:speech-to-speech 以 `uv pip install --no-deps --no-build-isolation -e vendor/s2s-cloud`
# 手动安装(避免其 base 依赖把 mlx/transformers 等拖入);此处仅作路径声明。
speech-to-speech = { path = "vendor/s2s-cloud" }