Kokoro-FastAPI/api/src/structures/text_schemas.py

10 lines
209 B
Python
Raw Normal View History

from pydantic import BaseModel
class PhonemeRequest(BaseModel):
text: str
language: str = "a" # Default to American English
class PhonemeResponse(BaseModel):
phonemes: str
tokens: list[int]