Spaces:
Build error
Build error
File size: 421 Bytes
b0c0f32 |
1 2 3 4 5 6 7 8 9 10 |
from funasr import AutoModel
# paraformer-zh is a multi-functional asr model
# use vad, punc, spk or not as you need
model = AutoModel(model="paraformer-zh", vad_model="fsmn-vad", punc_model="ct-punc",
# spk_model="cam++"
)
res = model.generate(input="/mnt/data10t/dazuoye/GROUP2024-GEN6/FakeSV/dataset/1.wav",
batch_size_s=300,
hotword='魔搭')
print(res) |