Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

fix(runtime): release streaming ONNX wrapper fixes as 0.4.4

zhifu gao58902eeec9d7
diff --git a/.github/workflows/test-funasr-onnx-package.yml b/.github/workflows/test-funasr-onnx-package.yml
index e2418bb07..cf28f29b0 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.3"
+ assert version("funasr-onnx") == "0.4.4"
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.3
+ name: funasr-onnx-0.4.4
path: dist/funasr-onnx/*
if-no-files-found: error
diff --git a/runtime/python/onnxruntime/LICENSE b/runtime/python/onnxruntime/LICENSE
new file mode 100644
index 000000000..26b5e09e9
--- /dev/null
+++ b/runtime/python/onnxruntime/LICENSE
@@ -0,0 +1,20 @@
+MIT License
+Copyright (c) 2025 FunASR
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/runtime/python/onnxruntime/README.md b/runtime/python/onnxruntime/README.md
index 0f62fb188..78e39265b 100644
--- a/runtime/python/onnxruntime/README.md
+++ b/runtime/python/onnxruntime/README.md
@@ -7,12 +7,17 @@ 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.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
+and postprocessing fixes, not a model-weight update or an ASR accuracy claim.
+
install from pip
```shell
-pip install -U funasr-onnx
+pip install -U "funasr-onnx>=0.4.4"
# For the users in China, you could install with the command:
-# pip install -U funasr-onnx -i https://mirror.sjtu.edu.cn/pypi/web/simple
+# pip install -U "funasr-onnx>=0.4.4" -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 3d7b40915..aaae3937f 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.3"
+VERSION_NUM = "0.4.4"
setuptools.setup(
name=MODULE_NAME,
@@ -24,6 +24,7 @@ setuptools.setup(
author_email="[email protected]",
description="FunASR: A Fundamental End-to-End Speech Recognition Toolkit",
license="MIT",
+ license_files=["LICENSE"],
long_description=get_readme(),
long_description_content_type="text/markdown",
include_package_data=True,
diff --git a/tests/test_funasr_onnx_installed.py b/tests/test_funasr_onnx_installed.py
index 15f262a95..f43bb5630 100644
--- a/tests/test_funasr_onnx_installed.py
+++ b/tests/test_funasr_onnx_installed.py
@@ -38,7 +38,7 @@ ENTRYPOINTS = (
class InstalledOnnxPackageTest(unittest.TestCase):
def test_installed_distribution_version_and_origin(self):
distribution = importlib.metadata.distribution('funasr-onnx')
- self.assertEqual(distribution.version, '0.4.3')
+ self.assertEqual(distribution.version, '0.4.4')
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 08d85b4d2..25b39c602 100644
--- a/tests/test_funasr_onnx_release.py
+++ b/tests/test_funasr_onnx_release.py
@@ -7,7 +7,7 @@ import unittest
ROOT = Path(__file__).resolve().parents[1]
PACKAGE_ROOT = ROOT / "runtime" / "python" / "onnxruntime"
SETUP_PATH = PACKAGE_ROOT / "setup.py"
-EXPECTED_VERSION = "0.4.3"
+EXPECTED_VERSION = "0.4.4"
REQUIREMENT_NAME_PATTERN = re.compile(r"^\s*([A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?)")
@@ -44,9 +44,27 @@ def normalized_requirement_name(requirement):
class FunASROnnxReleaseContractTest(unittest.TestCase):
- def test_release_version_is_0_4_3(self):
+ def test_release_version_is_0_4_4(self):
self.assertEqual(assigned_literal(read_setup_tree(), "VERSION_NUM"), EXPECTED_VERSION)
+ def test_standalone_license_preserves_repository_notice(self):
+ license_path = PACKAGE_ROOT / "LICENSE"
+ self.assertTrue(license_path.is_file())
+ self.assertEqual(license_path.read_bytes(), (ROOT / "LICENSE").read_bytes())
+ self.assertEqual(setup_keyword_literal(read_setup_tree(), "license_files"), ["LICENSE"])
+
+ def test_workflow_checks_and_artifact_use_release_version(self):
+ workflow = (ROOT / ".github/workflows/test-funasr-onnx-package.yml").read_text()
+ self.assertIn(f'assert version("funasr-onnx") == "{EXPECTED_VERSION}"', workflow)
+ self.assertIn(f"name: funasr-onnx-{EXPECTED_VERSION}", workflow)
+
+ def test_readme_names_the_standalone_fix_release(self):
+ readme = (PACKAGE_ROOT / "README.md").read_text()
+ self.assertIn(f'pip install -U "funasr-onnx>={EXPECTED_VERSION}"', readme)
+ self.assertIn("does not update the installed ONNX wrappers", readme)
+ self.assertIn("short/final VAD", readme)
+ self.assertIn("zero-overlap", readme)
+
def test_runtime_dependencies_keep_onnx_install_torch_free(self):
requirements = setup_keyword_literal(read_setup_tree(), "install_requires")
names = {normalized_requirement_name(requirement) for requirement in requirements}