Download IndicTTS/inference/src/models/response.py from byanzene/indic_trans_sample: direct link, hf CLI and curl.
- Browser
- Download file 450 Bytes
-
https://huggingface.co/byanzene/indic_trans_sample/resolve/main/IndicTTS/inference/src/models/response.py
- Command line
-
hf download hf://byanzene/indic_trans_sample/IndicTTS/inference/src/models/response.py
-
curl -L -o response.py https://huggingface.co/byanzene/indic_trans_sample/resolve/main/IndicTTS/inference/src/models/response.py
450 Bytes
| from typing import List | |
| from pydantic import BaseModel | |
| from .common 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 | |