mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update demo file
This commit is contained in:
parent
276c443ba4
commit
e9a015e79a
@ -5,10 +5,10 @@
|
|||||||
|
|
||||||
from funasr import AutoModel
|
from funasr import AutoModel
|
||||||
|
|
||||||
model = AutoModel(model="/Users/zhifu/modelscope_models/speech_timestamp_prediction-v1-16k-offline")
|
model = AutoModel(model="../modelscope_models/speech_seaco_paraformer_large_asr_nat-zh-cn-16k-common-vocab8404-pytorch")
|
||||||
|
|
||||||
res = model(input=("/Users/zhifu/funasr_github/test_local/wav.scp",
|
res = model(input=("../modelscope_models/speech_seaco_paraformer_large_asr_nat-zh-cn-16k-common-vocab8404-pytorch/example/asr_example.wav",
|
||||||
"/Users/zhifu/funasr_github/test_local/text.txt"),
|
"欢迎大家来到魔搭社区进行体验"),
|
||||||
data_type=("sound", "text"),
|
data_type=("sound", "text"),
|
||||||
batch_size=2,
|
batch_size=2,
|
||||||
)
|
)
|
||||||
|
|||||||
@ -8,7 +8,7 @@ local_path=${local_path_root}/speech_timestamp_prediction-v1-16k-offline
|
|||||||
|
|
||||||
python funasr/bin/inference.py \
|
python funasr/bin/inference.py \
|
||||||
+model="${local_path}" \
|
+model="${local_path}" \
|
||||||
+input='["/Users/shixian/code/modelscope_models/speech_seaco_paraformer_large_asr_nat-zh-cn-16k-common-vocab8404-pytorch/example/asr_example.wav", "欢迎大家来到魔搭社区进行体验"]' \
|
+input='["../modelscope_models/speech_seaco_paraformer_large_asr_nat-zh-cn-16k-common-vocab8404-pytorch/example/asr_example.wav", "欢迎大家来到魔搭社区进行体验"]' \
|
||||||
+data_type='["sound", "text"]' \
|
+data_type='["sound", "text"]' \
|
||||||
+output_dir="../outputs/debug" \
|
+output_dir="../outputs/debug" \
|
||||||
+device="cpu" \
|
+device="cpu" \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user