mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 21:45:00 +03:00
18 lines
407 B
Python
18 lines
407 B
Python
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
|