feat: 支持音色切换
This commit is contained in:
10
backend/app/api/v1/endpoints/speaker.py
Normal file
10
backend/app/api/v1/endpoints/speaker.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from fastapi import APIRouter
|
||||
from app.constants.tts import SPEAKER_DATA
|
||||
from app.schemas import SpeakerResponse
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get("/list", response_model=SpeakerResponse)
|
||||
async def get_model_vendors():
|
||||
return SpeakerResponse(data=SPEAKER_DATA)
|
||||
Reference in New Issue
Block a user