Skip to content

Release v1.11.4 #2169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
## 1.11.4

* Disable strict hotword matching mode for offline transducer (#1837)
* Comment refinement: Add note about vocoder file for matcha TTS config (#2106)
* Fix a typo in the JNI for Android. (#2108)
* Generate subtitles with FireRedAsr models (#2112)
* Use manylinux_2_28_x86_64 to build linux gpu for sherpa-onnx (#2123)
* Support running sherpa-onnx with RK NPU on Android (#2124)
* Fix building for HarmonyOS (#2125)
* cmake build, configurable from env (#2115)
* Expose dither in python API (#2127)
* Add support for GigaAM-CTC-v2 (#2135)
* Support Giga AM transducer V2 (#2136)
* Export kokoro 1.0 int8 models (#2137)
* Upload more onnx ASR models (#2141)
* Fix building for open harmonyOS (#2142)
* online-transducer: reset the encoder toghter with 2 previous output symbols (non-blank) (#2129)
* Fix punctuations for kokoro tts 1.1-zh. (#2146)
* Fix setting OnlineModelConfig in Java API (#2147)
* Support decoding multiple streams in Java API. (#2149)
* Support replacing homonphonic phrases (#2153)
* Add C and CXX API for homophone replacer (#2156)
* Add JavaScript API (WASM) for homophone replacer (#2157)
* Add JavaScript API (node-addon) for homophone replacer (#2158)
* Fix building without TTS (#2159)
* Add homophone replacer example for Python API. (#2161)
* More fix for building without tts (#2162)
* Add Swift API for homophone replacer. (#2164)
* Add C# API for homophone replacer (#2165)
* Add Kotlin and Java API for homophone replacer (#2166)
* Add Dart API for homophone replacer (#2167)
* Add Go API for homophone replacer (#2168)

## 1.11.3

* fix vits dict dir config (#2036)
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ project(sherpa-onnx)
# Remember to update
# ./CHANGELOG.md
# ./new-release.sh
set(SHERPA_ONNX_VERSION "1.11.3")
set(SHERPA_ONNX_VERSION "1.11.4")

# Disable warning about
#
Expand Down
6 changes: 3 additions & 3 deletions android/SherpaOnnxAar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
git clone https://github.com/k2-fsa/sherpa-onnx
cd sherpa-onnx

wget https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.11.3/sherpa-onnx-v1.11.3-android.tar.bz2
tar xvf sherpa-onnx-v1.11.3-android.tar.bz2
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.11.4/sherpa-onnx-v1.11.4-android.tar.bz2
tar xvf sherpa-onnx-v1.11.4-android.tar.bz2

cp -v jniLibs/arm64-v8a/* android/SherpaOnnxAar/sherpa_onnx/src/main/jniLibs/arm64-v8a/
cp -v jniLibs/armeabi-v7a/* android/SherpaOnnxAar/sherpa_onnx/src/main/jniLibs/armeabi-v7a/
Expand All @@ -16,5 +16,5 @@ cd android/SherpaOnnxAar

./gradlew :sherpa_onnx:assembleRelease
ls -lh ./sherpa_onnx/build/outputs/aar/sherpa_onnx-release.aar
cp ./sherpa_onnx/build/outputs/aar/sherpa_onnx-release.aar ../../sherpa-onnx-1.11.3.aar
cp ./sherpa_onnx/build/outputs/aar/sherpa_onnx-release.aar ../../sherpa-onnx-1.11.4.aar
```
2 changes: 1 addition & 1 deletion android/SherpaOnnxJavaDemo/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ dependencies {
implementation 'pub.devrel:easypermissions:3.0.0'
implementation 'androidx.core:core-ktx:1.7.0'
// implementation files('/Users/fangjun/open-source/sherpa-onnx/android/SherpaOnnxAar/sherpa_onnx/build/outputs/aar/sherpa_onnx-release.aar')
implementation 'com.github.k2-fsa:sherpa-onnx:v1.11.3'
implementation 'com.github.k2-fsa:sherpa-onnx:v1.11.4'
}
2 changes: 1 addition & 1 deletion build-ios-shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ for d in ios-arm64_x86_64-simulator ios-arm64; do
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.11.3</string>
<string>1.11.4</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>
Expand Down
2 changes: 1 addition & 1 deletion dart-api-examples/add-punctuations/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:
sdk: ">=3.0.0 <4.0.0"

dependencies:
sherpa_onnx: ^1.11.3
sherpa_onnx: ^1.11.4
path: ^1.9.0
args: ^2.5.0

Expand Down
2 changes: 1 addition & 1 deletion dart-api-examples/audio-tagging/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:
sdk: ">=3.0.0 <4.0.0"

dependencies:
sherpa_onnx: ^1.11.3
sherpa_onnx: ^1.11.4
path: ^1.9.0
args: ^2.5.0

Expand Down
2 changes: 1 addition & 1 deletion dart-api-examples/keyword-spotter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:
sdk: ">=3.0.0 <4.0.0"

dependencies:
sherpa_onnx: ^1.11.3
sherpa_onnx: ^1.11.4
# sherpa_onnx:
# path: ../../flutter/sherpa_onnx
path: ^1.9.0
Expand Down
2 changes: 1 addition & 1 deletion dart-api-examples/non-streaming-asr/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:

# Add regular dependencies here.
dependencies:
sherpa_onnx: ^1.11.3
sherpa_onnx: ^1.11.4
path: ^1.9.0
args: ^2.5.0

Expand Down
2 changes: 1 addition & 1 deletion dart-api-examples/speaker-diarization/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ environment:
sdk: ">=3.0.0 <4.0.0"

dependencies:
sherpa_onnx: ^1.11.3
sherpa_onnx: ^1.11.4
# sherpa_onnx:
# path: ../../flutter/sherpa_onnx
path: ^1.9.0
Expand Down
2 changes: 1 addition & 1 deletion dart-api-examples/speaker-identification/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:
sdk: ">=3.0.0 <4.0.0"

dependencies:
sherpa_onnx: ^1.11.3
sherpa_onnx: ^1.11.4
path: ^1.9.0
args: ^2.5.0

Expand Down
2 changes: 1 addition & 1 deletion dart-api-examples/speech-enhancement-gtcrn/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:

# Add regular dependencies here.
dependencies:
sherpa_onnx: ^1.11.3
sherpa_onnx: ^1.11.4
# sherpa_onnx:
# path: ../../flutter/sherpa_onnx
path: ^1.9.0
Expand Down
2 changes: 1 addition & 1 deletion dart-api-examples/streaming-asr/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment:

# Add regular dependencies here.
dependencies:
sherpa_onnx: ^1.11.3
sherpa_onnx: ^1.11.4
path: ^1.9.0
args: ^2.5.0

Expand Down
2 changes: 1 addition & 1 deletion dart-api-examples/tts/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ environment:

# Add regular dependencies here.
dependencies:
sherpa_onnx: ^1.11.3
sherpa_onnx: ^1.11.4
path: ^1.9.0
args: ^2.5.0

Expand Down
2 changes: 1 addition & 1 deletion dart-api-examples/vad-with-non-streaming-asr/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
sdk: ">=3.0.0 <4.0.0"

dependencies:
sherpa_onnx: ^1.11.3
sherpa_onnx: ^1.11.4
path: ^1.9.0
args: ^2.5.0

Expand Down
2 changes: 1 addition & 1 deletion dart-api-examples/vad/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:
sdk: ">=3.0.0 <4.0.0"

dependencies:
sherpa_onnx: ^1.11.3
sherpa_onnx: ^1.11.4
path: ^1.9.0
args: ^2.5.0

Expand Down
4 changes: 2 additions & 2 deletions flutter-examples/streaming_asr/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >

publish_to: 'none'

version: 1.11.3
version: 1.11.4

topics:
- speech-recognition
Expand All @@ -31,7 +31,7 @@ dependencies:
record: ^5.1.0
url_launcher: ^6.2.6

sherpa_onnx: ^1.11.3
sherpa_onnx: ^1.11.4
# sherpa_onnx:
# path: ../../flutter/sherpa_onnx

Expand Down
4 changes: 2 additions & 2 deletions flutter-examples/tts/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.11.3
version: 1.11.4

environment:
sdk: ">=2.17.0 <4.0.0"
Expand All @@ -18,7 +18,7 @@ dependencies:
cupertino_icons: ^1.0.6
path_provider: ^2.1.3
path: ^1.9.0
sherpa_onnx: ^1.11.3
sherpa_onnx: ^1.11.4
# sherpa_onnx:
# path: ../../flutter/sherpa_onnx
url_launcher: 6.2.6
Expand Down
12 changes: 6 additions & 6 deletions flutter/sherpa_onnx/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ topics:
- voice-activity-detection

# remember to change the version in ../sherpa_onnx_macos/macos/sherpa_onnx_macos.podspec
version: 1.11.3
version: 1.11.4

homepage: https://github.com/k2-fsa/sherpa-onnx

Expand All @@ -30,23 +30,23 @@ dependencies:
flutter:
sdk: flutter

sherpa_onnx_android: ^1.11.3
sherpa_onnx_android: ^1.11.4
# sherpa_onnx_android:
# path: ../sherpa_onnx_android

sherpa_onnx_macos: ^1.11.3
sherpa_onnx_macos: ^1.11.4
# sherpa_onnx_macos:
# path: ../sherpa_onnx_macos

sherpa_onnx_linux: ^1.11.3
sherpa_onnx_linux: ^1.11.4
# sherpa_onnx_linux:
# path: ../sherpa_onnx_linux

sherpa_onnx_windows: ^1.11.3
sherpa_onnx_windows: ^1.11.4
# sherpa_onnx_windows:
# path: ../sherpa_onnx_windows

sherpa_onnx_ios: ^1.11.3
sherpa_onnx_ios: ^1.11.4
# sherpa_onnx_ios:
# path: ../sherpa_onnx_ios

Expand Down
2 changes: 1 addition & 1 deletion flutter/sherpa_onnx_ios/ios/sherpa_onnx_ios.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# https://groups.google.com/g/dart-ffi/c/nUATMBy7r0c
Pod::Spec.new do |s|
s.name = 'sherpa_onnx_ios'
s.version = '1.11.3'
s.version = '1.11.4'
s.summary = 'A new Flutter FFI plugin project.'
s.description = <<-DESC
A new Flutter FFI plugin project.
Expand Down
2 changes: 1 addition & 1 deletion flutter/sherpa_onnx_macos/macos/sherpa_onnx_macos.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'sherpa_onnx_macos'
s.version = '1.11.3'
s.version = '1.11.4'
s.summary = 'sherpa-onnx Flutter FFI plugin project.'
s.description = <<-DESC
sherpa-onnx Flutter FFI plugin project.
Expand Down
2 changes: 1 addition & 1 deletion harmony-os/SherpaOnnxHar/sherpa_onnx/BuildProfile.ets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Use these variables when you tailor your ArkTS code. They must be of the const type.
*/
export const HAR_VERSION = '1.11.3';
export const HAR_VERSION = '1.11.4';
export const BUILD_MODE_NAME = 'debug';
export const DEBUG = true;
export const TARGET_NAME = 'default';
Expand Down
1 change: 1 addition & 0 deletions harmony-os/SherpaOnnxHar/sherpa_onnx/Index.ets
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export { CircularBuffer, SileroVadConfig, SpeechSegment, Vad, VadConfig, } from
export { Samples,
OfflineStream,
FeatureConfig,
HomophoneReplacerConfig,
OfflineDolphinModelConfig,
OfflineTransducerModelConfig,
OfflineParaformerModelConfig,
Expand Down
2 changes: 1 addition & 1 deletion harmony-os/SherpaOnnxHar/sherpa_onnx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ or update your `oh-package.json5` to include the following:

```
"dependencies": {
"sherpa_onnx": "1.11.3",
"sherpa_onnx": "1.11.4",
},
```

Expand Down
2 changes: 1 addition & 1 deletion harmony-os/SherpaOnnxHar/sherpa_onnx/oh-package.json5
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sherpa_onnx",
"version": "1.11.3",
"version": "1.11.4",
"description": "On-device speech-to-text, text-to-speech, and speaker diarization using Next-gen Kaldi without Internet connection",
"main": "Index.ets",
"author": "The next-gen Kaldi team",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ export class OfflineStream {
}
}

export class HomophoneReplacerConfig {
public dictDir: string = '';
public lexicon: string = '';
public ruleFsts: string = '';
}

export class FeatureConfig {
public sampleRate: number = 16000;
public featureDim: number = 80;
Expand Down Expand Up @@ -109,6 +115,7 @@ export class OfflineRecognizerConfig {
public ruleFsts: string = '';
public ruleFars: string = '';
public blankPenalty: number = 0;
public hr: HomophoneReplacerConfig = new HomophoneReplacerConfig();
}

export class OfflineRecognizerResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
reset,
} from 'libsherpa_onnx.so';

import { FeatureConfig, Samples } from './NonStreamingAsr';
import { FeatureConfig, HomophoneReplacerConfig, Samples } from './NonStreamingAsr';

export class OnlineStream {
public handle: object;
Expand Down Expand Up @@ -79,6 +79,7 @@ export class OnlineRecognizerConfig {
public ruleFsts: string = '';
public ruleFars: string = '';
public blankPenalty: number = 0;
public hr: HomophoneReplacerConfig = new HomophoneReplacerConfig();
}

interface OnlineRecognizerResultJson {
Expand Down Expand Up @@ -137,4 +138,4 @@ export class OnlineRecognizer {

return r;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "",
"license": "",
"dependencies": {
"sherpa_onnx": "1.11.3"
"sherpa_onnx": "1.11.4"
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "",
"license": "",
"dependencies": {
"sherpa_onnx": "1.11.3",
"sherpa_onnx": "1.11.4",
}
}

2 changes: 1 addition & 1 deletion harmony-os/SherpaOnnxStreamingAsr/entry/oh-package.json5
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "",
"license": "",
"dependencies": {
"sherpa_onnx": "1.11.3",
"sherpa_onnx": "1.11.4",
}
}

2 changes: 1 addition & 1 deletion harmony-os/SherpaOnnxTts/entry/oh-package.json5
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "",
"license": "",
"dependencies": {
"sherpa_onnx": "1.11.3",
"sherpa_onnx": "1.11.4",
}
}

2 changes: 1 addition & 1 deletion harmony-os/SherpaOnnxVadAsr/entry/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Introduction

Please download ./sherpa_onnx-v1.11.3.har
Please download ./sherpa_onnx-v1.11.4.har
from <https://huggingface.co/csukuangfj/sherpa-onnx-harmony-os/tree/main/har>

Hint: For users who have no access to huggingface, please use
Expand Down
Loading
Loading