Skip to content

Commit abc4daa

Browse files
authored
Release v1.11.4 (#2169)
1 parent fcb4c4e commit abc4daa

File tree

39 files changed

+105
-63
lines changed

39 files changed

+105
-63
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
## 1.11.4
2+
3+
* Disable strict hotword matching mode for offline transducer (#1837)
4+
* Comment refinement: Add note about vocoder file for matcha TTS config (#2106)
5+
* Fix a typo in the JNI for Android. (#2108)
6+
* Generate subtitles with FireRedAsr models (#2112)
7+
* Use manylinux_2_28_x86_64 to build linux gpu for sherpa-onnx (#2123)
8+
* Support running sherpa-onnx with RK NPU on Android (#2124)
9+
* Fix building for HarmonyOS (#2125)
10+
* cmake build, configurable from env (#2115)
11+
* Expose dither in python API (#2127)
12+
* Add support for GigaAM-CTC-v2 (#2135)
13+
* Support Giga AM transducer V2 (#2136)
14+
* Export kokoro 1.0 int8 models (#2137)
15+
* Upload more onnx ASR models (#2141)
16+
* Fix building for open harmonyOS (#2142)
17+
* online-transducer: reset the encoder toghter with 2 previous output symbols (non-blank) (#2129)
18+
* Fix punctuations for kokoro tts 1.1-zh. (#2146)
19+
* Fix setting OnlineModelConfig in Java API (#2147)
20+
* Support decoding multiple streams in Java API. (#2149)
21+
* Support replacing homonphonic phrases (#2153)
22+
* Add C and CXX API for homophone replacer (#2156)
23+
* Add JavaScript API (WASM) for homophone replacer (#2157)
24+
* Add JavaScript API (node-addon) for homophone replacer (#2158)
25+
* Fix building without TTS (#2159)
26+
* Add homophone replacer example for Python API. (#2161)
27+
* More fix for building without tts (#2162)
28+
* Add Swift API for homophone replacer. (#2164)
29+
* Add C# API for homophone replacer (#2165)
30+
* Add Kotlin and Java API for homophone replacer (#2166)
31+
* Add Dart API for homophone replacer (#2167)
32+
* Add Go API for homophone replacer (#2168)
33+
134
## 1.11.3
235

336
* fix vits dict dir config (#2036)

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ project(sherpa-onnx)
1414
# Remember to update
1515
# ./CHANGELOG.md
1616
# ./new-release.sh
17-
set(SHERPA_ONNX_VERSION "1.11.3")
17+
set(SHERPA_ONNX_VERSION "1.11.4")
1818

1919
# Disable warning about
2020
#

android/SherpaOnnxAar/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
git clone https://github.com/k2-fsa/sherpa-onnx
55
cd sherpa-onnx
66
7-
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.11.3/sherpa-onnx-v1.11.3-android.tar.bz2
8-
tar xvf sherpa-onnx-v1.11.3-android.tar.bz2
7+
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.11.4/sherpa-onnx-v1.11.4-android.tar.bz2
8+
tar xvf sherpa-onnx-v1.11.4-android.tar.bz2
99
1010
cp -v jniLibs/arm64-v8a/* android/SherpaOnnxAar/sherpa_onnx/src/main/jniLibs/arm64-v8a/
1111
cp -v jniLibs/armeabi-v7a/* android/SherpaOnnxAar/sherpa_onnx/src/main/jniLibs/armeabi-v7a/
@@ -16,5 +16,5 @@ cd android/SherpaOnnxAar
1616
1717
./gradlew :sherpa_onnx:assembleRelease
1818
ls -lh ./sherpa_onnx/build/outputs/aar/sherpa_onnx-release.aar
19-
cp ./sherpa_onnx/build/outputs/aar/sherpa_onnx-release.aar ../../sherpa-onnx-1.11.3.aar
19+
cp ./sherpa_onnx/build/outputs/aar/sherpa_onnx-release.aar ../../sherpa-onnx-1.11.4.aar
2020
```

android/SherpaOnnxJavaDemo/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ dependencies {
3434
implementation 'pub.devrel:easypermissions:3.0.0'
3535
implementation 'androidx.core:core-ktx:1.7.0'
3636
// implementation files('/Users/fangjun/open-source/sherpa-onnx/android/SherpaOnnxAar/sherpa_onnx/build/outputs/aar/sherpa_onnx-release.aar')
37-
implementation 'com.github.k2-fsa:sherpa-onnx:v1.11.3'
37+
implementation 'com.github.k2-fsa:sherpa-onnx:v1.11.4'
3838
}

build-ios-shared.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ for d in ios-arm64_x86_64-simulator ios-arm64; do
242242
<key>CFBundlePackageType</key>
243243
<string>FMWK</string>
244244
<key>CFBundleShortVersionString</key>
245-
<string>1.11.3</string>
245+
<string>1.11.4</string>
246246
<key>CFBundleSupportedPlatforms</key>
247247
<array>
248248
<string>iPhoneOS</string>

dart-api-examples/add-punctuations/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
sdk: ">=3.0.0 <4.0.0"
1010

1111
dependencies:
12-
sherpa_onnx: ^1.11.3
12+
sherpa_onnx: ^1.11.4
1313
path: ^1.9.0
1414
args: ^2.5.0
1515

dart-api-examples/audio-tagging/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
sdk: ">=3.0.0 <4.0.0"
1010

1111
dependencies:
12-
sherpa_onnx: ^1.11.3
12+
sherpa_onnx: ^1.11.4
1313
path: ^1.9.0
1414
args: ^2.5.0
1515

dart-api-examples/keyword-spotter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
sdk: ">=3.0.0 <4.0.0"
1010

1111
dependencies:
12-
sherpa_onnx: ^1.11.3
12+
sherpa_onnx: ^1.11.4
1313
# sherpa_onnx:
1414
# path: ../../flutter/sherpa_onnx
1515
path: ^1.9.0

dart-api-examples/non-streaming-asr/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ environment:
1010

1111
# Add regular dependencies here.
1212
dependencies:
13-
sherpa_onnx: ^1.11.3
13+
sherpa_onnx: ^1.11.4
1414
path: ^1.9.0
1515
args: ^2.5.0
1616

dart-api-examples/speaker-diarization/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ environment:
88
sdk: ">=3.0.0 <4.0.0"
99

1010
dependencies:
11-
sherpa_onnx: ^1.11.3
11+
sherpa_onnx: ^1.11.4
1212
# sherpa_onnx:
1313
# path: ../../flutter/sherpa_onnx
1414
path: ^1.9.0

dart-api-examples/speaker-identification/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
sdk: ">=3.0.0 <4.0.0"
1010

1111
dependencies:
12-
sherpa_onnx: ^1.11.3
12+
sherpa_onnx: ^1.11.4
1313
path: ^1.9.0
1414
args: ^2.5.0
1515

dart-api-examples/speech-enhancement-gtcrn/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ environment:
1010

1111
# Add regular dependencies here.
1212
dependencies:
13-
sherpa_onnx: ^1.11.3
13+
sherpa_onnx: ^1.11.4
1414
# sherpa_onnx:
1515
# path: ../../flutter/sherpa_onnx
1616
path: ^1.9.0

dart-api-examples/streaming-asr/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ environment:
1111

1212
# Add regular dependencies here.
1313
dependencies:
14-
sherpa_onnx: ^1.11.3
14+
sherpa_onnx: ^1.11.4
1515
path: ^1.9.0
1616
args: ^2.5.0
1717

dart-api-examples/tts/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ environment:
88

99
# Add regular dependencies here.
1010
dependencies:
11-
sherpa_onnx: ^1.11.3
11+
sherpa_onnx: ^1.11.4
1212
path: ^1.9.0
1313
args: ^2.5.0
1414

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ environment:
1010
sdk: ">=3.0.0 <4.0.0"
1111

1212
dependencies:
13-
sherpa_onnx: ^1.11.3
13+
sherpa_onnx: ^1.11.4
1414
path: ^1.9.0
1515
args: ^2.5.0
1616

dart-api-examples/vad/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
sdk: ">=3.0.0 <4.0.0"
1010

1111
dependencies:
12-
sherpa_onnx: ^1.11.3
12+
sherpa_onnx: ^1.11.4
1313
path: ^1.9.0
1414
args: ^2.5.0
1515

flutter-examples/streaming_asr/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: >
55
66
publish_to: 'none'
77

8-
version: 1.11.3
8+
version: 1.11.4
99

1010
topics:
1111
- speech-recognition
@@ -31,7 +31,7 @@ dependencies:
3131
record: ^5.1.0
3232
url_launcher: ^6.2.6
3333

34-
sherpa_onnx: ^1.11.3
34+
sherpa_onnx: ^1.11.4
3535
# sherpa_onnx:
3636
# path: ../../flutter/sherpa_onnx
3737

flutter-examples/tts/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: >
55
66
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
77

8-
version: 1.11.3
8+
version: 1.11.4
99

1010
environment:
1111
sdk: ">=2.17.0 <4.0.0"
@@ -18,7 +18,7 @@ dependencies:
1818
cupertino_icons: ^1.0.6
1919
path_provider: ^2.1.3
2020
path: ^1.9.0
21-
sherpa_onnx: ^1.11.3
21+
sherpa_onnx: ^1.11.4
2222
# sherpa_onnx:
2323
# path: ../../flutter/sherpa_onnx
2424
url_launcher: 6.2.6

flutter/sherpa_onnx/pubspec.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ topics:
1717
- voice-activity-detection
1818

1919
# remember to change the version in ../sherpa_onnx_macos/macos/sherpa_onnx_macos.podspec
20-
version: 1.11.3
20+
version: 1.11.4
2121

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

@@ -30,23 +30,23 @@ dependencies:
3030
flutter:
3131
sdk: flutter
3232

33-
sherpa_onnx_android: ^1.11.3
33+
sherpa_onnx_android: ^1.11.4
3434
# sherpa_onnx_android:
3535
# path: ../sherpa_onnx_android
3636

37-
sherpa_onnx_macos: ^1.11.3
37+
sherpa_onnx_macos: ^1.11.4
3838
# sherpa_onnx_macos:
3939
# path: ../sherpa_onnx_macos
4040

41-
sherpa_onnx_linux: ^1.11.3
41+
sherpa_onnx_linux: ^1.11.4
4242
# sherpa_onnx_linux:
4343
# path: ../sherpa_onnx_linux
4444

45-
sherpa_onnx_windows: ^1.11.3
45+
sherpa_onnx_windows: ^1.11.4
4646
# sherpa_onnx_windows:
4747
# path: ../sherpa_onnx_windows
4848

49-
sherpa_onnx_ios: ^1.11.3
49+
sherpa_onnx_ios: ^1.11.4
5050
# sherpa_onnx_ios:
5151
# path: ../sherpa_onnx_ios
5252

flutter/sherpa_onnx_ios/ios/sherpa_onnx_ios.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# https://groups.google.com/g/dart-ffi/c/nUATMBy7r0c
88
Pod::Spec.new do |s|
99
s.name = 'sherpa_onnx_ios'
10-
s.version = '1.11.3'
10+
s.version = '1.11.4'
1111
s.summary = 'A new Flutter FFI plugin project.'
1212
s.description = <<-DESC
1313
A new Flutter FFI plugin project.

flutter/sherpa_onnx_macos/macos/sherpa_onnx_macos.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'sherpa_onnx_macos'
7-
s.version = '1.11.3'
7+
s.version = '1.11.4'
88
s.summary = 'sherpa-onnx Flutter FFI plugin project.'
99
s.description = <<-DESC
1010
sherpa-onnx Flutter FFI plugin project.

harmony-os/SherpaOnnxHar/sherpa_onnx/BuildProfile.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Use these variables when you tailor your ArkTS code. They must be of the const type.
33
*/
4-
export const HAR_VERSION = '1.11.3';
4+
export const HAR_VERSION = '1.11.4';
55
export const BUILD_MODE_NAME = 'debug';
66
export const DEBUG = true;
77
export const TARGET_NAME = 'default';

harmony-os/SherpaOnnxHar/sherpa_onnx/Index.ets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export { CircularBuffer, SileroVadConfig, SpeechSegment, Vad, VadConfig, } from
66
export { Samples,
77
OfflineStream,
88
FeatureConfig,
9+
HomophoneReplacerConfig,
910
OfflineDolphinModelConfig,
1011
OfflineTransducerModelConfig,
1112
OfflineParaformerModelConfig,

harmony-os/SherpaOnnxHar/sherpa_onnx/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ or update your `oh-package.json5` to include the following:
2323

2424
```
2525
"dependencies": {
26-
"sherpa_onnx": "1.11.3",
26+
"sherpa_onnx": "1.11.4",
2727
},
2828
```
2929

harmony-os/SherpaOnnxHar/sherpa_onnx/oh-package.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sherpa_onnx",
3-
"version": "1.11.3",
3+
"version": "1.11.4",
44
"description": "On-device speech-to-text, text-to-speech, and speaker diarization using Next-gen Kaldi without Internet connection",
55
"main": "Index.ets",
66
"author": "The next-gen Kaldi team",

harmony-os/SherpaOnnxHar/sherpa_onnx/src/main/ets/components/NonStreamingAsr.ets

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ export class OfflineStream {
2626
}
2727
}
2828

29+
export class HomophoneReplacerConfig {
30+
public dictDir: string = '';
31+
public lexicon: string = '';
32+
public ruleFsts: string = '';
33+
}
34+
2935
export class FeatureConfig {
3036
public sampleRate: number = 16000;
3137
public featureDim: number = 80;
@@ -109,6 +115,7 @@ export class OfflineRecognizerConfig {
109115
public ruleFsts: string = '';
110116
public ruleFars: string = '';
111117
public blankPenalty: number = 0;
118+
public hr: HomophoneReplacerConfig = new HomophoneReplacerConfig();
112119
}
113120

114121
export class OfflineRecognizerResult {

harmony-os/SherpaOnnxHar/sherpa_onnx/src/main/ets/components/StreamingAsr.ets

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
reset,
1111
} from 'libsherpa_onnx.so';
1212

13-
import { FeatureConfig, Samples } from './NonStreamingAsr';
13+
import { FeatureConfig, HomophoneReplacerConfig, Samples } from './NonStreamingAsr';
1414

1515
export class OnlineStream {
1616
public handle: object;
@@ -79,6 +79,7 @@ export class OnlineRecognizerConfig {
7979
public ruleFsts: string = '';
8080
public ruleFars: string = '';
8181
public blankPenalty: number = 0;
82+
public hr: HomophoneReplacerConfig = new HomophoneReplacerConfig();
8283
}
8384

8485
interface OnlineRecognizerResultJson {
@@ -137,4 +138,4 @@ export class OnlineRecognizer {
137138

138139
return r;
139140
}
140-
}
141+
}

harmony-os/SherpaOnnxSpeakerDiarization/entry/oh-package.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "",
77
"license": "",
88
"dependencies": {
9-
"sherpa_onnx": "1.11.3"
9+
"sherpa_onnx": "1.11.4"
1010
}
1111
}
1212

harmony-os/SherpaOnnxSpeakerIdentification/entry/oh-package.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "",
77
"license": "",
88
"dependencies": {
9-
"sherpa_onnx": "1.11.3",
9+
"sherpa_onnx": "1.11.4",
1010
}
1111
}
1212

harmony-os/SherpaOnnxStreamingAsr/entry/oh-package.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "",
77
"license": "",
88
"dependencies": {
9-
"sherpa_onnx": "1.11.3",
9+
"sherpa_onnx": "1.11.4",
1010
}
1111
}
1212

harmony-os/SherpaOnnxTts/entry/oh-package.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "",
77
"license": "",
88
"dependencies": {
9-
"sherpa_onnx": "1.11.3",
9+
"sherpa_onnx": "1.11.4",
1010
}
1111
}
1212

harmony-os/SherpaOnnxVadAsr/entry/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Introduction
22

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

66
Hint: For users who have no access to huggingface, please use

0 commit comments

Comments
 (0)