forked from killua/TakwayPlatform
增添注释
This commit is contained in:
parent
05ccd1c8c0
commit
2b870c2e7d
|
@ -43,11 +43,14 @@ class TextToSpeech:
|
|||
self.debug = debug
|
||||
self.device = device
|
||||
self.use_tone_convert = use_tone_convert
|
||||
# 默认的源说话人 se
|
||||
self.source_se = None
|
||||
# 默认的目标说话人 se
|
||||
self.target_se = None
|
||||
|
||||
self.initialize_base_tts(**OPENVOICE_BASE_TTS)
|
||||
print(self.use_tone_convert)
|
||||
if self.debug:
|
||||
print("use tone converter is", self.use_tone_convert)
|
||||
if self.use_tone_convert:
|
||||
self.initialize_tone_color_converter(**OPENVOICE_TONE_COLOR_CONVERTER)
|
||||
self.initialize_source_se()
|
||||
|
|
Loading…
Reference in New Issue