-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da2436c
commit 791c313
Showing
13 changed files
with
644 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
set -eo pipefail | ||
|
||
this_dir="$( cd "$( dirname "$0" )" && pwd )" | ||
repo_dir="$(realpath "${this_dir}/../../../../")" | ||
|
||
venv="${repo_dir}/src/python/.venv" | ||
if [ -d "${venv}" ]; then | ||
source "${venv}/bin/activate" | ||
fi | ||
|
||
checkpoint="$(find ./ -name '*.ckpt' -type f -printf '%T+ %p\n' | sort -r | head -n1 | cut -d' ' -f2-)" | ||
sample_rate="$(jq -r '.audio.sample_rate' < "${this_dir}/config.json")" | ||
language="$(jq -r '.espeak.voice' < "${this_dir}/config.json")" | ||
num_speakers="$(jq -r '.num_speakers' < "${this_dir}/config.json")" | ||
|
||
export PYTHONPATH="${repo_dir}/src/python:${PYTHONPATH}" | ||
|
||
if [[ "${num_speakers}" == "1" ]]; then | ||
cat "${this_dir}/test_${language}.jsonl" | \ | ||
python3 -m piper_train.infer \ | ||
--sample-rate "${sample_rate}" \ | ||
--checkpoint "${checkpoint}" \ | ||
--output-dir "${this_dir}/output"; | ||
else | ||
for speaker_id in $(seq 0 "$((${num_speakers} - 1))"); do | ||
cat "${this_dir}/test_${language}.jsonl" | \ | ||
jq --compact-output ". += { \"speaker_id\": ${speaker_id} }" | \ | ||
python3 -m piper_train.infer \ | ||
--sample-rate "${sample_rate}" \ | ||
--checkpoint "${checkpoint}" \ | ||
--output-dir "${this_dir}/output/${speaker_id}"; | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
彩虹,又稱天弓、天虹、絳等,簡稱虹,是氣象中的一種光學現象,當太陽 光照射到半空中的水滴,光線被折射及反射,在天空上形成拱形的七彩光譜,由外 圈至内圈呈紅、橙、黃、綠、蓝、靛蓝、堇紫七种颜色(霓虹則相反)。事實 上彩虹有无数種顏色,比如,在紅色和橙色之間還有許多種細微差別的顏色,根據 不同的文化背景被解讀爲3-9種不等,通常只用六七種顏色作為區別。國際LGBT 聯盟的彩虹旗为六色:紅橙黃綠藍紫。紅橙黃綠藍靛紫的七色說,就是在六色基礎 上將紫色分出偏藍色的靛。傳統中國文化說的七色是:赤橙黃綠青藍紫,青色 就是偏藍的綠色。要是把橙色也分爲偏紅、偏黃的兩種就是九色。三色說有:紅綠 藍,就是光學三原色,所有顏色的光都是這三種顏色混合出來的,和亚里士多 德紅、綠、紫三色說,就是兩頭加中間。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Model card for huayan (medium) | ||
|
||
* Language: zh-cn (Chinese) | ||
* Speakers: 1 | ||
* Quality: medium | ||
* Samplerate: 22,050Hz | ||
|
||
## Dataset | ||
|
||
* URL: https://github.com/PlayVoice/HuaYan_TTS | ||
* License: Unknown | ||
|
||
## Training | ||
|
||
Finetuned from U.S. English lessac voice (medium quality). |
Oops, something went wrong.