v1.3.18

modelscope/FunASRv1.3.18Jul 19, 2026by github-actions[bot]

AI Summary

A patch release addressing a regression in CLI subtitle generation (SRT/TSV output). Fixes include improved timestamp formatting, punctuation model loading, and safe handling of malformed timestamps.

Key Highlights

  • Fixed CLI subtitle segmentation regression
  • SRT/TSV now requests sentence-level timestamps
  • Punctuation model loads for SenseVoice CLI
  • Fixed float truncation drift in SRT formatting
  • Malformed timestamps are skipped safely

Full Release Notes

## Install

```bash
python -m pip install -U "funasr==1.3.18"
```

## What changed

This patch release ships the CLI subtitle segmentation fix from #3254 for the user-reported #3253 regression in `funasr ... --output-format srt`.

- SRT/TSV output now requests sentence-level timestamps from `AutoModel.generate`.
- Subtitle generation loads the punctuation model when needed for SenseVoice-style CLI runs.
- Single-cue fallback now uses known timestamp/audio bounds instead of an invalid placeholder duration.
- SRT millisecond formatting now avoids float truncation drift.
- Malformed timestamp entries are skipped safely instead of crashing fallback formatting.

## Verification

- `python3 -m pytest tests/test_cli.py tests/test_generate_subtitle.py tests/test_punc_model_none.py -q` -> 9 passed
- `python3 -m py_compile funasr/cli.py tests/test_cli.py setup.py`
- `python3 -m build --outdir dist`
- `twine check dist/*`
- Wheel content check confirmed version `1.3.18`, console entry point, subtitle timestamp request, punctuation setup, and safe timestamp parsing.

## Artifacts

- PyPI: https://pypi.org/project/funasr/1.3.18/
- Wheel SHA-256: `20e85f86e5b700a1f2b9b496e92076d0787272eafeb9716caa9fdf6f1c4b9a77`
- Source tarball SHA-256: `31502e2395f336ab12d158a55fadb305678252872572e4bde120828128c25923`