mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
whisper-large-v2-turbo
This commit is contained in:
parent
b207ac3dda
commit
ad6673a529
@ -8,7 +8,7 @@
|
||||
from funasr import AutoModel
|
||||
|
||||
model = AutoModel(
|
||||
model="iic/Whisper-large-v3",
|
||||
model="Whisper-large-v3-turbo",
|
||||
vad_model="iic/speech_fsmn_vad_zh-cn-16k-common-pytorch",
|
||||
vad_kwargs={"max_single_segment_time": 30000},
|
||||
)
|
||||
|
||||
@ -12,8 +12,8 @@ from funasr import AutoModel
|
||||
# model = AutoModel(model="Whisper-large-v2", hub="openai")
|
||||
model = AutoModel(
|
||||
model="Whisper-large-v3-turbo",
|
||||
# vad_model="iic/speech_fsmn_vad_zh-cn-16k-common-pytorch",
|
||||
# vad_kwargs={"max_single_segment_time": 30000},
|
||||
vad_model="iic/speech_fsmn_vad_zh-cn-16k-common-pytorch",
|
||||
vad_kwargs={"max_single_segment_time": 30000},
|
||||
hub="openai",
|
||||
)
|
||||
|
||||
|
||||
@ -54,7 +54,7 @@ def main_hydra(cfg: DictConfig):
|
||||
chinese_name=model_name,
|
||||
)
|
||||
except Exception as e:
|
||||
print(f"Create_model failed! {str(e)}, {traceback.format_exc()}")
|
||||
print(f"Create_model failed! {str(e)}")
|
||||
|
||||
print(f"model url: https://modelscope.cn/models/{model_id}")
|
||||
|
||||
@ -70,7 +70,7 @@ def main_hydra(cfg: DictConfig):
|
||||
"""
|
||||
TOKEN="fadd1abb-4df6-4807-9051-5ab01ac81071"
|
||||
model_id="iic/Whisper-large-v3-turbo"
|
||||
model_dir="/Users/zhifu/Downloads/Whisper-large-v3-turbo"
|
||||
model_dir="/cpfs_speech/zhifu.gzf/init_model/Whisper-large-v3-turbo"
|
||||
|
||||
python -m funasr.download.upload_model ++TOKEN=${TOKEN} ++model_id=${model_id} ++model_dir=${model_dir}
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user