WIP: eliminate ffmpeg
This commit is contained in:
parent
689d3a4cdc
commit
9512fd5ae2
@ -11,11 +11,11 @@
|
||||
"modelInfoEnable": true
|
||||
},
|
||||
"modelSetting": {
|
||||
"ONNXEnable": true,
|
||||
"ONNXEnable": false,
|
||||
"pyTorchEnable": true,
|
||||
"MMVCCorrespondense": false,
|
||||
"pyTorchClusterEnable": false,
|
||||
"showPyTorchDefault": false,
|
||||
"showPyTorchDefault": true,
|
||||
"frameworkEnable": true,
|
||||
"modelUploaderEnable": true,
|
||||
"configRow": true,
|
||||
@ -29,17 +29,17 @@
|
||||
"playRow": true
|
||||
},
|
||||
"speakerSetting": {
|
||||
"srcIdEnable": true,
|
||||
"srcIdEnable": false,
|
||||
"dstIdEnable": true,
|
||||
"editSpeakerIdMappingEnable": true,
|
||||
"editSpeakerIdMappingEnable": false,
|
||||
"f0FactorEnable": false,
|
||||
"tuningEnable": false,
|
||||
"tuningEnable": true,
|
||||
"clusterInferRationEnable": false,
|
||||
"noiseScaleEnable": false,
|
||||
"silentThresholdEnable": false
|
||||
"silentThresholdEnable": true
|
||||
},
|
||||
"converterSetting": {
|
||||
"extraDataLengthEnable": false
|
||||
"extraDataLengthEnable": true
|
||||
},
|
||||
"advancedSetting": {
|
||||
"serverURLEnable": true,
|
||||
|
11
client/demo_v13/dist/index.html
vendored
11
client/demo_v13/dist/index.html
vendored
@ -1,10 +1 @@
|
||||
<!DOCTYPE html>
|
||||
<html style="width: 100%; height: 100%; overflow: hidden">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Voice Changer Client Demo</title>
|
||||
<script defer src="index.js"></script></head>
|
||||
<body style="width: 100%; height: 100%; margin: 0px">
|
||||
<div id="app" style="width: 100%; height: 100%"></div>
|
||||
</body>
|
||||
</html>
|
||||
<!doctype html><html style="width:100%;height:100%;overflow:hidden"><head><meta charset="utf-8"/><title>Voice Changer Client Demo</title><script defer="defer" src="index.js"></script></head><body style="width:100%;height:100%;margin:0"><div id="app" style="width:100%;height:100%"></div></body></html>
|
1464
client/demo_v13/dist/index.js
vendored
1464
client/demo_v13/dist/index.js
vendored
File diff suppressed because one or more lines are too long
2687
client/demo_v13/dist/index.js.LICENSE.txt
vendored
Normal file
2687
client/demo_v13/dist/index.js.LICENSE.txt
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -11,11 +11,11 @@
|
||||
"modelInfoEnable": true
|
||||
},
|
||||
"modelSetting": {
|
||||
"ONNXEnable": true,
|
||||
"ONNXEnable": false,
|
||||
"pyTorchEnable": true,
|
||||
"MMVCCorrespondense": false,
|
||||
"pyTorchClusterEnable": false,
|
||||
"showPyTorchDefault": false,
|
||||
"showPyTorchDefault": true,
|
||||
"frameworkEnable": true,
|
||||
"modelUploaderEnable": true,
|
||||
"configRow": true,
|
||||
@ -29,17 +29,17 @@
|
||||
"playRow": true
|
||||
},
|
||||
"speakerSetting": {
|
||||
"srcIdEnable": true,
|
||||
"srcIdEnable": false,
|
||||
"dstIdEnable": true,
|
||||
"editSpeakerIdMappingEnable": true,
|
||||
"editSpeakerIdMappingEnable": false,
|
||||
"f0FactorEnable": false,
|
||||
"tuningEnable": false,
|
||||
"tuningEnable": true,
|
||||
"clusterInferRationEnable": false,
|
||||
"noiseScaleEnable": false,
|
||||
"silentThresholdEnable": false
|
||||
"silentThresholdEnable": true
|
||||
},
|
||||
"converterSetting": {
|
||||
"extraDataLengthEnable": false
|
||||
"extraDataLengthEnable": true
|
||||
},
|
||||
"advancedSetting": {
|
||||
"serverURLEnable": true,
|
||||
|
@ -221,7 +221,7 @@ class RVC:
|
||||
vc = VC(self.tgt_sr, dev, is_half)
|
||||
sid = 0
|
||||
times = [0, 0, 0]
|
||||
f0_up_key = 10
|
||||
f0_up_key = self.settings.tran
|
||||
f0_method = "pm"
|
||||
file_index = ""
|
||||
file_big_npy = ""
|
||||
@ -231,7 +231,7 @@ class RVC:
|
||||
|
||||
audio_out = vc.pipeline(self.hubert_model, self.net_g, sid, audio, times, f0_up_key, f0_method,
|
||||
file_index, file_big_npy, index_rate, if_f0, f0_file=f0_file)
|
||||
result = audio_out
|
||||
result = audio_out * np.sqrt(vol)
|
||||
|
||||
return result
|
||||
|
||||
@ -245,6 +245,3 @@ class RVC:
|
||||
def destroy(self):
|
||||
del self.net_g
|
||||
del self.onnx_session
|
||||
|
||||
|
||||
import ffmpeg
|
||||
|
@ -168,9 +168,7 @@ class VoiceChanger():
|
||||
|
||||
if self.settings.inputSampleRate != processing_sampling_rate:
|
||||
newData = resampy.resample(receivedData, self.settings.inputSampleRate, processing_sampling_rate)
|
||||
print("resample", self.settings.inputSampleRate, processing_sampling_rate)
|
||||
else:
|
||||
print("not resample")
|
||||
newData = receivedData
|
||||
# print("t1::::", t1.secs)
|
||||
inputSize = newData.shape[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user