voice-changer/server/voice_changer/VoiceChangerParamsManager.py

18 lines
407 B
Python
Raw Normal View History

2023-08-05 06:33:31 +03:00
from voice_changer.utils.VoiceChangerParams import VoiceChangerParams
class VoiceChangerParamsManager:
_instance = None
def __init__(self):
self.params = None
@classmethod
def get_instance(cls):
if cls._instance is None:
cls._instance = cls()
return cls._instance
def setParams(self, params: VoiceChangerParams):
self.params = params