voice-changer/server/voice_changer/Beatrice/BeatriceSettings.py

17 lines
366 B
Python
Raw Permalink Normal View History

2023-08-09 10:55:59 +03:00
from dataclasses import dataclass, field
@dataclass
class BeatriceSettings:
# gpu: int = -9999
dstId: int = 0
modelSamplingRate: int = 48000
silentThreshold: float = 0.00001
speakers: dict[str, int] = field(default_factory=lambda: {})
intData = [
# "gpu",
"dstId",
]
floatData = ["silentThreshold"]
strData = []