mirror of
https://github.com/neonbjb/tortoise-tts.git
synced 2026-01-25 18:10:37 +01:00
15 lines
316 B
Python
15 lines
316 B
Python
from enum import Enum
|
|
from typing import Optional
|
|
from pydantic import BaseModel
|
|
|
|
class Presets(str, Enum):
|
|
ULTRA_FAST='ultra_fast'
|
|
FAST='fast'
|
|
STANDARD='standard'
|
|
HIGH_QUALITY='high_quality'
|
|
|
|
class TranscriptionRequest(BaseModel):
|
|
text: str
|
|
voice: str
|
|
preset: Presets = "ultra_fast"
|