FunASR
FunASR copied to clipboard
Failed to run whisper demo in this repo
🐛 Bug
Failed to run this demo in google colab environment.
To Reproduce
Steps to reproduce the behavior:
- Open Colab
- run the following code
Code sample
!pip3 install -U openai-whisper funasr
from funasr import AutoModel
model = AutoModel(model="iic/Whisper-large-v3",
vad_model="iic/speech_fsmn_vad_zh-cn-16k-common-pytorch",
vad_kwargs={"max_single_segment_time": 30000},
)
res = model.generate(
language=None,
task="transcribe",
batch_size_s=0,
input="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_zh.wav")
print(res)
Expected behavior
Successfully output the result
Environment
Google Colab
Additional context
N/A