FunASR icon indicating copy to clipboard operation
FunASR copied to clipboard

Failed to run whisper demo in this repo

Open BakerBunker opened this issue 10 months ago • 0 comments

🐛 Bug

Failed to run this demo in google colab environment.

To Reproduce

Steps to reproduce the behavior:

  1. Open Colab
  2. 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

BakerBunker avatar Mar 29 '24 08:03 BakerBunker