From 30ad793e24407633996bcf8f6a41bfc842e33f94 Mon Sep 17 00:00:00 2001 From: zhifu gao Date: Mon, 2 Nov 2026 15:00:23 +0800 Subject: [PATCH] fix(runtime): release streaming ONNX wrapper fixes as 0.4.5 Deliver the already-reviewed streaming and postprocessing fixes in a new standalone package. Signed-off-by: LauraGPT --- .github/workflows/test-funasr-onnx-package.yml | 4 ++-- runtime/python/onnxruntime/README.md | 8 ++++++-- runtime/python/onnxruntime/setup.py | 2 +- tests/test_funasr_onnx_installed.py | 2 +- tests/test_funasr_onnx_release.py | 4 ++-- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-funasr-onnx-package.yml b/.github/workflows/test-funasr-onnx-package.yml index cf28f29b0..dc0f886ff 100644 --- a/.github/workflows/test-funasr-onnx-package.yml +++ b/.github/workflows/test-funasr-onnx-package.yml @@ -82,7 +82,7 @@ jobs: import importlib.util from importlib.metadata import requires, version - assert version("funasr-onnx") == "0.4.4" + assert version("funasr-onnx") == "0.4.5" assert importlib.util.find_spec("torch") is None requirements = requires("funasr-onnx") or [] @@ -120,6 +120,6 @@ jobs: if: matrix.python-version == '3.12' uses: actions/upload-artifact@v7 with: - name: funasr-onnx-0.4.4 + name: funasr-onnx-0.4.5 path: dist/funasr-onnx/* if-no-files-found: error diff --git a/runtime/python/onnxruntime/README.md b/runtime/python/onnxruntime/README.md index 78e39265b..daa8a6eec 100644 --- a/runtime/python/onnxruntime/README.md +++ b/runtime/python/onnxruntime/README.md @@ -7,6 +7,10 @@ does not update the installed ONNX wrappers. Check their versions separately with `python -m pip show funasr-onnx funasr`; use the source installation below when a required wrapper fix is newer than the published PyPI package. +Version 0.4.5 also fixes streaming Paraformer crashes on short packets that have +not produced a feature frame yet. Buffered audio and final cache flushing are +preserved (#3827). + Version 0.4.4 includes the streaming Paraformer zero-overlap cache and empty-final result fixes, short/final VAD handling and stream-cache reset, and corrected timestamp alignment and rich-transcription event handling. These are wrapper @@ -15,9 +19,9 @@ and postprocessing fixes, not a model-weight update or an ASR accuracy claim. install from pip ```shell -pip install -U "funasr-onnx>=0.4.4" +pip install -U "funasr-onnx>=0.4.5" # For the users in China, you could install with the command: -# pip install -U "funasr-onnx>=0.4.4" -i https://mirror.sjtu.edu.cn/pypi/web/simple +# pip install -U "funasr-onnx>=0.4.5" -i https://mirror.sjtu.edu.cn/pypi/web/simple # If you want to export .onnx file, you should install modelscope and funasr pip install -U modelscope funasr # For the users in China, you could install with the command: diff --git a/runtime/python/onnxruntime/setup.py b/runtime/python/onnxruntime/setup.py index aaae3937f..f7d46687b 100644 --- a/runtime/python/onnxruntime/setup.py +++ b/runtime/python/onnxruntime/setup.py @@ -13,7 +13,7 @@ def get_readme(): MODULE_NAME = "funasr_onnx" -VERSION_NUM = "0.4.4" +VERSION_NUM = "0.4.5" setuptools.setup( name=MODULE_NAME, diff --git a/tests/test_funasr_onnx_installed.py b/tests/test_funasr_onnx_installed.py index f43bb5630..10d05c184 100644 --- a/tests/test_funasr_onnx_installed.py +++ b/tests/test_funasr_onnx_installed.py @@ -38,7 +38,7 @@ class InstalledOnnxPackageTest(unittest.TestCase): def test_installed_distribution_version_and_origin(self): distribution = importlib.metadata.distribution('funasr-onnx') - self.assertEqual(distribution.version, '0.4.4') + self.assertEqual(distribution.version, '0.4.5') self.assertEqual( Path(funasr_onnx.__file__).resolve().parent, Path(distribution.locate_file('funasr_onnx')).resolve(), diff --git a/tests/test_funasr_onnx_release.py b/tests/test_funasr_onnx_release.py index 25b39c602..7f215243d 100644 --- a/tests/test_funasr_onnx_release.py +++ b/tests/test_funasr_onnx_release.py @@ -7,7 +7,7 @@ ROOT = Path(__file__).resolve().parents[1] PACKAGE_ROOT = ROOT / "runtime" / "python" / "onnxruntime" SETUP_PATH = PACKAGE_ROOT / "setup.py" -EXPECTED_VERSION = "0.4.4" +EXPECTED_VERSION = "0.4.5" REQUIREMENT_NAME_PATTERN = re.compile(r"^\s*([A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?)") @@ -44,7 +44,7 @@ def normalized_requirement_name(requirement): class FunASROnnxReleaseContractTest(unittest.TestCase): - def test_release_version_is_0_4_4(self): + def test_release_version_is_0_4_5(self): self.assertEqual(assigned_literal(read_setup_tree(), "VERSION_NUM"), EXPECTED_VERSION) def test_standalone_license_preserves_repository_notice(self):