MCPcopy
hub / github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI / run

Method run

gui_v1.py:31–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

29 self.opt_q = opt_q
30
31 def run(self):
32 import numpy as np
33 import pyworld
34
35 while 1:
36 idx, x, res_f0, n_cpu, ts = self.inp_q.get()
37 f0, t = pyworld.harvest(
38 x.astype(np.double),
39 fs=16000,
40 f0_ceil=1100,
41 f0_floor=50,
42 frame_period=10,
43 )
44 res_f0[idx] = f0
45 if len(res_f0.keys()) >= n_cpu:
46 self.opt_q.put(ts)
47
48
49if __name__ == "__main__":

Callers 4

demix_baseMethod · 0.80
mel2hiddenMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected