refactor(backend): 启动环境初始化与资源项目化(零跨项目依赖)

- main.py:uv run main.py 一键启动——读取 backend/.env、TORCH_HOME/NLTK_DATA 指向项目内缓存、certifi SSL + NO_PROXY 网络直连、默认开启 s2s,启动横幅
- vendor/:补丁后 s2s 云化栈移入项目(backend/vendor/s2s-cloud),pyproject sources 改相对路径
- .gitignore:忽略 .torch-cache / nltk_data 缓存
- AGENTS.md:进程管理铁律(AI 不启动/重启服务,由用户操作)
This commit is contained in:
Pine
2026-08-18 01:37:57 +08:00
parent 41e9681aa0
commit 7f25c8f6bb
198 changed files with 44792 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
from speech_to_speech.LLM.utils import remove_unspeechable
def test_remove_unspeechable_normalizes_smart_apostrophes() -> None:
assert remove_unspeechable("Ill reply if heres the plan.") == "I'll reply if here's the plan."
def test_remove_unspeechable_keeps_text_and_drops_emoji() -> None:
assert remove_unspeechable("Hello 👋 lobster 🦞") == "Hello lobster "