Skip to content

Conversation

@csukuangfj
Copy link
Collaborator

@csukuangfj csukuangfj commented Jul 10, 2025

Summary by CodeRabbit

  • New Features

    • Added expanded runtime and API support for NeMo Canary models across multiple languages and platforms.
    • Introduced LODR support for both online and offline recognizers.
    • Included CXX examples for NeMo TDT ASR.
    • Uploaded FP16 ONNX model files for FireRedASR.
  • Bug Fixes

    • Corrected a typo in a CMake linker flag.
    • Fixed Dart package testing and TTS issues for Unreal Engine.
    • Resolved NeMo feature normalization in test code.
  • Documentation

    • Updated documentation with new version numbers and links to external repositories.
  • Refactor

    • Improved export process and added metadata for NeMo canary ONNX models.
  • Chores

    • Incremented version numbers to 1.12.5 across all platforms and dependencies.

@csukuangfj csukuangfj requested a review from Copilot July 10, 2025 07:20
@coderabbitai
Copy link

coderabbitai bot commented Jul 10, 2025

Walkthrough

This update increments the project version from 1.12.4 to 1.12.5 across all code, documentation, build scripts, and dependency files. All references, download URLs, and metadata have been updated to reflect the new version. No changes were made to functionality, logic, or public interfaces in this set of changes.

Changes

Files/Groups Change Summary
CHANGELOG.md Added 1.12.5 release notes with fixes, features, and documentation updates.
CMakeLists.txt, pom.xml, .../BuildProfile.ets, .../oh-package.json5, .../package.json Updated version numbers from 1.12.4 to 1.12.5 in project metadata and dependency files.
android/SherpaOnnxAar/README.md, mfc-examples/README.md, .../README.md Updated version numbers and URLs in documentation to reference 1.12.5.
android/SherpaOnnxJavaDemo/app/build.gradle, jitpack.yml Updated dependency and install instructions to use version 1.12.5.
build-ios-shared.sh Updated Info.plist version string to 1.12.5 for iOS frameworks.
dart-api-examples//pubspec.yaml, flutter-examples//pubspec.yaml, flutter/sherpa_onnx*/... Updated Dart and Flutter package versions and dependencies to 1.12.5.
flutter/sherpa_onnx_ios/ios/sherpa_onnx_ios.podspec, flutter/sherpa_onnx_macos/... Updated podspec version numbers to 1.12.5.
sherpa-onnx/csrc/version.cc Updated returned version, Git SHA1, and date strings to reflect the new release.
new-release.sh Updated script variables for old and new version numbers to automate the 1.12.5 release.

Poem

🐇
A hop, a skip, a version leap—
From four to five, our promise we keep.
URLs and docs, all up to date,
Each little number helps celebrate!
With every change, we bound ahead,
Sherpa’s journey, version-led.
🥕✨

✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the project version from 1.12.4 to 1.12.5 across all relevant source files, build scripts, and example configurations, and adds the 1.12.5 entry to the changelog.

  • Bump core library version in version.cc, build scripts, and packaging manifests.
  • Update example dependencies and download URLs to 1.12.5.
  • Add new changelog section for 1.12.5.

Reviewed Changes

Copilot reviewed 37 out of 37 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sherpa-onnx/csrc/version.cc Update git date, SHA1, and version string
pom.xml Bump Maven artifact version
nodejs-examples/package.json Update sherpa-onnx dependency version
nodejs-addon-examples/package.json Update sherpa-onnx-node dependency version
new-release.sh Advance old/new version regex for 1.12.5
mfc-examples/README.md Update release download URLs to v1.12.5
jitpack.yml Change AAR download and install to v1.12.5
harmony-os/SherpaOnnxVadAsr/entry/oh-package.json5 Bump sherpa_onnx version
harmony-os/SherpaOnnxVadAsr/entry/README.md Update HAR download file name to v1.12.5
harmony-os/SherpaOnnxTts/entry/oh-package.json5 Bump sherpa_onnx version
harmony-os/SherpaOnnxStreamingAsr/entry/oh-package.json5 Bump sherpa_onnx version
harmony-os/SherpaOnnxSpeakerIdentification/entry/oh-package.json5 Bump sherpa_onnx version
harmony-os/SherpaOnnxSpeakerDiarization/entry/oh-package.json5 Bump sherpa_onnx version
harmony-os/SherpaOnnxHar/sherpa_onnx/oh-package.json5 Bump package version
harmony-os/SherpaOnnxHar/sherpa_onnx/README.md Update dependency snippet to 1.12.5
harmony-os/SherpaOnnxHar/sherpa_onnx/BuildProfile.ets Update HAR_VERSION constant
flutter/sherpa_onnx_macos/macos/sherpa_onnx_macos.podspec Bump CocoaPod version
flutter/sherpa_onnx_ios/ios/sherpa_onnx_ios.podspec Bump CocoaPod version
flutter/sherpa_onnx/pubspec.yaml Update Dart package version and deps
flutter-examples/tts/pubspec.yaml Bump example pubspec version
flutter-examples/streaming_asr/pubspec.yaml Bump example pubspec version
dart-api-examples/vad/pubspec.yaml Update sherpa_onnx dependency version
dart-api-examples/vad-with-non-streaming-asr/pubspec.yaml Update sherpa_onnx dependency version
dart-api-examples/tts/pubspec.yaml Update sherpa_onnx dependency version
dart-api-examples/streaming-asr/pubspec.yaml Update sherpa_onnx dependency version
dart-api-examples/speech-enhancement-gtcrn/pubspec.yaml Update sherpa_onnx dependency version
dart-api-examples/speaker-identification/pubspec.yaml Update sherpa_onnx dependency version
dart-api-examples/speaker-diarization/pubspec.yaml Update sherpa_onnx dependency version
dart-api-examples/non-streaming-asr/pubspec.yaml Update sherpa_onnx dependency version
dart-api-examples/keyword-spotter/pubspec.yaml Update sherpa_onnx dependency version
dart-api-examples/audio-tagging/pubspec.yaml Update sherpa_onnx dependency version
dart-api-examples/add-punctuations/pubspec.yaml Update sherpa_onnx dependency version
build-ios-shared.sh Bump iOS framework version in plist output
android/SherpaOnnxJavaDemo/app/build.gradle Update Gradle implementation line to v1.12.5
android/SherpaOnnxAar/README.md Update Android tarball URL and file name
CMakeLists.txt Update SHERPA_ONNX_VERSION CMake variable
CHANGELOG.md Add new section for version 1.12.5

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🔭 Outside diff range comments (2)
build-ios-shared.sh (2)

18-20: Typo in environment-variable name may break mirror logic.

SHERPA_ONNX_GITHUB_MIRROW is likely meant to be SHERPA_ONNX_GITHUB_MIRROR.
Downstream scripts/tools will silently ignore the wrong variable name.

-if [ "$SHERPA_ONNX_GITHUB_MIRROW" == true ]; then
+if [ "$SHERPA_ONNX_GITHUB_MIRROR" == true ]; then

22-26: Incorrect variable expansion test — always “true”.

[ ! -z CMAKE_VERBOSE_MAKEFILE ] tests the string CMAKE_VERBOSE_MAKEFILE, not the
value of the variable. Use quotes around the expansion and the -n test.

-if [ ! -z CMAKE_VERBOSE_MAKEFILE ]; then
-  CMAKE_VERBOSE_MAKEFILE=ON
+if [ -n "$CMAKE_VERBOSE_MAKEFILE" ]; then
+  CMAKE_VERBOSE_MAKEFILE=ON
♻️ Duplicate comments (8)
harmony-os/SherpaOnnxVadAsr/entry/oh-package.json5 (1)

8-11: Same verification applies as previous file

The version bump is correct; just ensure v1.12.5 exists in the registry and no stray 1.12.4 references remain.

harmony-os/SherpaOnnxSpeakerIdentification/entry/oh-package.json5 (1)

8-10: Same verification applies as previous file

harmony-os/SherpaOnnxTts/entry/oh-package.json5 (1)

8-10: Same verification applies as previous file

dart-api-examples/audio-tagging/pubspec.yaml (1)

11-13: See comment in add-punctuations/pubspec.yaml.

dart-api-examples/speaker-identification/pubspec.yaml (1)

11-13: See comment in add-punctuations/pubspec.yaml.

dart-api-examples/vad-with-non-streaming-asr/pubspec.yaml (1)

11-13: See comment in add-punctuations/pubspec.yaml.

dart-api-examples/tts/pubspec.yaml (1)

10-12: See comment in add-punctuations/pubspec.yaml.

dart-api-examples/streaming-asr/pubspec.yaml (1)

14-14: Same pub.dev availability caveat applies here.
See comment in speech-enhancement-gtcrn/pubspec.yaml.

🧹 Nitpick comments (5)
nodejs-examples/package.json (1)

1-6: JS example dependency updated – verify lockfile regeneration

The semver caret upgrade to ^1.12.5 is fine.
Don’t forget to regenerate package-lock.json/pnpm-lock.yaml (if committed) so CI picks up the correct version.

dart-api-examples/keyword-spotter/pubspec.yaml (1)

11-13: Version bump is correct – verify local path override is still commented out.

No issues with the change itself, but if you ever need to switch back to the local path override (lines 13-14), remember to keep the version in pubspec.yaml and the local package’s pubspec.yaml aligned to avoid Pub complaining about mismatched versions.

jitpack.yml (1)

5-10: Consider de-duplicating the hard-coded version string.

The AAR file name and the Maven install command both embed 1.12.5. On every release, two separate edits are required here. To avoid misses, you could parameterise the version via an environment variable:

-before_install:
-  - wget https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.12.5/sherpa-onnx-1.12.5.aar
-
-install:
-  - FILE="-Dfile=sherpa-onnx-1.12.5.aar"
-  - mvn install:install-file $FILE -DgroupId=com.k2fsa.sherpa.onnx -DartifactId=sherpa-onnx -Dversion=1.12.5 -Dpackaging=aar -DgeneratePom=true
+env:
+  SHERPA_VERSION: 1.12.5
+
+before_install:
+  - wget https://github.com/k2-fsa/sherpa-onnx/releases/download/v${SHERPA_VERSION}/sherpa-onnx-${SHERPA_VERSION}.aar
+
+install:
+  - FILE="-Dfile=sherpa-onnx-${SHERPA_VERSION}.aar"
+  - mvn install:install-file $FILE -DgroupId=com.k2fsa.sherpa.onnx -DartifactId=sherpa-onnx -Dversion=${SHERPA_VERSION} -Dpackaging=aar -DgeneratePom=true

This reduces future maintenance overhead and lowers the risk of version skew.

build-ios-shared.sh (1)

244-246: Hard-coding the version string hurts maintainability.

CFBundleShortVersionString is manually set to 1.12.5, while the script
already knows $new_version. Consider templating to reduce future churn.

-  <key>CFBundleShortVersionString</key>
-	<string>1.12.5</string>
+  <key>CFBundleShortVersionString</key>
+	<string>${new_version}</string>

(A simple sed or heredoc variable expansion is enough.)

android/SherpaOnnxAar/README.md (1)

3-20: Specify the shell language for the fenced code block.

Markdown-lint flags MD040 because ``````` has no language hint.
Add bash for proper syntax highlighting and to silence the linter.

-``` 
+```bash
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fd9a687 and 49c1a45.

📒 Files selected for processing (37)
  • CHANGELOG.md (1 hunks)
  • CMakeLists.txt (1 hunks)
  • android/SherpaOnnxAar/README.md (2 hunks)
  • android/SherpaOnnxJavaDemo/app/build.gradle (1 hunks)
  • build-ios-shared.sh (1 hunks)
  • dart-api-examples/add-punctuations/pubspec.yaml (1 hunks)
  • dart-api-examples/audio-tagging/pubspec.yaml (1 hunks)
  • dart-api-examples/keyword-spotter/pubspec.yaml (1 hunks)
  • dart-api-examples/non-streaming-asr/pubspec.yaml (1 hunks)
  • dart-api-examples/speaker-diarization/pubspec.yaml (1 hunks)
  • dart-api-examples/speaker-identification/pubspec.yaml (1 hunks)
  • dart-api-examples/speech-enhancement-gtcrn/pubspec.yaml (1 hunks)
  • dart-api-examples/streaming-asr/pubspec.yaml (1 hunks)
  • dart-api-examples/tts/pubspec.yaml (1 hunks)
  • dart-api-examples/vad-with-non-streaming-asr/pubspec.yaml (1 hunks)
  • dart-api-examples/vad/pubspec.yaml (1 hunks)
  • flutter-examples/streaming_asr/pubspec.yaml (2 hunks)
  • flutter-examples/tts/pubspec.yaml (2 hunks)
  • flutter/sherpa_onnx/pubspec.yaml (2 hunks)
  • flutter/sherpa_onnx_ios/ios/sherpa_onnx_ios.podspec (1 hunks)
  • flutter/sherpa_onnx_macos/macos/sherpa_onnx_macos.podspec (1 hunks)
  • harmony-os/SherpaOnnxHar/sherpa_onnx/BuildProfile.ets (1 hunks)
  • harmony-os/SherpaOnnxHar/sherpa_onnx/README.md (1 hunks)
  • harmony-os/SherpaOnnxHar/sherpa_onnx/oh-package.json5 (1 hunks)
  • harmony-os/SherpaOnnxSpeakerDiarization/entry/oh-package.json5 (1 hunks)
  • harmony-os/SherpaOnnxSpeakerIdentification/entry/oh-package.json5 (1 hunks)
  • harmony-os/SherpaOnnxStreamingAsr/entry/oh-package.json5 (1 hunks)
  • harmony-os/SherpaOnnxTts/entry/oh-package.json5 (1 hunks)
  • harmony-os/SherpaOnnxVadAsr/entry/README.md (1 hunks)
  • harmony-os/SherpaOnnxVadAsr/entry/oh-package.json5 (1 hunks)
  • jitpack.yml (1 hunks)
  • mfc-examples/README.md (1 hunks)
  • new-release.sh (1 hunks)
  • nodejs-addon-examples/package.json (1 hunks)
  • nodejs-examples/package.json (1 hunks)
  • pom.xml (1 hunks)
  • sherpa-onnx/csrc/version.cc (1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
mfc-examples/README.md

9-9: Bare URL used

(MD034, no-bare-urls)

android/SherpaOnnxAar/README.md

19-19: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🔇 Additional comments (22)
harmony-os/SherpaOnnxStreamingAsr/entry/oh-package.json5 (1)

8-10: Confirm sherpa_onnx@1.12.5 is published & no stale 1.12.4 references

  • ✅ No "1.12.4" literals found in any JSON/JSON5/YAML/Gradle/XML files.
  • Please verify that sherpa_onnx v1.12.5 is live in the OpenHarmony registry before running ohpm install in CI.
dart-api-examples/non-streaming-asr/pubspec.yaml (1)

12-14: ✅ No stale 1.12.4 references found – dependency bump to ^1.12.5 approved

The update to sherpa_onnx: ^1.12.5 is consistent with the release target, and a search across all pubspec.yaml files confirmed no remaining 1.12.4 constraints.

harmony-os/SherpaOnnxHar/sherpa_onnx/oh-package.json5 (1)

1-4: Package version updated – validate downstream bundles

Nothing else changed in the manifest.
Confirm that all HarmonyOS sub-packages (SpeakerDiarization, StreamingAsr, Tts, etc.) now depend on 1.12.5 to avoid mixed-version installs.

harmony-os/SherpaOnnxSpeakerDiarization/entry/oh-package.json5 (1)

8-10: Dependency bump acknowledged

Speaker-diarization entry now targets 1.12.5; aligns with the umbrella release.

harmony-os/SherpaOnnxHar/sherpa_onnx/README.md (1)

26-26: Version string correctly updated—no further action needed.
The documentation now points to 1.12.5, keeping it in sync with the release train.

android/SherpaOnnxJavaDemo/app/build.gradle (1)

37-37: Double-check JitPack availability of v1.12.5.
JitPack requires the exact Git tag (v1.12.5) to exist and build successfully. Make sure the tag has been pushed and the build passes to avoid runtime 404s during Gradle resolution.

dart-api-examples/speech-enhancement-gtcrn/pubspec.yaml (1)

13-13: Dependency bump looks good; verify pub.dev publication.
Confirm that sherpa_onnx 1.12.5 is already published on pub.dev before merging to prevent CI breakage for examples.

harmony-os/SherpaOnnxHar/sherpa_onnx/BuildProfile.ets (1)

4-4: HAR version constant updated—looks correct.
No functional impact; aligns with the global version bump.

dart-api-examples/vad/pubspec.yaml (1)

11-13: Dependency constraint looks good – confirm transitive consistency.

The caret spec ^1.12.5 will accept any future 1.12.x release, which is what we want.
Just double-check that there are no lingering ^1.12.4 constraints in other Dart/Flutter packages that could force Pub to pick the lower version and produce a version-solver conflict.

dart-api-examples/speaker-diarization/pubspec.yaml (1)

10-12: Consistent dependency update – LGTM.

Everything is in sync here. Nothing else to flag.

harmony-os/SherpaOnnxVadAsr/entry/README.md (1)

3-3: README reflects the new artifact name – ensure the file actually exists.

Small doc tweak looks fine. Please make sure sherpa_onnx-v1.12.5.har has already been uploaded to the referenced HuggingFace repo; the broken link risk is easy to miss during a version bump.

flutter/sherpa_onnx_ios/ios/sherpa_onnx_ios.podspec (1)

9-11: Podspec version updated – remember to tag & push CocoaPods trunk.

Podspec change is correct. After the merge, don’t forget:

  1. git tag v1.12.5 (if you tag pods by version)
  2. pod trunk push ios/sherpa_onnx_ios.podspec

Skipping either step will prevent consumers from fetching the new version.

flutter-examples/tts/pubspec.yaml (1)

8-9: Version bump looks correct and consistent.

The package.version and the sherpa_onnx dependency were both bumped to 1.12.5, matching the release objective. No other metadata is affected.

Also applies to: 21-22

flutter-examples/streaming_asr/pubspec.yaml (1)

8-9: Consistent update to 1.12.5 – LGTM.

Both the example’s own version and its sherpa_onnx dependency now point at 1.12.5, keeping the tree in sync.

Also applies to: 34-35

pom.xml (1)

7-8: Artifact version aligned with release tag.

<version>1.12.5</version> correctly reflects the new release. Nothing else to flag.

flutter/sherpa_onnx_macos/macos/sherpa_onnx_macos.podspec (1)

7-8: Podspec version updated – OK.

The podspec now advertises 1.12.5, matching other platform packages.

new-release.sh (1)

4-6: Version-bump looks correct.

old_version/new_version values and the sed replacement string are updated consistently.
No further action required for this hunk.

mfc-examples/README.md (1)

8-10: Links updated correctly.

All download URLs now point to v1.12.5; table formatting and anchors remain intact.

flutter/sherpa_onnx/pubspec.yaml (1)

19-49: Consistent version bump across package and sub-plugins.

version: and all platform-specific dependencies were bumped to 1.12.5 in one
go — nice job keeping them aligned.

sherpa-onnx/csrc/version.cc (2)

9-22: Version metadata updated correctly

Date, SHA-1, and version string are all bumped to 1.12.5 and remain in the same immutable-string pattern used elsewhere in the project. No other logic changes introduced.


9-22: Double-check header consistency

version.h frequently duplicates these constants for inline usage; make sure its literals were updated in the same commit so that downstream consumers don’t report mixed versions at runtime.

CHANGELOG.md (1)

1-19: Changelog entry looks good

New 1.12.5 section is present at the top and follows the existing bullet-style convention. All referenced PR numbers are intact.

@csukuangfj csukuangfj merged commit 0d44df9 into k2-fsa:master Jul 10, 2025
3 of 231 checks passed
@csukuangfj csukuangfj deleted the release-v1.12.5 branch July 10, 2025 07:31
This was referenced Aug 16, 2025
@coderabbitai coderabbitai bot mentioned this pull request Aug 25, 2025
@coderabbitai coderabbitai bot mentioned this pull request Sep 1, 2025
This was referenced Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant