Spaces:
Sleeping
Sleeping
File size: 364 Bytes
1db40ea 819617f 1db40ea 819617f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
class SpeechEncoder(object):
def __init__(self, vec_path="pretrain/checkpoint_best_legacy_500.pt", device=None):
self.model = None # This is Model
self.hidden_dim = 768
pass
def encoder(self, wav):
"""
input: wav:[signal_length]
output: embedding:[batchsize,hidden_dim,wav_frame]
"""
pass
|