7f25c8f6bb
- 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 不启动/重启服务,由用户操作)
10 lines
383 B
Python
10 lines
383 B
Python
from speech_to_speech.LLM.utils import remove_unspeechable
|
||
|
||
|
||
def test_remove_unspeechable_normalizes_smart_apostrophes() -> None:
|
||
assert remove_unspeechable("I’ll reply if here’s 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 "
|