Skip to content

Commit 1eb7982

Browse files
authored
Add C++ runtime for MeloTTS (k2-fsa#1138)
1 parent bcd6856 commit 1eb7982

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+693
-156
lines changed

.github/workflows/export-melo-tts-to-onnx.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,16 @@ jobs:
6363
echo "pwd: $PWD"
6464
ls -lh ../scripts/melo-tts
6565
66+
rm -rf ./
67+
6668
cp -v ../scripts/melo-tts/*.onnx .
6769
cp -v ../scripts/melo-tts/lexicon.txt .
6870
cp -v ../scripts/melo-tts/tokens.txt .
71+
cp -v ../scripts/melo-tts/README.md .
72+
73+
curl -SL -O https://raw.githubusercontent.com/myshell-ai/MeloTTS/main/LICENSE
6974
75+
curl -SL -O https://huggingface.co/csukuangfj/icefall-tts-aishell3-vits-low-2024-04-06/resolve/main/data/new_heteronym.fst
7076
curl -SL -O https://huggingface.co/csukuangfj/icefall-tts-aishell3-vits-low-2024-04-06/resolve/main/data/date.fst
7177
curl -SL -O https://huggingface.co/csukuangfj/icefall-tts-aishell3-vits-low-2024-04-06/resolve/main/data/number.fst
7278
curl -SL -O https://huggingface.co/csukuangfj/icefall-tts-aishell3-vits-low-2024-04-06/resolve/main/data/phone.fst
@@ -77,6 +83,10 @@ jobs:
7783
git lfs track "*.onnx"
7884
git add .
7985
86+
ls -lh
87+
88+
git status
89+
8090
git commit -m "add models"
8191
git push https://csukuangfj:[email protected]/csukuangfj/vits-melo-tts-zh_en main || true
8292

.github/workflows/windows-x64-jni.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,14 @@ jobs:
3939
cd build
4040
cmake \
4141
-A x64 \
42-
-D CMAKE_BUILD_TYPE=Release \
43-
-D BUILD_SHARED_LIBS=ON \
42+
-DBUILD_SHARED_LIBS=ON \
4443
-D SHERPA_ONNX_ENABLE_JNI=ON \
45-
-D CMAKE_INSTALL_PREFIX=./install \
44+
-DCMAKE_INSTALL_PREFIX=./install \
45+
-DCMAKE_BUILD_TYPE=Release \
46+
-DSHERPA_ONNX_ENABLE_WEBSOCKET=OFF \
47+
-DBUILD_ESPEAK_NG_EXE=OFF \
48+
-DSHERPA_ONNX_BUILD_C_API_EXAMPLES=OFF \
49+
-DSHERPA_ONNX_ENABLE_BINARY=ON \
4650
..
4751
4852
- name: Build sherpa-onnx for windows

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.10.16
2+
3+
* Support zh-en TTS model from MeloTTS.
4+
15
## 1.10.15
26

37
* Downgrade onnxruntime from v1.18.1 to v1.17.1

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
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.15")
14+
set(SHERPA_ONNX_VERSION "1.10.16")
1515

1616
# Disable warning about
1717
#

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

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.10.15
14+
sherpa_onnx: ^1.10.16
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.10.15
11+
sherpa_onnx: ^1.10.16
1212
path: ^1.9.0
1313
args: ^2.5.0
1414

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.4.0
1010

1111
dependencies:
12-
sherpa_onnx: ^1.10.15
12+
sherpa_onnx: ^1.10.16
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.10.14
8+
version: 1.10.16
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.15
33+
sherpa_onnx: ^1.10.16
3434
# sherpa_onnx:
3535
# path: ../../flutter/sherpa_onnx
3636

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.0.0
8+
version: 1.10.16
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.15
20+
sherpa_onnx: ^1.10.16
2121
url_launcher: ^6.2.6
2222
audioplayers: ^5.0.0
2323

0 commit comments

Comments
 (0)