Commit ac4404cd by ‘chizw’

音频转移接口

1 parent aebd7fbd
...@@ -10,7 +10,7 @@ model = AutoModel( ...@@ -10,7 +10,7 @@ model = AutoModel(
vad_model="fsmn-vad", vad_model="fsmn-vad",
punc_model="ct-punc-c", punc_model="ct-punc-c",
spk_model="cam++", spk_model="cam++",
ncpu=8, ncpu=2,
) )
...@@ -31,6 +31,6 @@ class FunasrService(object): ...@@ -31,6 +31,6 @@ class FunasrService(object):
@timeit @timeit
def transform(self): def transform(self):
res = model.generate(input=self.path, batch_size_s=300, hotword="魔搭") res = model.generate(input=self.path, batch_size_s=300, hotword="问界 80")
# print(res) # print(res)
return res return res
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!