Skip to content

Commit 8880975

Browse files
authored
Release v1.10.22 (#1267)
1 parent 9dcea49 commit 8880975

File tree

18 files changed

+68
-56
lines changed

18 files changed

+68
-56
lines changed

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## 1.10.22
2+
3+
* Add Pascal API for reading wave files (#1243)
4+
* Pascal API for streaming ASR (#1246)
5+
* Pascal API for non-streaming ASR (#1247)
6+
* Pascal API for VAD (#1249)
7+
* Add more C API examples (#1255)
8+
* Add emotion, event of SenseVoice. (#1257)
9+
* Support reading multi-channel wave files with 8/16/32-bit encoded samples (#1258)
10+
* Enable IPO only for Release build. (#1261)
11+
* Add Lazarus example for generating subtitles using Silero VAD with non-streaming ASR (#1251)
12+
* Fix looking up OOVs in lexicon.txt for MeloTTS models. (#1266)
13+
14+
115
## 1.10.21
216

317
* Fix ffmpeg c api example (#1185)

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ project(sherpa-onnx)
1111
# ./nodejs-addon-examples
1212
# ./dart-api-examples/
1313
# ./CHANGELOG.md
14-
set(SHERPA_ONNX_VERSION "1.10.21")
14+
set(SHERPA_ONNX_VERSION "1.10.22")
1515

1616
# Disable warning about
1717
#

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
sdk: ^3.4.0
1010

1111
dependencies:
12-
sherpa_onnx: ^1.10.21
12+
sherpa_onnx: ^1.10.22
1313
path: ^1.9.0
1414
args: ^2.5.0
1515

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
sdk: ^3.4.0
1010

1111
dependencies:
12-
sherpa_onnx: ^1.10.21
12+
sherpa_onnx: ^1.10.22
1313
path: ^1.9.0
1414
args: ^2.5.0
1515

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
sdk: ^3.4.0
1010

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

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

+1-1
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.10.21
13+
sherpa_onnx: ^1.10.22
1414
path: ^1.9.0
1515
args: ^2.5.0
1616

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
sdk: ^3.4.0
1010

1111
dependencies:
12-
sherpa_onnx: ^1.10.21
12+
sherpa_onnx: ^1.10.22
1313
path: ^1.9.0
1414
args: ^2.5.0
1515

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

+1-1
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.10.21
14+
sherpa_onnx: ^1.10.22
1515
path: ^1.9.0
1616
args: ^2.5.0
1717

dart-api-examples/tts/pubspec.yaml

+1-1
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.10.21
11+
sherpa_onnx: ^1.10.22
1212
path: ^1.9.0
1313
args: ^2.5.0
1414

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ environment:
1010
sdk: ^3.4.0
1111

1212
dependencies:
13-
sherpa_onnx: ^1.10.21
13+
sherpa_onnx: ^1.10.22
1414
path: ^1.9.0
1515
args: ^2.5.0
1616

dart-api-examples/vad/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
sdk: ^3.4.0
1010

1111
dependencies:
12-
sherpa_onnx: ^1.10.21
12+
sherpa_onnx: ^1.10.22
1313
path: ^1.9.0
1414
args: ^2.5.0
1515

flutter-examples/streaming_asr/pubspec.yaml

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

8-
version: 1.10.21
8+
version: 1.10.22
99

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

33-
sherpa_onnx: ^1.10.21
33+
sherpa_onnx: ^1.10.22
3434
# sherpa_onnx:
3535
# path: ../../flutter/sherpa_onnx
3636

flutter-examples/tts/pubspec.yaml

+2-2
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.10.21
8+
version: 1.10.22
99

1010
environment:
1111
sdk: '>=3.4.0 <4.0.0'
@@ -17,7 +17,7 @@ dependencies:
1717
cupertino_icons: ^1.0.6
1818
path_provider: ^2.1.3
1919
path: ^1.9.0
20-
sherpa_onnx: ^1.10.21
20+
sherpa_onnx: ^1.10.22
2121
url_launcher: ^6.2.6
2222
audioplayers: ^5.0.0
2323

flutter/sherpa_onnx/pubspec.yaml

+6-6
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.10.21
20+
version: 1.10.22
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.10.21
33+
sherpa_onnx_android: ^1.10.22
3434
# sherpa_onnx_android:
3535
# path: ../sherpa_onnx_android
3636

37-
sherpa_onnx_macos: ^1.10.21
37+
sherpa_onnx_macos: ^1.10.22
3838
# sherpa_onnx_macos:
3939
# path: ../sherpa_onnx_macos
4040

41-
sherpa_onnx_linux: ^1.10.21
41+
sherpa_onnx_linux: ^1.10.22
4242
# sherpa_onnx_linux:
4343
# path: ../sherpa_onnx_linux
4444
#
45-
sherpa_onnx_windows: ^1.10.21
45+
sherpa_onnx_windows: ^1.10.22
4646
# sherpa_onnx_windows:
4747
# path: ../sherpa_onnx_windows
4848

49-
sherpa_onnx_ios: ^1.10.21
49+
sherpa_onnx_ios: ^1.10.22
5050
# sherpa_onnx_ios:
5151
# path: ../sherpa_onnx_ios
5252

flutter/sherpa_onnx_ios/ios/sherpa_onnx_ios.podspec

+1-1
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.10.21'
10+
s.version = '1.10.22'
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

+1-1
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.10.21'
7+
s.version = '1.10.22'
88
s.summary = 'sherpa-onnx Flutter FFI plugin project.'
99
s.description = <<-DESC
1010
sherpa-onnx Flutter FFI plugin project.

nodejs-addon-examples/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"sherpa-onnx-node": "^1.10.21"
3+
"sherpa-onnx-node": "^1.10.22"
44
}
55
}

sherpa-onnx/pascal-api/sherpa_onnx.pas

+31-33
Original file line numberDiff line numberDiff line change
@@ -316,44 +316,42 @@ implementation
316316
- https://downloads.freepascal.org/fpc/docs-pdf/CinFreePascal.pdf
317317
}
318318

319-
{$IFDEF WINDOWS}
319+
{$if defined(WINDOWS)}
320320
{ For windows, we always use dynamic link. See
321321
https://forum.lazarus.freepascal.org/index.php/topic,15712.msg84781.html#msg84781
322322
We need to rebuild the static lib for windows using Mingw or cygwin
323323
}
324324
SherpaOnnxLibName = 'sherpa-onnx-c-api.dll';
325-
{$ELSE}
326-
{$IFNDEF SHERPA_ONNX_USE_SHARED_LIBS}
327-
{static link for linux and macos}
328-
{$linklib sherpa-onnx-c-api}
329-
{$linklib sherpa-onnx-core}
330-
{$linklib kaldi-decoder-core}
331-
{$linklib sherpa-onnx-kaldifst-core}
332-
{$linklib sherpa-onnx-fstfar}
333-
{$linklib sherpa-onnx-fst}
334-
{$linklib kaldi-native-fbank-core}
335-
{$linklib piper_phonemize}
336-
{$linklib espeak-ng}
337-
{$linklib ucd}
338-
{$linklib onnxruntime}
339-
{$linklib ssentencepiece_core}
340-
341-
{$IFDEF LINUX}
342-
{$linklib m}
343-
{$LINKLIB stdc++}
344-
{$LINKLIB gcc_s}
345-
{$ENDIF}
346-
347-
{$IFDEF DARWIN}
348-
{$linklib c++}
349-
{$ENDIF}
350-
SherpaOnnxLibName = '';
351-
{$ELSE}
352-
{dynamic link for linux and macos}
353-
SherpaOnnxLibName = 'sherpa-onnx-c-api';
354-
{$linklib sherpa-onnx-c-api}
355-
{$ENDIF}
356-
{$ENDIF}
325+
{$elseif not defined(SHERPA_ONNX_USE_SHARED_LIBS)}
326+
{static link for linux and macos}
327+
{$linklib sherpa-onnx-c-api}
328+
{$linklib sherpa-onnx-core}
329+
{$linklib kaldi-decoder-core}
330+
{$linklib sherpa-onnx-kaldifst-core}
331+
{$linklib sherpa-onnx-fstfar}
332+
{$linklib sherpa-onnx-fst}
333+
{$linklib kaldi-native-fbank-core}
334+
{$linklib piper_phonemize}
335+
{$linklib espeak-ng}
336+
{$linklib ucd}
337+
{$linklib onnxruntime}
338+
{$linklib ssentencepiece_core}
339+
340+
{$ifdef LINUX}
341+
{$linklib m}
342+
{$LINKLIB stdc++}
343+
{$LINKLIB gcc_s}
344+
{$endif}
345+
346+
{$ifdef DARWIN}
347+
{$linklib c++}
348+
{$endif}
349+
SherpaOnnxLibName = '';
350+
{$else}
351+
{dynamic link for linux and macos}
352+
SherpaOnnxLibName = 'sherpa-onnx-c-api';
353+
{$linklib sherpa-onnx-c-api}
354+
{$endif}
357355

358356
type
359357
SherpaOnnxWave = record

0 commit comments

Comments
 (0)