remove unused comment

This commit is contained in:
wataru 2023-05-10 01:02:28 +09:00
parent deea42a000
commit 3ea18048ec

View File

@ -229,7 +229,10 @@ class VoiceChanger:
from voice_changer.SoVitsSvc40v2.SoVitsSvc40v2 import SoVitsSvc40v2 from voice_changer.SoVitsSvc40v2.SoVitsSvc40v2 import SoVitsSvc40v2
self.voiceChanger = SoVitsSvc40v2(self.params) self.voiceChanger = SoVitsSvc40v2(self.params)
elif self.modelType == "so-vits-svc-40" or self.modelType == "so-vits-svc-40_c": elif (
self.modelType == "so-vits-svc-40"
or self.modelType == "so-vits-svc-40_c"
):
from voice_changer.SoVitsSvc40.SoVitsSvc40 import SoVitsSvc40 from voice_changer.SoVitsSvc40.SoVitsSvc40 import SoVitsSvc40
self.voiceChanger = SoVitsSvc40(self.params) self.voiceChanger = SoVitsSvc40(self.params)
@ -443,11 +446,11 @@ class VoiceChanger:
with Timer("post-process") as t: with Timer("post-process") as t:
result = result.astype(np.int16) result = result.astype(np.int16)
if self.settings.inputSampleRate != processing_sampling_rate: if self.settings.inputSampleRate != processing_sampling_rate:
print( # print(
"samplingrate", # "samplingrate",
self.settings.inputSampleRate, # self.settings.inputSampleRate,
processing_sampling_rate, # processing_sampling_rate,
) # )
outputData = cast( outputData = cast(
AudioInOut, AudioInOut,
resampy.resample( resampy.resample(
@ -468,9 +471,9 @@ class VoiceChanger:
self.ioRecorder.writeOutput(outputData.tobytes()) self.ioRecorder.writeOutput(outputData.tobytes())
if receivedData.shape[0] != outputData.shape[0]: if receivedData.shape[0] != outputData.shape[0]:
print( # print(
f"Padding, in:{receivedData.shape[0]} out:{outputData.shape[0]}" # f"Padding, in:{receivedData.shape[0]} out:{outputData.shape[0]}"
) # )
outputData = pad_array(outputData, receivedData.shape[0]) outputData = pad_array(outputData, receivedData.shape[0])
# print_convert_processing( # print_convert_processing(
# f" Padded!, Output data size of {result.shape[0]}/{processing_sampling_rate}hz {outputData.shape[0]}/{self.settings.inputSampleRate}hz") # f" Padded!, Output data size of {result.shape[0]}/{processing_sampling_rate}hz {outputData.shape[0]}/{self.settings.inputSampleRate}hz")