belel-protocol / BELEL-SING /ops /plugins /_examples /diffsinger_infer.py
TTOPM's picture
Upload 945 files
05b9f96 verified
Raw History Blame Contribute Delete
220 Bytes
# Example: wrap your DiffSinger repo here
# def infer(phones, f0, controls): return mel (80,T)
import numpy as np
def infer(phones, f0, controls):
T = max(len(f0), 400)
return np.zeros((80,T), dtype=np.float32)