mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-03-12 02:10:10 +03:00
remove unused comment
This commit is contained in:
parent
deea42a000
commit
3ea18048ec
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user