Merge branch 'refactor/backend-architecture' into development

This commit is contained in:
yangshilin
2026-03-18 17:18:23 +08:00
parent 2070a03d35
commit 48b70e1350
266 changed files with 12386 additions and 9690 deletions

10
api/app/ports/tts.py Normal file
View File

@@ -0,0 +1,10 @@
"""TTSProvider port — 文字转语音能力契约。"""
from typing import Protocol, runtime_checkable
@runtime_checkable
class TTSProvider(Protocol):
async def synthesize(self, text: str, voice: str = "alloy") -> bytes:
"""Convert text to speech audio bytes."""
...