FunASR/examples/industrial_data_pretraining/qwen_audio/demo.py
zhifu gao 753d579531
Dev gzf (#1428)
* bugfix v1.0.13

* qwenaudio qwenaudiochat

* v1.0.14
2024-03-05 17:58:35 +08:00

16 lines
526 B
Python

#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
# Copyright FunASR (https://github.com/alibaba-damo-academy/FunASR). All Rights Reserved.
# MIT License (https://opensource.org/licenses/MIT)
# To install requirements: pip3 install -U "funasr[llm]"
from funasr import AutoModel
model = AutoModel(model="Qwen/Qwen-Audio",
model_path=None,
)
res = model.generate(input="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_zh.wav", language=None)
print(res)