From a64b7d8d8aeb2bb543ca703045a45f42470e9a63 Mon Sep 17 00:00:00 2001
From: 彭震东 <zhendong.peng@qq.com>
Date: 星期四, 30 五月 2024 15:12:53 +0800
Subject: [PATCH] keep empty speech result (#1772)
---
runtime/python/onnxruntime/demo_seaco_paraformer.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/runtime/python/onnxruntime/demo_seaco_paraformer.py b/runtime/python/onnxruntime/demo_seaco_paraformer.py
index 29cff3e..f03719b 100644
--- a/runtime/python/onnxruntime/demo_seaco_paraformer.py
+++ b/runtime/python/onnxruntime/demo_seaco_paraformer.py
@@ -4,9 +4,9 @@
model_dir = "iic/speech_seaco_paraformer_large_asr_nat-zh-cn-16k-common-vocab8404-pytorch"
model = SeacoParaformer(model_dir, batch_size=1)
-wav_path = ['{}/.cache/modelscope/hub/{}/example/asr_example.wav'.format(Path.home(), model_dir)]
+wav_path = ["{}/.cache/modelscope/hub/{}/example/asr_example.wav".format(Path.home(), model_dir)]
-hotwords = '浣犵殑鐑瘝 榄旀惌'
+hotwords = "浣犵殑鐑瘝 榄旀惌"
result = model(wav_path, hotwords)
print(result)
--
Gitblit v1.9.1