mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-05 16:48:53 +00:00
10 lines
209 B
Python
10 lines
209 B
Python
![]() |
from pydantic import BaseModel
|
||
|
|
||
|
class PhonemeRequest(BaseModel):
|
||
|
text: str
|
||
|
language: str = "a" # Default to American English
|
||
|
|
||
|
class PhonemeResponse(BaseModel):
|
||
|
phonemes: str
|
||
|
tokens: list[int]
|