Spaces:
Runtime error
Runtime error
File size: 461 Bytes
2f07364 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
from typing import List
from pydantic import BaseModel
from src.model.language import Language
class AudioFile(BaseModel):
audioContent: str
class AudioConfig(BaseModel):
language: Language
audioFormat: str = 'wav'
encoding: str = 'base64'
samplingRate: int = 22050
class TTSResponse(BaseModel):
audio: List[AudioFile]
config: AudioConfig
class TTSFailureResponse(BaseModel):
status: str = 'ERROR'
status_text: str
|