2023-07-12 18:59:48 +03:00
|
|
|
from dataclasses import dataclass, field
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
|
|
|
class DiffusionSVCSettings:
|
2023-07-23 13:39:52 +03:00
|
|
|
gpu: int = -9999
|
2023-07-12 18:59:48 +03:00
|
|
|
dstId: int = 0
|
|
|
|
|
|
|
|
f0Detector: str = "harvest" # dio or harvest
|
|
|
|
tran: int = 12
|
|
|
|
silentThreshold: float = 0.00001
|
|
|
|
extraConvertSize: int = 1024 * 4
|
|
|
|
|
2023-07-15 12:35:11 +03:00
|
|
|
kStep: int = 20
|
|
|
|
speedUp: int = 10
|
2023-08-05 07:24:11 +03:00
|
|
|
skipDiffusion: int = 0 # 0:off, 1:on
|
2023-07-12 18:59:48 +03:00
|
|
|
|
|
|
|
silenceFront: int = 1 # 0:off, 1:on
|
|
|
|
modelSamplingRate: int = 44100
|
|
|
|
|
|
|
|
speakers: dict[str, int] = field(default_factory=lambda: {})
|
|
|
|
# isHalf: int = 1 # 0:off, 1:on
|
|
|
|
# enableDirectML: int = 0 # 0:off, 1:on
|
|
|
|
# ↓mutableな物だけ列挙
|
|
|
|
intData = [
|
|
|
|
"gpu",
|
|
|
|
"dstId",
|
|
|
|
"tran",
|
|
|
|
"extraConvertSize",
|
2023-07-15 12:35:11 +03:00
|
|
|
"kStep",
|
|
|
|
"speedUp",
|
2023-07-12 18:59:48 +03:00
|
|
|
"silenceFront",
|
|
|
|
]
|
|
|
|
floatData = ["silentThreshold"]
|
|
|
|
strData = ["f0Detector"]
|