emotion2vec

This commit is contained in:
游雁 2024-12-17 11:15:53 +08:00
parent 2139ef696b
commit fdafd3f6bc
3 changed files with 4 additions and 2 deletions

1
MinMo_gitlab Symbolic link
View File

@ -0,0 +1 @@
../MinMo_gitlab

View File

@ -16,6 +16,7 @@ model = AutoModel(
# vad_model="iic/speech_fsmn_vad_zh-cn-16k-common-pytorch",
# vad_model_revision="master",
# vad_kwargs={"max_single_segment_time": 2000},
hub="ms", # "ms" or "modelscope" for Mainland China users; "hf" or "huggingface" for Other overseas users
)
wav_file = f"{model.model_path}/example/test.wav"

View File

@ -7,9 +7,9 @@ from funasr.download.name_maps_from_hub import name_maps_ms, name_maps_hf, name_
def download_model(**kwargs):
hub = kwargs.get("hub", "ms")
if hub == "ms":
if hub == "ms" or hub == "modelscope":
kwargs = download_from_ms(**kwargs)
elif hub == "hf":
elif hub == "hf" or hub == "huggingface":
kwargs = download_from_hf(**kwargs)
elif hub == "openai":
model_or_path = kwargs.get("model")