funasr1.0

This commit is contained in:
游雁 2023-12-27 23:32:54 +08:00
parent fddb28f026
commit 4719ca44c6
4 changed files with 4 additions and 4 deletions

View File

@ -8,5 +8,5 @@ from funasr import AutoModel
model = AutoModel(model="../modelscope_models/speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404") model = AutoModel(model="../modelscope_models/speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404")
res = model(input="../modelscope_models/speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404/example/asr_example.wav", res = model(input="../modelscope_models/speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404/example/asr_example.wav",
hotword='院 魔搭') hotword='院 魔搭')
print(res) print(res)

View File

@ -11,5 +11,5 @@ python funasr/bin/inference.py \
+input="${local_path}/example/asr_example.wav" \ +input="${local_path}/example/asr_example.wav" \
+output_dir="./outputs/debug" \ +output_dir="./outputs/debug" \
+device="cpu" \ +device="cpu" \
+"hotword='达院 魔搭'" +"hotword='达院 魔搭'"

View File

@ -8,5 +8,5 @@ from funasr import AutoModel
model = AutoModel(model="../modelscope_models/speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404") model = AutoModel(model="../modelscope_models/speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404")
res = model(input="../modelscope_models/speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404/example/asr_example.wav", res = model(input="../modelscope_models/speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404/example/asr_example.wav",
hotword='院 魔搭') hotword='院 魔搭')
print(res) print(res)

View File

@ -11,5 +11,5 @@ python funasr/bin/inference.py \
+input="${local_path}/example/asr_example.wav" \ +input="${local_path}/example/asr_example.wav" \
+output_dir="./outputs/debug" \ +output_dir="./outputs/debug" \
+device="cpu" \ +device="cpu" \
+"hotword='达院 魔搭'" +"hotword='达院 魔搭'"