Spaces:
Runtime error
Runtime error
File size: 466 Bytes
05b45a5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
"""Voice configuration schemas."""
from pydantic import BaseModel, Field
class VoiceConfig(BaseModel):
"""Voice configuration."""
use_cache: bool = Field(True, description="Whether to cache loaded voices")
cache_size: int = Field(3, description="Number of voices to cache")
validate_on_load: bool = Field(
True, description="Whether to validate voices when loading"
)
class Config:
frozen = True # Make config immutable
|