liugz18
2024-07-18 d80ac2fd2df4e7fb8a28acfa512bb11472b5cc99
examples/industrial_data_pretraining/conformer/demo.py
@@ -7,6 +7,8 @@
model = AutoModel(model="iic/speech_conformer_asr_nat-zh-cn-16k-aishell2-vocab5212-pytorch")
res = model.generate(input="https://modelscope.oss-cn-beijing.aliyuncs.com/test/audios/asr_example.wav")
res = model.generate(
    input="https://modelscope.oss-cn-beijing.aliyuncs.com/test/audios/asr_example.wav",
    decoding_ctc_weight=0.0,
)
print(res)