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 Torch hotword batching fix as 0.1.5

zhifu gaoe87fc62428ac
diff --git a/runtime/python/libtorch/README.md b/runtime/python/libtorch/README.md
index 9136bd74f..f06d374b0 100644
--- a/runtime/python/libtorch/README.md
+++ b/runtime/python/libtorch/README.md
@@ -21,12 +21,18 @@ python -m funasr.export.export_model --model-name damo/speech_paraformer-large_a
## Install the `funasr_torch`
+`funasr_torch` is a separate distribution from `funasr`; upgrading the root
+package alone does not update these TorchScript wrappers. Version 0.1.5
+includes the Contextual/Seaco Paraformer hotword batching and empty
+hotword-file handling fix (#3838). This is a runtime wrapper fix, not a
+model-weight update or an ASR accuracy claim.
+
install from pip
```shell
-pip install -U "funasr_torch>=0.1.4"
+pip install -U "funasr_torch>=0.1.5"
# For the users in China, you could install with the command:
-# pip install -U funasr_torch -i https://mirror.sjtu.edu.cn/pypi/web/simple
+# pip install -U "funasr_torch>=0.1.5" -i https://mirror.sjtu.edu.cn/pypi/web/simple
```
or install from source code
diff --git a/runtime/python/libtorch/setup.py b/runtime/python/libtorch/setup.py
index 3ba4610e4..9b5607f69 100644
--- a/runtime/python/libtorch/setup.py
+++ b/runtime/python/libtorch/setup.py
@@ -15,7 +15,7 @@ def get_readme():
setuptools.setup(
name="funasr_torch",
- version="0.1.4",
+ version="0.1.5",
platforms="Any",
url="https://github.com/modelscope/FunASR.git",
author="Speech Lab of DAMO Academy, Alibaba Group",
diff --git a/tests/test_funasr_torch_package.py b/tests/test_funasr_torch_package.py
index ce39c8613..4e25192e6 100644
--- a/tests/test_funasr_torch_package.py
+++ b/tests/test_funasr_torch_package.py
@@ -119,12 +119,12 @@ def test_torch_package_does_not_require_unrelated_runtime_engines(distributions)
}
assert not names & {"torch-quant", "onnxruntime", "onnxruntime-gpu"}
-def test_distribution_version_excludes_empty_published_release(distributions):
+def test_distribution_version_includes_hotword_batching_fix(distributions):
from packaging.version import Version
wheel, sdist = distributions
version = metadata(wheel)["Version"]
- assert Version(version) >= Version("0.1.4")
+ assert Version(version) >= Version("0.1.5")
with tarfile.open(sdist, "r:gz") as archive:
member = next(item for item in archive.getmembers()
if item.name.count("/") == 1 and item.name.endswith("/PKG-INFO"))