Skip to content

Release 1.12.11 - #2547

Merged
csukuangfj merged 1 commit into
k2-fsa:masterfrom
csukuangfj:release-v1.12.11
Sep 1, 2025
Merged

csukuangfj merged 1 commit into
k2-fsa:masterfrom
csukuangfj:release-v1.12.11

Conversation

@csukuangfj

@csukuangfj csukuangfj commented Sep 1, 2025 •

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • New Features

    • Android AAR now includes x86 and x86_64 JNI libraries.
    • Simplified TTS ZipVoice frontend initialization with debug defaulting to off.
  • Documentation

    • Added changelog for v1.12.11.
    • Updated installation guides, examples, and download links across Android, HarmonyOS, Flutter, and MFC docs.
  • Chores

    • Version bumped to 1.12.11 across all platforms and packages (Android apps, iOS/macOS pods, Flutter/Dart, Node.js, Python wheels, CMake, JitPack, HarmonyOS).
    • Updated example app dependencies and Android version codes.

@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Sep 1, 2025
@coderabbitai

coderabbitai Bot commented Sep 1, 2025 •

Copy link
Copy Markdown

Walkthrough

Repository-wide version bump to 1.12.11 across build scripts, manifests, and examples; documentation updated accordingly. Android/Harmony/Flutter/Dart/Node package versions and dependencies updated. iOS build script version strings bumped. C++: add default false for the debug parameter in OfflineTtsZipvoiceFrontend constructors. Version metadata strings updated.

Changes

Cohort / File(s) Summary
Core version constants
CMakeLists.txt, sherpa-onnx/csrc/version.cc
Bump SHERPA_ONNX_VERSION and embedded git/date/version strings from 1.12.10 to 1.12.11.
Android app versioning
android/SherpaOnnx*/app/build.gradle*, android/SherpaOnnx*/app/build.gradle.kts
Update versionCode 20250825→20250901 and versionName "1.12.10"→"1.12.11" across Android modules.
Android README/AAR/JitPack
android/SherpaOnnxAar/README.md, jitpack.yml
Update instructions, artifact names, and URLs to 1.12.11; include x86/x86_64 JNI copy steps; adjust JitPack fetch/install to 1.12.11.
Android demo dependency
android/SherpaOnnxJavaDemo/app/build.gradle, android/SherpaOnnxSimulateStreamingAsrWearOs/app/build.gradle.kts
Update dependency reference to com.github.k2-fsa:sherpa-onnx:v1.12.11.
iOS build script
build-ios-shared.sh
CFBundleShortVersionString updated to 1.12.11 for simulator and device builds.
Dart examples
dart-api-examples/*/pubspec.yaml
Bump sherpa_onnx dependency constraints from ^1.12.10 to ^1.12.11.
Flutter examples/packages
flutter-examples/*/pubspec.yaml, flutter/sherpa_onnx/pubspec.yaml, flutter/sherpa_onnx_ios/ios/sherpa_onnx_ios.podspec, flutter/sherpa_onnx_macos/macos/sherpa_onnx_macos.podspec
Update package versions to 1.12.11 and dependencies to ^1.12.11; bump iOS/macOS podspec versions to 1.12.11.
HarmonyOS packages/docs
harmony-os/SherpaOnnxHar/sherpa_onnx/BuildProfile.ets, .../README.md, .../oh-package.json5, harmony-os/SherpaOnnx*/*/oh-package.json5
Update HAR/version and dependency versions from 1.12.10 to 1.12.11; doc filename updated.
Node.js examples
nodejs-addon-examples/package.json, nodejs-examples/package.json
Bump sherpa-onnx(-node) dependency versions to ^1.12.11.
MFC examples docs
mfc-examples/README.md
Update prebuilt binary links from v1.12.10 to v1.12.11.
Python packaging
setup.py, scripts/wheel/sherpa-onnx-core/setup.py, scripts/wheel/sherpa-onnx-bin/setup.py, pom.xml
Bump package versions and pinned sherpa-onnx-core to 1.12.11; POM version to 1.12.11.
Release script
new-release.sh
Update old/new version codes and version strings to drive the 1.12.11 release.
C++ TTS frontend
sherpa-onnx/csrc/offline-tts-zipvoice-frontend.cc
Add default value (false) for the debug parameter in constructors and OS-specific specializations; no logic changes.
Changelog
CHANGELOG.md
Add 1.12.11 entry with 12 items (models, sample gen, packaging fixes, notes).

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant App
  participant OfflineTtsZipvoiceFrontend

  Note over App,OfflineTtsZipvoiceFrontend: Construction with optional debug flag (default false)
  App->>OfflineTtsZipvoiceFrontend: new(tokens, data_dir, pinyin_dict, meta_data[, debug])
  OfflineTtsZipvoiceFrontend-->>App: instance
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

size:M

Poem

Thump-thump goes my fluffy heart—1.12.11!
I nibbled through tags, each version spun.
Android hops, Flutter flits, iOS grins,
Harmony hums while Node.js spins.
A tiny debug defaults to calm—how zen.
New carrots fetched, release is done. 🥕✨

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

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

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit 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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

@csukuangfj
csukuangfj requested a review from Copilot September 1, 2025 04:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request bumps the sherpa-onnx library version from 1.12.10 to 1.12.11 across all project files and configuration files.

  • Updates version strings, build codes, and package dependencies throughout the codebase
  • Updates git metadata (commit SHA and date) in the version file
  • Adds changelog entries for version 1.12.11 with new features and fixes

Reviewed Changes

Copilot reviewed 56 out of 56 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
sherpa-onnx/csrc/version.cc Updates git metadata and version string to 1.12.11
sherpa-onnx/csrc/offline-tts-zipvoice-frontend.cc Adds default parameter value comments to constructor signatures
setup.py Updates sherpa-onnx-core dependency to version 1.12.11
scripts/wheel/sherpa-onnx-core/setup.py Updates package version to 1.12.11
scripts/wheel/sherpa-onnx-bin/setup.py Updates package and dependency versions to 1.12.11
pom.xml Updates Maven artifact version to 1.12.11
nodejs-examples/package.json Updates sherpa-onnx dependency to version 1.12.11
nodejs-addon-examples/package.json Updates sherpa-onnx-node dependency to version 1.12.11
new-release.sh Updates version codes and version strings for the release script
mfc-examples/README.md Updates download URLs to point to v1.12.11 releases
jitpack.yml Updates download URLs and Maven installation commands for v1.12.11
harmony-os/*/oh-package.json5 Updates sherpa_onnx dependency versions across HarmonyOS projects
harmony-os/SherpaOnnxVadAsr/entry/README.md Updates HAR file reference to v1.12.11
harmony-os/SherpaOnnxHar/sherpa_onnx/BuildProfile.ets Updates HAR_VERSION constant to 1.12.11
flutter/*/pubspec.yaml Updates Flutter package versions and dependencies to 1.12.11
build-ios-shared.sh Updates iOS framework version string to 1.12.11
android//build.gradle Updates Android app version codes and names across all projects
android/SherpaOnnxAar/README.md Updates download URLs and file references to v1.12.11
CMakeLists.txt Updates SHERPA_ONNX_VERSION variable to 1.12.11
CHANGELOG.md Adds comprehensive changelog entry for version 1.12.11

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

const std::string &tokens, const std::string &data_dir,
const std::string &pinyin_dict,
const OfflineTtsZipvoiceModelMetaData &meta_data, bool debug)
const OfflineTtsZipvoiceModelMetaData &meta_data, bool debug /*= false*/)

Copilot AI Sep 1, 2025

Copy link

Choose a reason for hiding this comment

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

Adding default parameter values in implementation files rather than header files is not recommended. Default parameter values should be specified in the header file declaration, not in the implementation.

Suggested change
const OfflineTtsZipvoiceModelMetaData &meta_data, bool debug /*= false*/)
const OfflineTtsZipvoiceModelMetaData &meta_data, bool debug)

Copilot uses AI. Check for mistakes.
AAssetManager *mgr, const std::string &tokens, const std::string &data_dir,
const std::string &pinyin_dict,
const OfflineTtsZipvoiceModelMetaData &meta_data);
const OfflineTtsZipvoiceModelMetaData &meta_data, bool debug = false);

Copilot AI Sep 1, 2025

Copy link

Choose a reason for hiding this comment

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

Template specialization declarations should not include default parameter values. Default values should only be specified in the primary template declaration in the header file.

Copilot uses AI. Check for mistakes.
NativeResourceManager *mgr, const std::string &tokens,
const std::string &data_dir, const std::string &pinyin_dict,
const OfflineTtsZipvoiceModelMetaData &meta_data);
const OfflineTtsZipvoiceModelMetaData &meta_data, bool debug = false);

Copilot AI Sep 1, 2025

Copy link

Choose a reason for hiding this comment

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

Template specialization declarations should not include default parameter values. Default values should only be specified in the primary template declaration in the header file.

Copilot uses AI. Check for mistakes.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 9

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
build-ios-shared.sh (1)

22-26: Bug: environment variable check always true; quoting missing.

The current test treats the literal string as non-empty, forcing ON every time.

-if [ ! -z CMAKE_VERBOSE_MAKEFILE ]; then
-  CMAKE_VERBOSE_MAKEFILE=ON
-else
-  CMAKE_VERBOSE_MAKEFILE=OFF
-fi
+if [ -n "${CMAKE_VERBOSE_MAKEFILE:-}" ]; then
+  CMAKE_VERBOSE_MAKEFILE="${CMAKE_VERBOSE_MAKEFILE}"
+else
+  CMAKE_VERBOSE_MAKEFILE=OFF
+fi
android/SherpaOnnxTts/app/build.gradle (1)

37-41: Remove legacy support ConstraintLayout

You’re mixing support-era and AndroidX ConstraintLayout. Drop the old artifact to avoid conflicts.

-    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
     implementation 'androidx.core:core-ktx:1.7.0'
     implementation 'com.google.android.material:material:1.9.0'
     implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
sherpa-onnx/csrc/offline-tts-zipvoice-frontend.cc (1)

366-372: Default arguments are illegal in explicit instantiation declarations.

bool debug = false in explicit template instantiations will not compile. Remove the = false; defaults belong only in the header declarations.

Apply:

 #if __ANDROID_API__ >= 9
 template OfflineTtsZipvoiceFrontend::OfflineTtsZipvoiceFrontend(
     AAssetManager *mgr, const std::string &tokens, const std::string &data_dir,
     const std::string &pinyin_dict,
-    const OfflineTtsZipvoiceModelMetaData &meta_data, bool debug = false);
+    const OfflineTtsZipvoiceModelMetaData &meta_data, bool debug);
 #endif

 #if __OHOS__
 template OfflineTtsZipvoiceFrontend::OfflineTtsZipvoiceFrontend(
     NativeResourceManager *mgr, const std::string &tokens,
     const std::string &data_dir, const std::string &pinyin_dict,
-    const OfflineTtsZipvoiceModelMetaData &meta_data, bool debug = false);
+    const OfflineTtsZipvoiceModelMetaData &meta_data, bool debug);
 #endif

Also applies to: 374-380

🧹 Nitpick comments (23)
android/SherpaOnnxSimulateStreamingAsrWearOs/app/build.gradle.kts (2)

61-61: Ensure the JitPack artifact v1.12.11 is published before merging.

The dependency points to com.github.k2-fsa:sherpa-onnx:v1.12.11. If JitPack hasn’t built the tag yet, CI/builds will fail. Consider pre-warming JitPack or mirroring to Maven Central if available.


42-43: Optional: align Compose compiler with your BOM/AGP.

Hard-coding kotlinCompilerExtensionVersion = "1.5.1" can drift from the Compose BOM. If you’re on AGP 8.1+, prefer removing this pin and letting the Compose compiler plugin manage the version, or update it to match the BOM.

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

30-30: Optional: add a note about matching the native/JNI libs.

A brief reminder that Harmony projects should use the matching 1.12.11 binaries helps avoid ABI/version mismatches.

nodejs-examples/package.json (1)

5-5: Optional: confirm prebuilt binaries/ABI coverage.

If the addon ships prebuilds, confirm 1.12.11 covers current Node LTS/ABI to avoid build-from-source in examples.

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

14-14: Optional: run dart pub upgrade --major-versions in CI for the examples.

Catches resolution issues early across all Dart examples after the bump.

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

3-4: Minor grammar/style: join into one sentence and drop “./”.

Improves readability and avoids implying a relative path.

Apply:

-Please download ./sherpa_onnx-v1.12.11.har
-from <https://huggingface.co/csukuangfj/sherpa-onnx-harmony-os/tree/main/har>
+Please download sherpa_onnx-v1.12.11.har from <https://huggingface.co/csukuangfj/sherpa-onnx-harmony-os/tree/main/har>.
android/SherpaOnnx2Pass/app/build.gradle (1)

8-13: Optional: consider modern SDK targets.

compileSdk/targetSdk are 32; consider bumping to current (e.g., 34/35) if publishing to Play.

build-ios-shared.sh (3)

245-245: CFBundleShortVersionString updated to 1.12.11.

Nice. Optional: inject the version via a variable to avoid future manual edits.

-	<string>1.12.11</string>
+	<string>${SHERPA_ONNX_VERSION}</string>

Outside this hunk, define once near the top:

# at the top, after set -e
SHERPA_ONNX_VERSION="${SHERPA_ONNX_VERSION:-1.12.11}"

18-20: Typo in env var name: MIRROW → MIRROR (keep backward compat).

This likely prevents the mirror toggle from working as intended.

-if [ "$SHERPA_ONNX_GITHUB_MIRROW" == true ]; then
-    SHERPA_ONNX_GITHUB=hub.nuaa.cf
-fi
+if [ "${SHERPA_ONNX_GITHUB_MIRROR:-false}" = true ] || [ "${SHERPA_ONNX_GITHUB_MIRROW:-false}" = true ]; then
+  SHERPA_ONNX_GITHUB=hub.nuaa.cf
+fi

156-156: Nit: stray double slash in path.

No functional impact; tidy for consistency.

-cp -v .//build/simulator_x86_64/install/lib/libsherpa-onnx-c-api.dylib ios-x86_64-simulator/
+cp -v ./build/simulator_x86_64/install/lib/libsherpa-onnx-c-api.dylib ios-x86_64-simulator/
android/SherpaOnnxVadAsr/app/build.gradle (1)

6-16: Align SDK levels across Android modules (optional)
android/SherpaOnnxVadAsr/app/build.gradle uses compileSdk 33 and targetSdk 33, while all other Android modules target SDK 34; consider bumping this module to 34 to reduce build-matrix fragmentation.

CHANGELOG.md (1)

3-14: Changelog wording/capitalization nits for consistency.
Minor style fixes: proper nouns and acronyms (Go, TTS, WASM, KWS, Win32, Hugging Face, C API).

-* Fix releasing go packages (#2529)
-* Add license info about tts models from OpenVoiceOS (#2530)
+* Fix releasing Go packages (#2529)
+* Add license info about TTS models from OpenVoiceOS (#2530)
 * Support BPE models with byte fallback. (#2531)
-* Simplify the usage of our non-Android Java API (#2533)
-* Fix wasm for kws (#2535)
+* Simplify usage of the non-Android Java API. (#2533)
+* Fix WASM for KWS. (#2535)
 * Add one more German tts model from OpenVoiceOS. (#2536)
-* Fix uploading win32 libs to huggingface (#2537)
+* Fix uploading Win32 libs to Hugging Face. (#2537)
 * Add Zipvoice (#2487)
-* Fix c api (#2545)
+* Fix C API. (#2545)
 * Fix linking (#2546)
android/SherpaOnnxTts/app/build.gradle (1)

8-13: Align compileSdk/targetSdk with other modules (34)

Other Android modules target/compile 34. Consider updating for consistency and modern API behavior.

Apply:

-    compileSdk 32
+    compileSdk 34
@@
-        targetSdk 32
+        targetSdk 34
sherpa-onnx/csrc/version.cc (2)

10-10: Version metadata updated correctly

Git date/SHA and version string match the 1.12.11 release.

Consider generating these via build defs (e.g., -DVERSION, git describe) to reduce manual edits.

Also applies to: 15-15, 20-20


1-1: Minor header comment nit

File header says version.h while this is version.cc.

-// sherpa-onnx/csrc/version.h
+// sherpa-onnx/csrc/version.cc
mfc-examples/README.md (1)

8-10: Updated links look right; confirm assets exist

Please double-check that all v1.12.11 x64/x86 assets are published before merging. Also consider replacing “URL” with the actual filenames for clarity.

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

14-15: Align compileSdk and targetSdk to API level 34 across all modules. Modules currently targeting API 32 (SherpaOnnx/app, SherpaOnnxWebSocket, SherpaOnnxTts, SherpaOnnxKws, SherpaOnnx2Pass) and API 33 (SherpaOnnxVadAsr, SherpaOnnxVad) should be updated to 34 for consistency.

jitpack.yml (1)

5-9: Switch wget/mvn install to use a version variable and retry; add checksum verification.

Improves reliability of JitPack builds when artifacts are briefly unavailable.

Apply:

-before_install:
-  - wget https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.12.11/sherpa-onnx-1.12.11.aar
+before_install:
+  - VERSION=${VERSION:-1.12.11}
+  - curl -fL --retry 5 --retry-delay 2 -o sherpa-onnx-${VERSION}.aar https://github.com/k2-fsa/sherpa-onnx/releases/download/v${VERSION}/sherpa-onnx-${VERSION}.aar
+  # optional: verify checksum if published alongside the AAR
+  # - curl -fL -o sherpa-onnx-${VERSION}.aar.sha256 https://github.com/k2-fsa/sherpa-onnx/releases/download/v${VERSION}/sherpa-onnx-${VERSION}.aar.sha256
+  # - sha256sum -c sherpa-onnx-${VERSION}.aar.sha256
 install:
-  - FILE="-Dfile=sherpa-onnx-1.12.11.aar"
-  - mvn install:install-file $FILE -DgroupId=com.k2fsa.sherpa.onnx -DartifactId=sherpa-onnx -Dversion=1.12.11 -Dpackaging=aar -DgeneratePom=true
+  - FILE="-Dfile=sherpa-onnx-${VERSION}.aar"
+  - mvn -B install:install-file $FILE -DgroupId=com.k2fsa.sherpa.onnx -DartifactId=sherpa-onnx -Dversion=${VERSION} -Dpackaging=aar -DgeneratePom=true
android/SherpaOnnxWebSocket/app/build.gradle (1)

8-8: Optional: align compileSdk/targetSdk to 34 for consistency across apps.
This module still uses 32; consider moving to 34 to match newer modules and reduce fragmentation.

Also applies to: 13-13

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

8-8: Optional: update compileSdk/targetSdk to 34.
Brings this sample in line with the modules already on API 34.

Also applies to: 13-13

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

31-36: Optional: refresh AndroidX deps to match compileSdk 34.

Current libraries are several years old; upgrading reduces compatibility issues with API 34.

Suggested updates:

-implementation 'androidx.appcompat:appcompat:1.3.1'
-implementation 'com.google.android.material:material:1.3.0'
-implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
-implementation 'androidx.core:core-ktx:1.7.0'
+implementation 'androidx.appcompat:appcompat:1.7.0'
+implementation 'com.google.android.material:material:1.12.0'
+implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
+implementation 'androidx.core:core-ktx:1.13.1'
sherpa-onnx/csrc/offline-tts-zipvoice-frontend.cc (1)

199-204: Minor: remove inline /= false/ comment in the definition.

Defaults are already declared in the header; keeping comments here can confuse readers.

-    const OfflineTtsZipvoiceModelMetaData &meta_data, bool debug /*= false*/)
+    const OfflineTtsZipvoiceModelMetaData &meta_data, bool debug)
harmony-os/SherpaOnnxSpeakerDiarization/entry/oh-package.json5 (1)

9-9: Optional: standardize trailing-comma style across Harmony OS manifests.

Other oh-package.json5 files keep a trailing comma after the last dependency; this one does not. Consider aligning for consistency.

Apply this if you prefer trailing commas:

-    "sherpa_onnx": "1.12.11"
+    "sherpa_onnx": "1.12.11",
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between f0e68cd and 4fd48ea.

📒 Files selected for processing (56)
  • CHANGELOG.md (1 hunks)
  • CMakeLists.txt (1 hunks)
  • android/SherpaOnnx/app/build.gradle (1 hunks)
  • android/SherpaOnnx2Pass/app/build.gradle (1 hunks)
  • android/SherpaOnnxAar/README.md (2 hunks)
  • android/SherpaOnnxAudioTagging/app/build.gradle.kts (1 hunks)
  • android/SherpaOnnxAudioTaggingWearOs/app/build.gradle.kts (1 hunks)
  • android/SherpaOnnxJavaDemo/app/build.gradle (2 hunks)
  • android/SherpaOnnxKws/app/build.gradle (1 hunks)
  • android/SherpaOnnxSimulateStreamingAsr/app/build.gradle.kts (1 hunks)
  • android/SherpaOnnxSimulateStreamingAsrWearOs/app/build.gradle.kts (2 hunks)
  • android/SherpaOnnxSpeakerDiarization/app/build.gradle.kts (1 hunks)
  • android/SherpaOnnxSpeakerIdentification/app/build.gradle.kts (1 hunks)
  • android/SherpaOnnxSpokenLanguageIdentification/app/build.gradle.kts (1 hunks)
  • android/SherpaOnnxTts/app/build.gradle (1 hunks)
  • android/SherpaOnnxTtsEngine/app/build.gradle.kts (1 hunks)
  • android/SherpaOnnxVad/app/build.gradle (1 hunks)
  • android/SherpaOnnxVadAsr/app/build.gradle (1 hunks)
  • android/SherpaOnnxWebSocket/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 (2 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)
  • scripts/wheel/sherpa-onnx-bin/setup.py (2 hunks)
  • scripts/wheel/sherpa-onnx-core/setup.py (1 hunks)
  • setup.py (1 hunks)
  • sherpa-onnx/csrc/offline-tts-zipvoice-frontend.cc (2 hunks)
  • sherpa-onnx/csrc/version.cc (1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-08-06T04:23:50.237Z
Learnt from: litongjava
PR: k2-fsa/sherpa-onnx#2440
File: sherpa-onnx/java-api/src/main/java/com/k2fsa/sherpa/onnx/core/Core.java:4-6
Timestamp: 2025-08-06T04:23:50.237Z
Learning: The sherpa-onnx JNI library files are stored in Hugging Face repository at https://huggingface.co/csukuangfj/sherpa-onnx-libs under versioned directories like jni/1.12.7/, and the actual Windows JNI library filename is "sherpa-onnx-jni.dll" as defined in Core.java constants.

Applied to files:

  • harmony-os/SherpaOnnxSpeakerIdentification/entry/oh-package.json5
  • harmony-os/SherpaOnnxStreamingAsr/entry/oh-package.json5
  • sherpa-onnx/csrc/version.cc
  • dart-api-examples/vad/pubspec.yaml
  • jitpack.yml
  • dart-api-examples/speaker-diarization/pubspec.yaml
  • dart-api-examples/add-punctuations/pubspec.yaml
  • flutter/sherpa_onnx/pubspec.yaml
  • harmony-os/SherpaOnnxSpeakerDiarization/entry/oh-package.json5
  • pom.xml
  • harmony-os/SherpaOnnxHar/sherpa_onnx/oh-package.json5
  • mfc-examples/README.md
  • harmony-os/SherpaOnnxTts/entry/oh-package.json5
  • dart-api-examples/keyword-spotter/pubspec.yaml
  • harmony-os/SherpaOnnxHar/sherpa_onnx/README.md
  • harmony-os/SherpaOnnxVadAsr/entry/oh-package.json5
  • dart-api-examples/speaker-identification/pubspec.yaml
  • dart-api-examples/vad-with-non-streaming-asr/pubspec.yaml
  • dart-api-examples/audio-tagging/pubspec.yaml
  • flutter-examples/streaming_asr/pubspec.yaml
  • android/SherpaOnnxAar/README.md
  • harmony-os/SherpaOnnxVadAsr/entry/README.md
📚 Learning: 2025-08-06T04:18:47.981Z
Learnt from: litongjava
PR: k2-fsa/sherpa-onnx#2440
File: sherpa-onnx/java-api/src/main/java/com/k2fsa/sherpa/onnx/core/Core.java:4-6
Timestamp: 2025-08-06T04:18:47.981Z
Learning: In sherpa-onnx Java API, the native library names in Core.java (WIN_NATIVE_LIBRARY_NAME = "sherpa-onnx-jni.dll", UNIX_NATIVE_LIBRARY_NAME = "libsherpa-onnx-jni.so", MACOS_NATIVE_LIBRARY_NAME = "libsherpa-onnx-jni.dylib") are copied directly from the compiled binary filenames and should not be changed to match other libraries' naming conventions.

Applied to files:

  • sherpa-onnx/csrc/version.cc
  • pom.xml
  • android/SherpaOnnxAar/README.md
🧬 Code graph analysis (2)
setup.py (1)
cmake/cmake_extension.py (1)
  • need_split_package (16-18)
sherpa-onnx/csrc/offline-tts-zipvoice-frontend.cc (1)
sherpa-onnx/csrc/offline-tts-zipvoice-frontend.h (1)
  • OfflineTtsZipvoiceFrontend (19-58)
🪛 LanguageTool
CHANGELOG.md

[grammar] ~4-~4: There might be a mistake here.
Context: ...samples for MatchaTTS (English). (#2527) * Fix releasing go packages (#2529) * Add ...

(QB_NEW_EN)


[grammar] ~5-~5: There might be a mistake here.
Context: ...527) * Fix releasing go packages (#2529) * Add license info about tts models from O...

(QB_NEW_EN)


[grammar] ~6-~6: There might be a mistake here.
Context: ...bout tts models from OpenVoiceOS (#2530) * Support BPE models with byte fallback. (...

(QB_NEW_EN)


[grammar] ~7-~7: There might be a mistake here.
Context: ...t BPE models with byte fallback. (#2531) * Simplify the usage of our non-Android Ja...

(QB_NEW_EN)


[grammar] ~10-~10: There might be a mistake here.
Context: ...rman tts model from OpenVoiceOS. (#2536) * Fix uploading win32 libs to huggingface ...

(QB_NEW_EN)


[grammar] ~11-~11: There might be a mistake here.
Context: ...oading win32 libs to huggingface (#2537) * Add Zipvoice (#2487) * Fix c api (#2545)...

(QB_NEW_EN)


[grammar] ~12-~12: There might be a mistake here.
Context: ...ggingface (#2537) * Add Zipvoice (#2487) * Fix c api (#2545) * Fix linking (#2546) ...

(QB_NEW_EN)


[grammar] ~13-~13: There might be a mistake here.
Context: ...Add Zipvoice (#2487) * Fix c api (#2545) * Fix linking (#2546) ## 1.12.10 * Add V...

(QB_NEW_EN)

harmony-os/SherpaOnnxVadAsr/entry/README.md

[grammar] ~3-~3: There might be a mistake here.
Context: ...ease download ./sherpa_onnx-v1.12.11.har from <https://huggingface.co/csukuangfj/...

(QB_NEW_EN)

🔇 Additional comments (48)
android/SherpaOnnxSimulateStreamingAsrWearOs/app/build.gradle.kts (1)

14-16: Version bump looks consistent and correct.

versionCode 20250901 and versionName "1.12.11" align with the release. No issues.

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

25-27: Docs version updated correctly.

"sherpa_onnx": "1.12.11" matches the release. LGTM.

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

13-13: Dart dependency bump is correct.

sherpa_onnx ^1.12.11 matches the repo-wide version update.


13-13: Verify pub.dev availability before tagging the release.

Ensure sherpa_onnx 1.12.11 is published on pub.dev so examples resolve without path overrides.

nodejs-examples/package.json (1)

5-5: Node dependency bump looks good.

"sherpa-onnx": "^1.12.11" aligns with the release.

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

14-14: Dependency version updated correctly.

Matches the 1.12.11 release.

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

11-11: Version bump LGTM. Dependency updated to sherpa_onnx ^1.12.11; consistent with the release scope. Unable to run dart pub get here (dart not found); please verify locally that dart pub get succeeds without errors.

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

13-13: Version bump LGTM; verify dependency resolution locally
Matches the repo-wide upgrade to 1.12.11. After installing the Dart SDK, run dart pub get in dart-api-examples/vad-with-non-streaming-asr to confirm no errors.

dart-api-examples/add-punctuations/pubspec.yaml (1)

12-12: Approve sherpa_onnx version bump
No API changes in the Dart example; please verify locally that dart pub get completes without errors.

android/SherpaOnnxSpeakerDiarization/app/build.gradle.kts (1)

14-15: LGTM on versionCode/versionName bump.
Monotonic versionCode (20250901) and name 1.12.11 align with the release date/version.

android/SherpaOnnxAudioTagging/app/build.gradle.kts (1)

14-15: Version metadata bump looks consistent.
No other config changes; safe for release track.

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

12-12: Version bump looks good.

No issues with the constraint update to ^1.12.11.

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

14-15: Android versionCode/versionName updated correctly.

Change is consistent with the 1.12.11 release date (2025-09-01).

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

11-11: Dependency bump acknowledged.

Matches the repo-wide 1.12.11 update.

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

12-12: LGTM on sherpa_onnx ^1.12.11.

Commented local path override remains intact for dev workflows.

android/SherpaOnnxSpokenLanguageIdentification/app/build.gradle.kts (1)

14-15: Version bump is consistent with 1.12.11.

versionCode 20250901 and versionName "1.12.11" look good and monotonic.

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

10-10: Verify podspec with pod lib lint
Run pod lib lint flutter/sherpa_onnx_ios/ios/sherpa_onnx_ios.podspec --allow-warnings locally to confirm the updated version passes validation.

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

7-7: macOS Podspec version bumped to 1.12.11; please validate with CocoaPods lint locally
Automated lint failed (pod CLI not installed). Run:

pod lib lint flutter/sherpa_onnx_macos/macos/sherpa_onnx_macos.podspec --allow-warnings
android/SherpaOnnxVadAsr/app/build.gradle (1)

14-15: Version bump OK.

versionCode 20250901 / versionName "1.12.11" are consistent.

pom.xml (2)

7-7: LGTM: version bump to 1.12.11.
No functional changes; matches the repo-wide release.


7-7: Version consistency verified across all artifacts. Scanned POM, setup scripts, CMakeLists, Jitpack, package.json, pubspec.yaml, podspecs, and Gradle files—every reference is 1.12.11.

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

13-13: Dart dep bump looks good.
sherpa_onnx: ^1.12.11 aligns with the release.

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

8-8: Example app version bumped — OK.
Matches the library release tag.

flutter/sherpa_onnx/pubspec.yaml (2)

33-49: Platform package pins updated — OK.
All platform-specific sherpa_onnx* deps set to ^1.12.11.


20-20: No action required: macOS podspec version is already 1.12.11

android/SherpaOnnxTtsEngine/app/build.gradle.kts (1)

14-15: Version bump LGTM

Date-based versionCode and versionName look consistent for 1.12.11. Please ensure all Android modules use the same values for this release.

android/SherpaOnnxAudioTaggingWearOs/app/build.gradle.kts (1)

14-15: Version bump LGTM

Matches the repo-wide 1.12.11 release scheme. Verify other Wear modules (if any) use the same date-based versionCode.

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

14-15: Version bump LGTM

Values align with 1.12.11.

scripts/wheel/sherpa-onnx-bin/setup.py (1)

16-16: Bin wheel version bumped to 1.12.11 — OK.

No functional changes beyond metadata.

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

8-8: Example app version updated to 1.12.11 — OK.


34-34: Confirmed all Flutter and Dart examples reference sherpa_onnx ^1.12.11.

android/SherpaOnnxSpeakerIdentification/app/build.gradle.kts (1)

14-15: Version metadata bumped — OK.

Matches repo-wide 1.12.11.

android/SherpaOnnxVad/app/build.gradle (2)

14-15: LGTM: version bump (20250901 / 1.12.11) is correct and consistent.


14-15: Android versionCode/versionName consistency verified
All app modules define versionCode = 20250901 and versionName = "1.12.11", and no versionCode exceeds 2 100 000 000.

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

14-15: LGTM: version bump aligns with 1.12.11.

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

4-4: LGTM: HAR_VERSION updated to 1.12.11.

android/SherpaOnnxSimulateStreamingAsr/app/build.gradle.kts (1)

14-15: LGTM: version bump is correct.

android/SherpaOnnxKws/app/build.gradle (2)

14-15: LGTM: version bump aligns with release 1.12.11.


14-15: Confirmed all Android modules use API 34
All app modules have both compileSdk and targetSdk set to 34; no updates needed.

android/SherpaOnnxAar/README.md (2)

19-20: LGTM: AAR artifact rename aligns with 1.12.11.


7-13: Prefix cp commands with the extracted directory (e.g. sherpa-onnx-v1.12.11-android/jniLibs/...) or cd sherpa-onnx-v1.12.11-android before copying.

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

12-13: Version bump and dependency pin to v1.12.11 look good.

Also applies to: 37-38

new-release.sh (1)

3-9: Approve changes. The only remaining occurrence of 1.12.10 is in CHANGELOG.md for historical record and is expected.

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

9-9: No stale 1.12.10 references remain in code or lock files; version bump to 1.12.11 is approved.

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

10-10: LGTM on the dependency bump.

The inline comment is fine for JSON5; trailing comma is valid.

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

9-9: Bump to 1.12.11 approved.

JSON5 syntax is valid; no functional impact beyond the version update.

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

9-9: Looks good.

Dependency updated to 1.12.11; matches the repo-wide release.

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

3-3: Version bump to 1.12.11 verified across all modules; no lingering “1.12.10” references found (aside from the prior changelog entry).

Comment on lines +14 to +15
versionCode 20250901
versionName "1.12.11"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Repo-wide consistency check for lingering old versions.

Run this to ensure no leftover 1.12.10 or old Android versionCodes remain.


🏁 Script executed:

#!/bin/bash
set -euo pipefail
echo "Searching for leftover 1.12.10 references..."
rg -n --hidden -S '1\.12\.10' -g '!**/build/**' || true

echo "Searching Android modules for old versionCode patterns (e.g., 202508..)"
rg -nP --hidden -S 'versionCode\s+202508\d{2}' -g '!**/build/**' || true

echo "Confirm all versionName entries are 1.12.11"
rg -nP --hidden -S 'versionName\s+"1\.12\.11"' -g '!**/build/**' | wc -l

Length of output: 774


Update lingering v1.12.10 references in CHANGELOG and workflows.

  • CHANGELOG.md (line 16): ## 1.12.10
  • .github/workflows/jar.yaml (line 221): tag: v1.12.10
  • .github/workflows/linux-jni.yaml (lines 73, 190): tag: v1.12.10
🤖 Prompt for AI Agents
In android/SherpaOnnx2Pass/app/build.gradle around lines 14-15, the versionName
has been bumped to 1.12.11 but lingering references to v1.12.10 remain; update
CHANGELOG.md line 16 from "## 1.12.10" to "## 1.12.11", and update
.github/workflows/jar.yaml (line 221) and .github/workflows/linux-jni.yaml
(lines 73 and 190) to use tag: v1.12.11 so all release/version references match
the new version.

Comment thread CMakeLists.txt
# ./CHANGELOG.md
# ./new-release.sh
set(SHERPA_ONNX_VERSION "1.12.10")
set(SHERPA_ONNX_VERSION "1.12.11")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Version bump looks good; run a quick sweep for stale 1.12.10 references.
Prevents mixed-version strings across templates/scripts.


🏁 Script executed:

#!/bin/bash
# Find any lingering 1.12.10 occurrences
rg -n --hidden -S "1\.12\.10" -g '!.git' -g '!**/build/**' -g '!**/dist/**'

Length of output: 282


Update remaining 1.12.10 references to 1.12.11
Stale tags detected—please bump these to 1.12.11 to keep CI and docs in sync:

  • CHANGELOG.md:16 (## 1.12.10)
  • .github/workflows/linux-jni.yaml:73 (tag: v1.12.10)
  • .github/workflows/linux-jni.yaml:190 (# tag: v1.12.10)
  • .github/workflows/jar.yaml:221 (tag: v1.12.10)
🤖 Prompt for AI Agents
In CMakeLists.txt around line 17 and the other files listed (CHANGELOG.md line
~16, .github/workflows/linux-jni.yaml lines ~73 and ~190, and
.github/workflows/jar.yaml around line ~221), stale version references still
point to 1.12.10; update each occurrence to 1.12.11 so CI tags and changelog
match the CMake set(SHERPA_ONNX_VERSION "1.12.11") change — specifically change
the CHANGELOG header from "## 1.12.10" to "## 1.12.11" and replace tag: v1.12.10
(and commented # tag: v1.12.10) with tag: v1.12.11 in the two workflow files and
update the jar workflow tag to v1.12.11.


dependencies:
sherpa_onnx: ^1.12.10
sherpa_onnx: ^1.12.11

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

LGTM; same publication check recommended.
Preempt failures in example builds if 1.12.11 isn’t yet live on pub.dev.


🏁 Script executed:

#!/bin/bash
curl -s https://pub.dev/api/packages/sherpa_onnx | jq -r '.latest.version'

Length of output: 82


Downgrade sherpa_onnx to the latest published version
In dart-api-examples/audio-tagging/pubspec.yaml (line 12), change

sherpa_onnx: ^1.12.11

to

sherpa_onnx: ^1.12.10

since 1.12.11 isn’t yet available on pub.dev.

🤖 Prompt for AI Agents
In dart-api-examples/audio-tagging/pubspec.yaml around line 12, the sherpa_onnx
dependency is set to a version that isn't published (1.12.11); change the
version specifier to the latest published release by replacing ^1.12.11 with
^1.12.10 in the dependencies section so pub get can resolve the package.


dependencies:
sherpa_onnx: ^1.12.10
sherpa_onnx: ^1.12.11

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Dependency constraint updated correctly.
Please ensure sherpa_onnx 1.12.11 is published on pub.dev before merging to avoid CI breakage.


🏁 Script executed:

#!/bin/bash
# Verify latest published version on pub.dev
curl -s https://pub.dev/api/packages/sherpa_onnx | jq -r '.latest.version'

Length of output: 82


Wait for sherpa_onnx 1.12.11 to be published or revert to ^1.12.10
Pub.dev’s latest sherpa_onnx release is 1.12.10; 1.12.11 isn’t available and will break CI. Either publish 1.12.11 or update the constraint back to ^1.12.10 before merging.

🤖 Prompt for AI Agents
In dart-api-examples/speaker-identification/pubspec.yaml around line 12, the
dependency constraint pins sherpa_onnx to ^1.12.11 which is not yet published on
pub.dev and will break CI; change the constraint back to ^1.12.10 (or the latest
published version) OR wait until sherpa_onnx 1.12.11 is published and then
update the file; update pubspec.yaml accordingly and run a quick pub get to
verify resolution.

path_provider: ^2.1.3
path: ^1.9.0
sherpa_onnx: ^1.12.10
sherpa_onnx: ^1.12.11

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Dependency bump to ^1.12.11 approved.
Ensure pub get succeeds in CI.


🏁 Script executed:

#!/bin/bash
set -euo pipefail
echo "Validate flutter-examples/tts resolves dependencies"
( cd flutter-examples/tts && dart pub outdated || true )

Length of output: 280


🏁 Script executed:

#!/bin/bash
set -euo pipefail
if [ -d .github/workflows ]; then
  echo "CI workflows:"
  find .github/workflows -type f -name '*.yml' -o -name '*.yaml'
  echo "Searching for 'pub get' in workflows"
  grep -R "pub get" -n .github/workflows || true
else
  echo "No workflows directory"
fi

Length of output: 7391


🏁 Script executed:

#!/bin/bash
set -euo pipefail
sed -n '1,200p' .github/workflows/test-dart-package.yaml

Length of output: 3217


🏁 Script executed:

#!/bin/bash
set -euo pipefail
grep -R "flutter-examples/tts" -n .github/workflows || true

Length of output: 78


🏁 Script executed:

#!/bin/bash
set -euo pipefail
sed -n '1,200p' .github/workflows/flutter-android.yaml

Length of output: 4718


Add CI step to validate flutter-examples/tts dependencies
Current workflows don’t run flutter pub get (or dart pub get) in the flutter-examples/tts folder. Please add a job or step in CI to run pub get there and confirm the sherpa_onnx: ^1.12.11 bump resolves without errors.

🤖 Prompt for AI Agents
In flutter-examples/tts/pubspec.yaml around line 21, CI currently doesn't run
pub get for that folder so the sherpa_onnx: ^1.12.11 bump is not validated; add
a CI job or step that installs the appropriate SDK (Flutter or Dart) on the
runner, sets working-directory to flutter-examples/tts, and runs either flutter
pub get (if using Flutter) or dart pub get, failing the job on non-zero exit so
dependency resolution errors surface; ensure the step runs on the relevant
matrix/branch and caches pub packages if desired.

{
"dependencies": {
"sherpa-onnx-node": "^1.12.10"
"sherpa-onnx-node": "^1.12.11"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Node addon dependency bumped correctly.

If the examples run CI, consider verifying prebuilt binaries exist for 1.12.11 across target Node versions via a quick install step.


🏁 Script executed:

#!/bin/bash
set -euo pipefail
npm view sherpa-onnx-node version
npm pack sherpa-onnx-node@1.12.11 >/dev/null
echo "sherpa-onnx-node@1.12.11 is retrievable from npm."

Length of output: 451


sherpa-onnx-node@1.12.11 not published on npm
In nodejs-addon-examples/package.json (line 3), the dependency "^1.12.11" does not exist (npm shows latest as 1.12.10 and npm pack sherpa-onnx-node@1.12.11 fails). Change to "^1.12.10" or publish 1.12.11 before merging.

🤖 Prompt for AI Agents
In nodejs-addon-examples/package.json around line 3, the dependency version
"sherpa-onnx-node": "^1.12.11" references a package version that is not
published; update the dependency to a published version such as
"sherpa-onnx-node": "^1.12.10" (or alternatively publish 1.12.11 before merging)
so npm install/pack succeeds.

data_files=[("Scripts", bin_files) if is_windows() else ("bin", bin_files)],
install_requires=[
"sherpa-onnx-core==1.12.10",
"sherpa-onnx-core==1.12.11",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Pin to sherpa-onnx-core 1.12.11 — ensure publish order.

Keep this strict pin, but publish core 1.12.11 before bin to avoid resolver failures; consider adding python_requires and long_description for PyPI metadata in a follow-up.


🏁 Script executed:

#!/bin/bash
# Verify core 1.12.11 exists on PyPI
curl -fsSL https://pypi.org/pypi/sherpa-onnx-core/json | jq '(.releases["1.12.11"]|length) // 0'

Length of output: 100


Publish sherpa-onnx-core 1.12.11 before bin; version missing on PyPI
The pinned core version (1.12.11) isn’t released—PyPI shows no 1.12.11 artifacts. Publish sherpa-onnx-core 1.12.11 or update this pin to an existing release.
Optional: add python_requires and long_description metadata in setup.py.

setup(
name="sherpa-onnx-core",
version="1.12.10",
version="1.12.11",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Version bump OK; consider making data_files handling explicit.

Avoid passing None to data_files and precompute file list for clarity.

Apply:

 def get_binaries():
     if not is_windows():
-        return None
+        return None
@@
-setup(
+files = get_binaries() or []
+setup(
@@
-    data_files=[("Scripts", get_binaries())] if get_binaries() else None,
+    data_files=[("Scripts", files)] if files else [],

Verify expected binaries exist for 1.12.11 before building the wheel:


🏁 Script executed:

#!/bin/bash
set -euo pipefail
DIR="scripts/wheel/sherpa-onnx-core"
PREFIX="$DIR/sherpa_onnx/lib"
for f in onnxruntime.dll sherpa-onnx-c-api.dll sherpa-onnx-cxx-api.dll sherpa-onnx-c-api.lib sherpa-onnx-cxx-api.lib; do
  [ -f "$PREFIX/$f" ] || { echo "Missing: $PREFIX/$f"; exit 1; }
done
echo "All expected Windows binaries are present."

Length of output: 469


Missing Windows binaries in wheel package
The verification script reported that onnxruntime.dll is absent from scripts/wheel/sherpa-onnx-core/sherpa_onnx/lib, causing the Windows wheel build to fail. Add the required DLLs/libs or update get_binaries() to correctly include them.

Comment thread setup.py
},
license="Apache licensed, as found in the LICENSE file",
install_requires=["sherpa-onnx-core==1.12.10"] if need_split_package() else None,
install_requires=["sherpa-onnx-core==1.12.11"] if need_split_package() else None,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Pin looks correct; ensure sherpa-onnx-core 1.12.11 is available on PyPI.

To avoid install-time failures when SHERPA_ONNX_SPLIT_PYTHON_PACKAGE is set, verify the core wheel/tag exists.

Run:


🏁 Script executed:

#!/bin/bash
set -euo pipefail
curl -s https://pypi.org/pypi/sherpa-onnx-core/json | jq -r '.releases | keys[]' | sort -V | tail -n 10

Length of output: 195


Pin broken: sherpa-onnx-core==1.12.11 isn’t on PyPI
setup.py:104 pins to 1.12.11, but the latest published core releases are up to 1.12.10. This will cause install failures when SHERPA_ONNX_SPLIT_PYTHON_PACKAGE is set—either publish 1.12.11 or update the pin to an existing version.

🤖 Prompt for AI Agents
In setup.py around line 104 the install_requires pins sherpa-onnx-core==1.12.11
which is not on PyPI; replace that pin with a published version (e.g.,
sherpa-onnx-core==1.12.10) or change the conditional to a looser constraint
(e.g., "sherpa-onnx-core>=1.12.10,<1.13.0") so installs succeed when
SHERPA_ONNX_SPLIT_PYTHON_PACKAGE is set; alternatively, if 1.12.11 must be used,
ensure that version is published to PyPI before keeping the current pin.

@csukuangfj
csukuangfj merged commit a9187d5 into k2-fsa:master Sep 1, 2025
1 of 43 checks passed
@csukuangfj
csukuangfj deleted the release-v1.12.11 branch September 1, 2025 06:09
This was referenced Sep 10, 2025
@coderabbitai coderabbitai Bot mentioned this pull request Sep 18, 2025
@coderabbitai coderabbitai Bot mentioned this pull request Nov 27, 2025
@coderabbitai coderabbitai Bot mentioned this pull request Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants