Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Fangjun Kuang
2025-02-11 12:27:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2025-02-11 12:27:09 +0800
Commit
8b8ef1090b70785d47750190f493964b7b0ef471
8b8ef109
1 parent
f5bf8c8d
Fix CI (#1841)
显示空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
17 行增加
和
16 行删除
.github/workflows/export-matcha-fa-en.yaml
.github/workflows/export-peng-cheng-starling.yaml
scripts/apk/build-apk-tts-engine.sh.in
scripts/apk/generate-tts-apk-script.py
.github/workflows/export-matcha-fa-en.yaml
查看文件 @
8b8ef10
...
...
@@ -3,7 +3,7 @@ name: export-matcha-fa-en-to-onnx
on
:
push
:
branches
:
-
export-matcha-tts-fa-en
-
fix-ci
workflow_dispatch
:
...
...
@@ -12,7 +12,7 @@ concurrency:
cancel-in-progress
:
true
jobs
:
export-
kokoro
-to-onnx
:
export-
matcha-fa-en
-to-onnx
:
if
:
github.repository_owner == 'k2-fsa' || github.repository_owner == 'csukuangfj'
name
:
export matcha fa-en ${{ matrix.version }}
runs-on
:
${{ matrix.os }}
...
...
@@ -49,8 +49,8 @@ jobs:
rm espeak-ng-data.tar.bz2
src=scripts/matcha-tts/fa-en
dst1=matcha-tts-fa_en-male
dst2=matcha-tts-fa_en-female
dst1=matcha-tts-fa_en-musa # male
dst2=matcha-tts-fa_en-khadijah # female
mkdir $dst1 $dst2
...
...
@@ -72,7 +72,7 @@ jobs:
ls -lh $dst1.tar.bz2
ls -lh $dst2.tar.bz2
-
name
:
Publish to huggingface male
-
name
:
Publish to huggingface male
(musa)
env
:
HF_TOKEN
:
${{ secrets.HF_TOKEN }}
uses
:
nick-fields/retry@v3
...
...
@@ -88,7 +88,7 @@ jobs:
export GIT_LFS_SKIP_SMUDGE=1
export GIT_CLONE_PROTECTION_ACTIVE=false
git clone https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/matcha-tts-fa_en-m
ale
huggingface
git clone https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/matcha-tts-fa_en-m
usa
huggingface
cd huggingface
rm -rf ./*
git fetch
...
...
@@ -97,7 +97,7 @@ jobs:
git lfs track "cmn_dict"
git lfs track "ru_dict"
cp -a ../matcha-tts-fa_en-m
ale
/* ./
cp -a ../matcha-tts-fa_en-m
usa
/* ./
git lfs track "*.onnx"
git add .
...
...
@@ -107,9 +107,9 @@ jobs:
git status
git commit -m "add models"
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/matcha-tts-fa_en-m
ale
main || true
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/matcha-tts-fa_en-m
usa
main || true
-
name
:
Publish to huggingface
male
-
name
:
Publish to huggingface
female (khadijah)
env
:
HF_TOKEN
:
${{ secrets.HF_TOKEN }}
uses
:
nick-fields/retry@v3
...
...
@@ -125,7 +125,7 @@ jobs:
export GIT_LFS_SKIP_SMUDGE=1
export GIT_CLONE_PROTECTION_ACTIVE=false
git clone https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/matcha-tts-fa_en-
female
huggingface
git clone https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/matcha-tts-fa_en-
khadijah
huggingface
cd huggingface
rm -rf ./*
git fetch
...
...
@@ -134,7 +134,7 @@ jobs:
git lfs track "cmn_dict"
git lfs track "ru_dict"
cp -a ../matcha-tts-fa_en-
female
/* ./
cp -a ../matcha-tts-fa_en-
khadijah
/* ./
git lfs track "*.onnx"
git add .
...
...
@@ -144,7 +144,7 @@ jobs:
git status
git commit -m "add models"
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/matcha-tts-fa_en-
female
main || true
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/matcha-tts-fa_en-
khadijah
main || true
-
name
:
Release
if
:
github.repository_owner == 'csukuangfj'
...
...
.github/workflows/export-peng-cheng-starling.yaml
查看文件 @
8b8ef10
...
...
@@ -3,7 +3,7 @@ name: export-peng-cheng-starling-to-onnx
on
:
push
:
branches
:
-
export-peng-cheng-starling
-2
-
fix-ci
-2
workflow_dispatch
:
...
...
@@ -59,6 +59,7 @@ jobs:
mv -v $src/*.onnx $d
cp -v $src/README.md $d
cp -v $src/bpe.model $d
cp -v $src/tokens.txt $d
cp -av $src/test_wavs $d
ls -lh $d/
...
...
scripts/apk/build-apk-tts-engine.sh.in
查看文件 @
8b8ef10
...
...
@@ -63,7 +63,7 @@ sed -i.bak s/"lang = null"/"lang = \"$lang_iso_639_3\""/ ./TtsEngine.kt
sed -i.bak s/
"modelName = null"
/
"modelName =
\"
$model_name
\"
"
/ ./TtsEngine.kt
{%
endif %
}
{%
if
tts_model.model_name %
}
{%
if
tts_model.
acoustic_
model_name %
}
sed -i.bak s/
"acousticModelName = null"
/
"acousticModelName =
\"
$acoustic_model_name
\"
"
/ ./TtsEngine.kt
{%
endif %
}
...
...
scripts/apk/generate-tts-apk-script.py
查看文件 @
8b8ef10
...
...
@@ -404,12 +404,12 @@ def get_matcha_models() -> List[TtsModel]:
lang
=
"en"
,
),
TtsModel
(
model_dir
=
"matcha-tts-fa_en-m
ale
"
,
model_dir
=
"matcha-tts-fa_en-m
usa
"
,
acoustic_model_name
=
"model.onnx"
,
lang
=
"fa"
,
),
TtsModel
(
model_dir
=
"matcha-tts-fa_en-
female
"
,
model_dir
=
"matcha-tts-fa_en-
khadijah
"
,
acoustic_model_name
=
"model.onnx"
,
lang
=
"fa"
,
),
...
...
请
注册
或
登录
后发表评论