Release v1.10.46 (#1929)
This commit is contained in:
22
CHANGELOG.md
22
CHANGELOG.md
@@ -1,3 +1,25 @@
|
|||||||
|
## 1.10.46
|
||||||
|
|
||||||
|
# Fix kokoro lexicon. (#1886)
|
||||||
|
# speaker-identification-with-vad-non-streaming-asr.py Lack of support for sense_voice. (#1884)
|
||||||
|
# Fix generating Chinese lexicon for Kokoro TTS 1.0 (#1888)
|
||||||
|
# Reduce vad-whisper-c-api example code. (#1891)
|
||||||
|
# JNI Exception Handling (#1452)
|
||||||
|
# Fix #1901: UnicodeEncodeError running export_bpe_vocab.py (#1902)
|
||||||
|
# Fix publishing pre-built windows libraries (#1905)
|
||||||
|
# Fixing Whisper Model Token Normalization (#1904)
|
||||||
|
# feat: add mic example for better compatibility (#1909)
|
||||||
|
# Add onnxruntime 1.18.1 for Linux aarch64 GPU (#1914)
|
||||||
|
# Add C++ API for streaming zipformer ASR on RK NPU (#1908)
|
||||||
|
# change [1<<28] to [1<<10], to fix build issues on GOARCH=386 that [1<<28] too large (#1916)
|
||||||
|
# Flutter Config toJson/fromJson (#1893)
|
||||||
|
# Fix publishing linux pre-built artifacts (#1919)
|
||||||
|
# go.mod set to use go 1.17, and use unsafe.Slice to optimize the code (#1920)
|
||||||
|
# fix: AddPunct panic for Go(#1921)
|
||||||
|
# Fix publishing macos pre-built artifacts (#1922)
|
||||||
|
# Minor fixes for rknn (#1925)
|
||||||
|
# Build wheels for rknn linux aarch64 (#1928)
|
||||||
|
|
||||||
## 1.10.45
|
## 1.10.45
|
||||||
|
|
||||||
* [update] fixed bug: create golang instance succeed while the c struct create failed (#1860)
|
* [update] fixed bug: create golang instance succeed while the c struct create failed (#1860)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ project(sherpa-onnx)
|
|||||||
# Remember to update
|
# Remember to update
|
||||||
# ./CHANGELOG.md
|
# ./CHANGELOG.md
|
||||||
# ./new-release.sh
|
# ./new-release.sh
|
||||||
set(SHERPA_ONNX_VERSION "1.10.45")
|
set(SHERPA_ONNX_VERSION "1.10.46")
|
||||||
|
|
||||||
# Disable warning about
|
# Disable warning about
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
git clone https://github.com/k2-fsa/sherpa-onnx
|
git clone https://github.com/k2-fsa/sherpa-onnx
|
||||||
cd sherpa-onnx
|
cd sherpa-onnx
|
||||||
|
|
||||||
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.45/sherpa-onnx-v1.10.45-android.tar.bz2
|
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.46/sherpa-onnx-v1.10.46-android.tar.bz2
|
||||||
tar xvf sherpa-onnx-v1.10.45-android.tar.bz2
|
tar xvf sherpa-onnx-v1.10.46-android.tar.bz2
|
||||||
|
|
||||||
cp -v jniLibs/arm64-v8a/* android/SherpaOnnxAar/sherpa_onnx/src/main/jniLibs/arm64-v8a/
|
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/
|
cp -v jniLibs/armeabi-v7a/* android/SherpaOnnxAar/sherpa_onnx/src/main/jniLibs/armeabi-v7a/
|
||||||
@@ -16,5 +16,5 @@ cd android/SherpaOnnxAar
|
|||||||
|
|
||||||
./gradlew :sherpa_onnx:assembleRelease
|
./gradlew :sherpa_onnx:assembleRelease
|
||||||
ls -lh ./sherpa_onnx/build/outputs/aar/sherpa_onnx-release.aar
|
ls -lh ./sherpa_onnx/build/outputs/aar/sherpa_onnx-release.aar
|
||||||
cp ./sherpa_onnx/build/outputs/aar/sherpa_onnx-release.aar ../../sherpa-onnx-1.10.45.aar
|
cp ./sherpa_onnx/build/outputs/aar/sherpa_onnx-release.aar ../../sherpa-onnx-1.10.46.aar
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -34,5 +34,5 @@ dependencies {
|
|||||||
implementation 'pub.devrel:easypermissions:3.0.0'
|
implementation 'pub.devrel:easypermissions:3.0.0'
|
||||||
implementation 'androidx.core:core-ktx:1.7.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 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.10.45'
|
implementation 'com.github.k2-fsa:sherpa-onnx:v1.10.46'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -242,7 +242,7 @@ for d in ios-arm64_x86_64-simulator ios-arm64; do
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>FMWK</string>
|
<string>FMWK</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.10.45</string>
|
<string>1.10.46</string>
|
||||||
<key>CFBundleSupportedPlatforms</key>
|
<key>CFBundleSupportedPlatforms</key>
|
||||||
<array>
|
<array>
|
||||||
<string>iPhoneOS</string>
|
<string>iPhoneOS</string>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ environment:
|
|||||||
sdk: ">=3.0.0 <4.0.0"
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
sherpa_onnx: ^1.10.45
|
sherpa_onnx: ^1.10.46
|
||||||
path: ^1.9.0
|
path: ^1.9.0
|
||||||
args: ^2.5.0
|
args: ^2.5.0
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ environment:
|
|||||||
sdk: ">=3.0.0 <4.0.0"
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
sherpa_onnx: ^1.10.45
|
sherpa_onnx: ^1.10.46
|
||||||
path: ^1.9.0
|
path: ^1.9.0
|
||||||
args: ^2.5.0
|
args: ^2.5.0
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ environment:
|
|||||||
sdk: ">=3.0.0 <4.0.0"
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
sherpa_onnx: ^1.10.45
|
sherpa_onnx: ^1.10.46
|
||||||
# sherpa_onnx:
|
# sherpa_onnx:
|
||||||
# path: ../../flutter/sherpa_onnx
|
# path: ../../flutter/sherpa_onnx
|
||||||
path: ^1.9.0
|
path: ^1.9.0
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ environment:
|
|||||||
|
|
||||||
# Add regular dependencies here.
|
# Add regular dependencies here.
|
||||||
dependencies:
|
dependencies:
|
||||||
sherpa_onnx: ^1.10.45
|
sherpa_onnx: ^1.10.46
|
||||||
path: ^1.9.0
|
path: ^1.9.0
|
||||||
args: ^2.5.0
|
args: ^2.5.0
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ environment:
|
|||||||
sdk: ">=3.0.0 <4.0.0"
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
sherpa_onnx: ^1.10.45
|
sherpa_onnx: ^1.10.46
|
||||||
# sherpa_onnx:
|
# sherpa_onnx:
|
||||||
# path: ../../flutter/sherpa_onnx
|
# path: ../../flutter/sherpa_onnx
|
||||||
path: ^1.9.0
|
path: ^1.9.0
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ environment:
|
|||||||
sdk: ">=3.0.0 <4.0.0"
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
sherpa_onnx: ^1.10.45
|
sherpa_onnx: ^1.10.46
|
||||||
path: ^1.9.0
|
path: ^1.9.0
|
||||||
args: ^2.5.0
|
args: ^2.5.0
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ environment:
|
|||||||
|
|
||||||
# Add regular dependencies here.
|
# Add regular dependencies here.
|
||||||
dependencies:
|
dependencies:
|
||||||
sherpa_onnx: ^1.10.45
|
sherpa_onnx: ^1.10.46
|
||||||
path: ^1.9.0
|
path: ^1.9.0
|
||||||
args: ^2.5.0
|
args: ^2.5.0
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ environment:
|
|||||||
|
|
||||||
# Add regular dependencies here.
|
# Add regular dependencies here.
|
||||||
dependencies:
|
dependencies:
|
||||||
sherpa_onnx: ^1.10.45
|
sherpa_onnx: ^1.10.46
|
||||||
path: ^1.9.0
|
path: ^1.9.0
|
||||||
args: ^2.5.0
|
args: ^2.5.0
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ environment:
|
|||||||
sdk: ">=3.0.0 <4.0.0"
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
sherpa_onnx: ^1.10.45
|
sherpa_onnx: ^1.10.46
|
||||||
path: ^1.9.0
|
path: ^1.9.0
|
||||||
args: ^2.5.0
|
args: ^2.5.0
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ environment:
|
|||||||
sdk: ">=3.0.0 <4.0.0"
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
sherpa_onnx: ^1.10.45
|
sherpa_onnx: ^1.10.46
|
||||||
path: ^1.9.0
|
path: ^1.9.0
|
||||||
args: ^2.5.0
|
args: ^2.5.0
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ description: >
|
|||||||
|
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 1.10.45
|
version: 1.10.46
|
||||||
|
|
||||||
topics:
|
topics:
|
||||||
- speech-recognition
|
- speech-recognition
|
||||||
@@ -31,7 +31,7 @@ dependencies:
|
|||||||
record: ^5.1.0
|
record: ^5.1.0
|
||||||
url_launcher: ^6.2.6
|
url_launcher: ^6.2.6
|
||||||
|
|
||||||
sherpa_onnx: ^1.10.45
|
sherpa_onnx: ^1.10.46
|
||||||
# sherpa_onnx:
|
# sherpa_onnx:
|
||||||
# path: ../../flutter/sherpa_onnx
|
# path: ../../flutter/sherpa_onnx
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ description: >
|
|||||||
|
|
||||||
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||||
|
|
||||||
version: 1.10.45
|
version: 1.10.46
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.17.0 <4.0.0"
|
sdk: ">=2.17.0 <4.0.0"
|
||||||
@@ -18,7 +18,7 @@ dependencies:
|
|||||||
cupertino_icons: ^1.0.6
|
cupertino_icons: ^1.0.6
|
||||||
path_provider: ^2.1.3
|
path_provider: ^2.1.3
|
||||||
path: ^1.9.0
|
path: ^1.9.0
|
||||||
sherpa_onnx: ^1.10.45
|
sherpa_onnx: ^1.10.46
|
||||||
# sherpa_onnx:
|
# sherpa_onnx:
|
||||||
# path: ../../flutter/sherpa_onnx
|
# path: ../../flutter/sherpa_onnx
|
||||||
url_launcher: 6.2.6
|
url_launcher: 6.2.6
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ topics:
|
|||||||
- voice-activity-detection
|
- voice-activity-detection
|
||||||
|
|
||||||
# remember to change the version in ../sherpa_onnx_macos/macos/sherpa_onnx_macos.podspec
|
# remember to change the version in ../sherpa_onnx_macos/macos/sherpa_onnx_macos.podspec
|
||||||
version: 1.10.45
|
version: 1.10.46
|
||||||
|
|
||||||
homepage: https://github.com/k2-fsa/sherpa-onnx
|
homepage: https://github.com/k2-fsa/sherpa-onnx
|
||||||
|
|
||||||
@@ -30,23 +30,23 @@ dependencies:
|
|||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|
||||||
sherpa_onnx_android: ^1.10.45
|
sherpa_onnx_android: ^1.10.46
|
||||||
# sherpa_onnx_android:
|
# sherpa_onnx_android:
|
||||||
# path: ../sherpa_onnx_android
|
# path: ../sherpa_onnx_android
|
||||||
|
|
||||||
sherpa_onnx_macos: ^1.10.45
|
sherpa_onnx_macos: ^1.10.46
|
||||||
# sherpa_onnx_macos:
|
# sherpa_onnx_macos:
|
||||||
# path: ../sherpa_onnx_macos
|
# path: ../sherpa_onnx_macos
|
||||||
|
|
||||||
sherpa_onnx_linux: ^1.10.45
|
sherpa_onnx_linux: ^1.10.46
|
||||||
# sherpa_onnx_linux:
|
# sherpa_onnx_linux:
|
||||||
# path: ../sherpa_onnx_linux
|
# path: ../sherpa_onnx_linux
|
||||||
|
|
||||||
sherpa_onnx_windows: ^1.10.45
|
sherpa_onnx_windows: ^1.10.46
|
||||||
# sherpa_onnx_windows:
|
# sherpa_onnx_windows:
|
||||||
# path: ../sherpa_onnx_windows
|
# path: ../sherpa_onnx_windows
|
||||||
|
|
||||||
sherpa_onnx_ios: ^1.10.45
|
sherpa_onnx_ios: ^1.10.46
|
||||||
# sherpa_onnx_ios:
|
# sherpa_onnx_ios:
|
||||||
# path: ../sherpa_onnx_ios
|
# path: ../sherpa_onnx_ios
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
# https://groups.google.com/g/dart-ffi/c/nUATMBy7r0c
|
# https://groups.google.com/g/dart-ffi/c/nUATMBy7r0c
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'sherpa_onnx_ios'
|
s.name = 'sherpa_onnx_ios'
|
||||||
s.version = '1.10.45'
|
s.version = '1.10.46'
|
||||||
s.summary = 'A new Flutter FFI plugin project.'
|
s.summary = 'A new Flutter FFI plugin project.'
|
||||||
s.description = <<-DESC
|
s.description = <<-DESC
|
||||||
A new Flutter FFI plugin project.
|
A new Flutter FFI plugin project.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'sherpa_onnx_macos'
|
s.name = 'sherpa_onnx_macos'
|
||||||
s.version = '1.10.45'
|
s.version = '1.10.46'
|
||||||
s.summary = 'sherpa-onnx Flutter FFI plugin project.'
|
s.summary = 'sherpa-onnx Flutter FFI plugin project.'
|
||||||
s.description = <<-DESC
|
s.description = <<-DESC
|
||||||
sherpa-onnx Flutter FFI plugin project.
|
sherpa-onnx Flutter FFI plugin project.
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ or update your `oh-package.json5` to include the following:
|
|||||||
|
|
||||||
```
|
```
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"sherpa_onnx": "1.10.45",
|
"sherpa_onnx": "1.10.46",
|
||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sherpa_onnx",
|
"name": "sherpa_onnx",
|
||||||
"version": "1.10.45",
|
"version": "1.10.46",
|
||||||
"description": "On-device speech-to-text, text-to-speech, and speaker diarization using Next-gen Kaldi without Internet connection",
|
"description": "On-device speech-to-text, text-to-speech, and speaker diarization using Next-gen Kaldi without Internet connection",
|
||||||
"main": "Index.ets",
|
"main": "Index.ets",
|
||||||
"author": "The next-gen Kaldi team",
|
"author": "The next-gen Kaldi team",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "",
|
"license": "",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"sherpa_onnx": "1.10.45"
|
"sherpa_onnx": "1.10.46"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "",
|
"license": "",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"sherpa_onnx": "1.10.45",
|
"sherpa_onnx": "1.10.46",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "",
|
"license": "",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"sherpa_onnx": "1.10.45",
|
"sherpa_onnx": "1.10.46",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "",
|
"license": "",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"sherpa_onnx": "1.10.45",
|
"sherpa_onnx": "1.10.46",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Introduction
|
# Introduction
|
||||||
|
|
||||||
Please download ./sherpa_onnx-v1.10.45.har
|
Please download ./sherpa_onnx-v1.10.46.har
|
||||||
from <https://huggingface.co/csukuangfj/sherpa-onnx-harmony-os/tree/main/har>
|
from <https://huggingface.co/csukuangfj/sherpa-onnx-harmony-os/tree/main/har>
|
||||||
|
|
||||||
Hint: For users who have no access to huggingface, please use
|
Hint: For users who have no access to huggingface, please use
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"license": "",
|
"license": "",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
// please see https://ohpm.openharmony.cn/#/cn/detail/sherpa_onnx
|
// please see https://ohpm.openharmony.cn/#/cn/detail/sherpa_onnx
|
||||||
"sherpa_onnx": "1.10.45",
|
"sherpa_onnx": "1.10.46",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ jdk:
|
|||||||
- openjdk17
|
- openjdk17
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- wget https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.45/sherpa-onnx-1.10.45.aar
|
- wget https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.46/sherpa-onnx-1.10.46.aar
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- FILE="-Dfile=sherpa-onnx-1.10.45.aar"
|
- FILE="-Dfile=sherpa-onnx-1.10.46.aar"
|
||||||
- mvn install:install-file $FILE -DgroupId=com.k2fsa.sherpa.onnx -DartifactId=sherpa-onnx -Dversion=1.10.45 -Dpackaging=aar -DgeneratePom=true
|
- mvn install:install-file $FILE -DgroupId=com.k2fsa.sherpa.onnx -DartifactId=sherpa-onnx -Dversion=1.10.46 -Dpackaging=aar -DgeneratePom=true
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ for speech recognition.
|
|||||||
|
|
||||||
|Directory| Pre-built exe (x64)|Pre-built exe (x86)| Description|
|
|Directory| Pre-built exe (x64)|Pre-built exe (x86)| Description|
|
||||||
|---------|--------------------|-------------------|------------|
|
|---------|--------------------|-------------------|------------|
|
||||||
|[./NonStreamingSpeechRecognition](./NonStreamingSpeechRecognition)|[URL](https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.45/sherpa-onnx-non-streaming-asr-x64-v1.10.45.exe)|[URL](https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.45/sherpa-onnx-non-streaming-asr-x86-v1.10.45.exe)| Non-streaming speech recognition|
|
|[./NonStreamingSpeechRecognition](./NonStreamingSpeechRecognition)|[URL](https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.46/sherpa-onnx-non-streaming-asr-x64-v1.10.46.exe)|[URL](https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.46/sherpa-onnx-non-streaming-asr-x86-v1.10.46.exe)| Non-streaming speech recognition|
|
||||||
|[./StreamingSpeechRecognition](./StreamingSpeechRecognition)|[URL](https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.45/sherpa-onnx-streaming-asr-x64-v1.10.45.exe)|[URL](https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.45/sherpa-onnx-streaming-asr-x86-v1.10.45.exe)| Streaming speech recognition|
|
|[./StreamingSpeechRecognition](./StreamingSpeechRecognition)|[URL](https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.46/sherpa-onnx-streaming-asr-x64-v1.10.46.exe)|[URL](https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.46/sherpa-onnx-streaming-asr-x86-v1.10.46.exe)| Streaming speech recognition|
|
||||||
|[./NonStreamingTextToSpeech](./NonStreamingTextToSpeech)|[URL](https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.45/sherpa-onnx-non-streaming-tts-x64-v1.10.45.exe)|[URL](https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.45/sherpa-onnx-non-streaming-tts-x86-v1.10.45.exe)| Non-streaming text to speech|
|
|[./NonStreamingTextToSpeech](./NonStreamingTextToSpeech)|[URL](https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.46/sherpa-onnx-non-streaming-tts-x64-v1.10.46.exe)|[URL](https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.10.46/sherpa-onnx-non-streaming-tts-x86-v1.10.46.exe)| Non-streaming text to speech|
|
||||||
|
|
||||||
Caution: You need to use Windows and install Visual Studio 2022 in order to
|
Caution: You need to use Windows and install Visual Studio 2022 in order to
|
||||||
compile it.
|
compile it.
|
||||||
|
|||||||
@@ -2,23 +2,23 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
sed -i.bak 's/1\.10\.44/1\.10\.45/g' ./build-ios-shared.sh
|
sed -i.bak 's/1\.10\.45/1\.10\.46/g' ./build-ios-shared.sh
|
||||||
sed -i.bak 's/1\.10\.44/1\.10\.45/g' ./pom.xml
|
sed -i.bak 's/1\.10\.45/1\.10\.46/g' ./pom.xml
|
||||||
sed -i.bak 's/1\.10\.44/1\.10\.45/g' ./jitpack.yml
|
sed -i.bak 's/1\.10\.45/1\.10\.46/g' ./jitpack.yml
|
||||||
sed -i.bak 's/1\.10\.44/1\.10\.45/g' ./android/SherpaOnnxAar/README.md
|
sed -i.bak 's/1\.10\.45/1\.10\.46/g' ./android/SherpaOnnxAar/README.md
|
||||||
|
|
||||||
find android -name build.gradle -type f -exec sed -i.bak 's/sherpa-onnx:v1\.10\.44/sherpa-onnx:v1\.10\.45/g' {} \;
|
find android -name build.gradle -type f -exec sed -i.bak 's/sherpa-onnx:v1\.10\.45/sherpa-onnx:v1\.10\.46/g' {} \;
|
||||||
|
|
||||||
find flutter -name *.yaml -type f -exec sed -i.bak 's/1\.10\.44/1\.10\.45/g' {} \;
|
find flutter -name *.yaml -type f -exec sed -i.bak 's/1\.10\.45/1\.10\.46/g' {} \;
|
||||||
find dart-api-examples -name *.yaml -type f -exec sed -i.bak 's/1\.10\.44/1\.10\.45/g' {} \;
|
find dart-api-examples -name *.yaml -type f -exec sed -i.bak 's/1\.10\.45/1\.10\.46/g' {} \;
|
||||||
find flutter-examples -name *.yaml -type f -exec sed -i.bak 's/1\.10\.44/1\.10\.45/g' {} \;
|
find flutter-examples -name *.yaml -type f -exec sed -i.bak 's/1\.10\.45/1\.10\.46/g' {} \;
|
||||||
find flutter -name *.podspec -type f -exec sed -i.bak 's/1\.10\.44/1\.10\.45/g' {} \;
|
find flutter -name *.podspec -type f -exec sed -i.bak 's/1\.10\.45/1\.10\.46/g' {} \;
|
||||||
find nodejs-addon-examples -name package.json -type f -exec sed -i.bak 's/1\.10\.44/1\.10\.45/g' {} \;
|
find nodejs-addon-examples -name package.json -type f -exec sed -i.bak 's/1\.10\.45/1\.10\.46/g' {} \;
|
||||||
find nodejs-examples -name package.json -type f -exec sed -i.bak 's/1\.10\.44/1\.10\.45/g' {} \;
|
find nodejs-examples -name package.json -type f -exec sed -i.bak 's/1\.10\.45/1\.10\.46/g' {} \;
|
||||||
|
|
||||||
find harmony-os -name "README.md" -type f -exec sed -i.bak 's/1\.10\.44/1\.10\.45/g' {} \;
|
find harmony-os -name "README.md" -type f -exec sed -i.bak 's/1\.10\.45/1\.10\.46/g' {} \;
|
||||||
find harmony-os -name oh-package.json5 -type f -exec sed -i.bak 's/1\.10\.44/1\.10\.45/g' {} \;
|
find harmony-os -name oh-package.json5 -type f -exec sed -i.bak 's/1\.10\.45/1\.10\.46/g' {} \;
|
||||||
|
|
||||||
find mfc-examples -name "README.md" -type f -exec sed -i.bak 's/1\.10\.44/1\.10\.45/g' {} \;
|
find mfc-examples -name "README.md" -type f -exec sed -i.bak 's/1\.10\.45/1\.10\.46/g' {} \;
|
||||||
|
|
||||||
find . -name "*.bak" -exec rm {} \;
|
find . -name "*.bak" -exec rm {} \;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"sherpa-onnx-node": "^1.10.45"
|
"sherpa-onnx-node": "^1.10.46"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mic": "^2.1.2",
|
"mic": "^2.1.2",
|
||||||
"naudiodon2": "^2.4.0",
|
"naudiodon2": "^2.4.0",
|
||||||
"sherpa-onnx": "^1.10.45",
|
"sherpa-onnx": "^1.10.46",
|
||||||
"wav": "^1.0.2"
|
"wav": "^1.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.k2fsa.sherpa.onnx</groupId>
|
<groupId>com.k2fsa.sherpa.onnx</groupId>
|
||||||
<artifactId>sherpa-onnx-android</artifactId>
|
<artifactId>sherpa-onnx-android</artifactId>
|
||||||
<version>1.10.45</version>
|
<version>1.10.46</version>
|
||||||
<url>https://github.com/k2-fsa/sherpa-onnx</url>
|
<url>https://github.com/k2-fsa/sherpa-onnx</url>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<description>First Android Library</description>
|
<description>First Android Library</description>
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
#include "android/asset_manager_jni.h"
|
#include "android/asset_manager_jni.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "sherpa-onnx/csrc/file-utils.h"
|
||||||
#include "sherpa-onnx/csrc/macros.h"
|
#include "sherpa-onnx/csrc/macros.h"
|
||||||
#include "sherpa-onnx/csrc/onnx-utils.h"
|
|
||||||
#include "sherpa-onnx/csrc/text-utils.h"
|
#include "sherpa-onnx/csrc/text-utils.h"
|
||||||
|
|
||||||
namespace sherpa_onnx {
|
namespace sherpa_onnx {
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "sherpa-onnx/csrc/macros.h"
|
#include "sherpa-onnx/csrc/macros.h"
|
||||||
|
|||||||
@@ -22,8 +22,8 @@
|
|||||||
#include "rawfile/raw_file_manager.h"
|
#include "rawfile/raw_file_manager.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "sherpa-onnx/csrc/file-utils.h"
|
||||||
#include "sherpa-onnx/csrc/macros.h"
|
#include "sherpa-onnx/csrc/macros.h"
|
||||||
#include "sherpa-onnx/csrc/onnx-utils.h"
|
|
||||||
#include "sherpa-onnx/csrc/symbol-table.h"
|
#include "sherpa-onnx/csrc/symbol-table.h"
|
||||||
#include "sherpa-onnx/csrc/text-utils.h"
|
#include "sherpa-onnx/csrc/text-utils.h"
|
||||||
|
|
||||||
|
|||||||
@@ -20,9 +20,9 @@
|
|||||||
#include "rawfile/raw_file_manager.h"
|
#include "rawfile/raw_file_manager.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "sherpa-onnx/csrc/file-utils.h"
|
||||||
#include "sherpa-onnx/csrc/macros.h"
|
#include "sherpa-onnx/csrc/macros.h"
|
||||||
#include "sherpa-onnx/csrc/offline-tts-character-frontend.h"
|
#include "sherpa-onnx/csrc/offline-tts-character-frontend.h"
|
||||||
#include "sherpa-onnx/csrc/onnx-utils.h"
|
|
||||||
|
|
||||||
namespace sherpa_onnx {
|
namespace sherpa_onnx {
|
||||||
|
|
||||||
|
|||||||
@@ -15,13 +15,13 @@
|
|||||||
#include "fst/extensions/far/far.h"
|
#include "fst/extensions/far/far.h"
|
||||||
#include "kaldifst/csrc/kaldi-fst-io.h"
|
#include "kaldifst/csrc/kaldi-fst-io.h"
|
||||||
#include "kaldifst/csrc/text-normalizer.h"
|
#include "kaldifst/csrc/text-normalizer.h"
|
||||||
|
#include "sherpa-onnx/csrc/file-utils.h"
|
||||||
#include "sherpa-onnx/csrc/kokoro-multi-lang-lexicon.h"
|
#include "sherpa-onnx/csrc/kokoro-multi-lang-lexicon.h"
|
||||||
#include "sherpa-onnx/csrc/lexicon.h"
|
#include "sherpa-onnx/csrc/lexicon.h"
|
||||||
#include "sherpa-onnx/csrc/macros.h"
|
#include "sherpa-onnx/csrc/macros.h"
|
||||||
#include "sherpa-onnx/csrc/offline-tts-frontend.h"
|
#include "sherpa-onnx/csrc/offline-tts-frontend.h"
|
||||||
#include "sherpa-onnx/csrc/offline-tts-impl.h"
|
#include "sherpa-onnx/csrc/offline-tts-impl.h"
|
||||||
#include "sherpa-onnx/csrc/offline-tts-kokoro-model.h"
|
#include "sherpa-onnx/csrc/offline-tts-kokoro-model.h"
|
||||||
#include "sherpa-onnx/csrc/onnx-utils.h"
|
|
||||||
#include "sherpa-onnx/csrc/piper-phonemize-lexicon.h"
|
#include "sherpa-onnx/csrc/piper-phonemize-lexicon.h"
|
||||||
#include "sherpa-onnx/csrc/text-utils.h"
|
#include "sherpa-onnx/csrc/text-utils.h"
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
#include "fst/extensions/far/far.h"
|
#include "fst/extensions/far/far.h"
|
||||||
#include "kaldifst/csrc/kaldi-fst-io.h"
|
#include "kaldifst/csrc/kaldi-fst-io.h"
|
||||||
#include "kaldifst/csrc/text-normalizer.h"
|
#include "kaldifst/csrc/text-normalizer.h"
|
||||||
|
#include "sherpa-onnx/csrc/file-utils.h"
|
||||||
#include "sherpa-onnx/csrc/jieba-lexicon.h"
|
#include "sherpa-onnx/csrc/jieba-lexicon.h"
|
||||||
#include "sherpa-onnx/csrc/lexicon.h"
|
#include "sherpa-onnx/csrc/lexicon.h"
|
||||||
#include "sherpa-onnx/csrc/macros.h"
|
#include "sherpa-onnx/csrc/macros.h"
|
||||||
@@ -21,7 +22,6 @@
|
|||||||
#include "sherpa-onnx/csrc/offline-tts-frontend.h"
|
#include "sherpa-onnx/csrc/offline-tts-frontend.h"
|
||||||
#include "sherpa-onnx/csrc/offline-tts-impl.h"
|
#include "sherpa-onnx/csrc/offline-tts-impl.h"
|
||||||
#include "sherpa-onnx/csrc/offline-tts-vits-model.h"
|
#include "sherpa-onnx/csrc/offline-tts-vits-model.h"
|
||||||
#include "sherpa-onnx/csrc/onnx-utils.h"
|
|
||||||
#include "sherpa-onnx/csrc/piper-phonemize-lexicon.h"
|
#include "sherpa-onnx/csrc/piper-phonemize-lexicon.h"
|
||||||
#include "sherpa-onnx/csrc/text-utils.h"
|
#include "sherpa-onnx/csrc/text-utils.h"
|
||||||
|
|
||||||
|
|||||||
@@ -20,13 +20,13 @@
|
|||||||
|
|
||||||
#include <chrono> // NOLINT
|
#include <chrono> // NOLINT
|
||||||
|
|
||||||
|
#include "sherpa-onnx/csrc/file-utils.h"
|
||||||
#include "sherpa-onnx/csrc/macros.h"
|
#include "sherpa-onnx/csrc/macros.h"
|
||||||
#include "sherpa-onnx/csrc/math.h"
|
#include "sherpa-onnx/csrc/math.h"
|
||||||
#include "sherpa-onnx/csrc/online-cnn-bilstm-model-meta-data.h"
|
#include "sherpa-onnx/csrc/online-cnn-bilstm-model-meta-data.h"
|
||||||
#include "sherpa-onnx/csrc/online-cnn-bilstm-model.h"
|
#include "sherpa-onnx/csrc/online-cnn-bilstm-model.h"
|
||||||
#include "sherpa-onnx/csrc/online-punctuation-impl.h"
|
#include "sherpa-onnx/csrc/online-punctuation-impl.h"
|
||||||
#include "sherpa-onnx/csrc/online-punctuation.h"
|
#include "sherpa-onnx/csrc/online-punctuation.h"
|
||||||
#include "sherpa-onnx/csrc/onnx-utils.h"
|
|
||||||
#include "sherpa-onnx/csrc/text-utils.h"
|
#include "sherpa-onnx/csrc/text-utils.h"
|
||||||
#include "ssentencepiece/csrc/ssentencepiece.h"
|
#include "ssentencepiece/csrc/ssentencepiece.h"
|
||||||
|
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
#include "espeak-ng/speak_lib.h"
|
#include "espeak-ng/speak_lib.h"
|
||||||
#include "phoneme_ids.hpp"
|
#include "phoneme_ids.hpp"
|
||||||
#include "phonemize.hpp"
|
#include "phonemize.hpp"
|
||||||
|
#include "sherpa-onnx/csrc/file-utils.h"
|
||||||
#include "sherpa-onnx/csrc/macros.h"
|
#include "sherpa-onnx/csrc/macros.h"
|
||||||
#include "sherpa-onnx/csrc/onnx-utils.h"
|
|
||||||
|
|
||||||
namespace sherpa_onnx {
|
namespace sherpa_onnx {
|
||||||
|
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
|
|
||||||
#include "sherpa-onnx/csrc/base64-decode.h"
|
#include "sherpa-onnx/csrc/base64-decode.h"
|
||||||
#include "sherpa-onnx/csrc/bbpe.h"
|
#include "sherpa-onnx/csrc/bbpe.h"
|
||||||
|
#include "sherpa-onnx/csrc/file-utils.h"
|
||||||
#include "sherpa-onnx/csrc/lexicon.h"
|
#include "sherpa-onnx/csrc/lexicon.h"
|
||||||
#include "sherpa-onnx/csrc/onnx-utils.h"
|
|
||||||
#include "sherpa-onnx/csrc/text-utils.h"
|
#include "sherpa-onnx/csrc/text-utils.h"
|
||||||
|
|
||||||
namespace sherpa_onnx {
|
namespace sherpa_onnx {
|
||||||
|
|||||||
@@ -220,17 +220,20 @@ JNIEXPORT jlong JNICALL Java_com_k2fsa_sherpa_onnx_OfflineTts_newFromAsset(
|
|||||||
SHERPA_ONNX_EXTERN_C
|
SHERPA_ONNX_EXTERN_C
|
||||||
JNIEXPORT jlong JNICALL Java_com_k2fsa_sherpa_onnx_OfflineTts_newFromFile(
|
JNIEXPORT jlong JNICALL Java_com_k2fsa_sherpa_onnx_OfflineTts_newFromFile(
|
||||||
JNIEnv *env, jobject /*obj*/, jobject _config) {
|
JNIEnv *env, jobject /*obj*/, jobject _config) {
|
||||||
return SafeJNI(env, "OfflineTts_newFromFile", [&] -> jlong {
|
return SafeJNI(
|
||||||
auto config = sherpa_onnx::GetOfflineTtsConfig(env, _config);
|
env, "OfflineTts_newFromFile",
|
||||||
SHERPA_ONNX_LOGE("config:\n%s", config.ToString().c_str());
|
[&]() -> jlong {
|
||||||
|
auto config = sherpa_onnx::GetOfflineTtsConfig(env, _config);
|
||||||
|
SHERPA_ONNX_LOGE("config:\n%s", config.ToString().c_str());
|
||||||
|
|
||||||
if (!config.Validate()) {
|
if (!config.Validate()) {
|
||||||
SHERPA_ONNX_LOGE("Errors found in config!");
|
SHERPA_ONNX_LOGE("Errors found in config!");
|
||||||
}
|
}
|
||||||
|
|
||||||
auto tts = new sherpa_onnx::OfflineTts(config);
|
auto tts = new sherpa_onnx::OfflineTts(config);
|
||||||
return reinterpret_cast<jlong>(tts);
|
return reinterpret_cast<jlong>(tts);
|
||||||
}, 0L);
|
},
|
||||||
|
0L);
|
||||||
}
|
}
|
||||||
|
|
||||||
SHERPA_ONNX_EXTERN_C
|
SHERPA_ONNX_EXTERN_C
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
|
#include "sherpa-onnx/csrc/file-utils.h"
|
||||||
#include "sherpa-onnx/csrc/macros.h"
|
#include "sherpa-onnx/csrc/macros.h"
|
||||||
#include "sherpa-onnx/csrc/onnx-utils.h"
|
|
||||||
#include "sherpa-onnx/jni/common.h"
|
#include "sherpa-onnx/jni/common.h"
|
||||||
|
|
||||||
static jobjectArray ReadWaveImpl(JNIEnv *env, std::istream &is,
|
static jobjectArray ReadWaveImpl(JNIEnv *env, std::istream &is,
|
||||||
|
|||||||
Reference in New Issue
Block a user