spark-tts
commited on
Commit
·
db044a3
1
Parent(s):
2c04e21
release
Browse files- README.md +3 -3
- example/infer.sh +1 -1
- example/infer_voice_creation.sh +0 -50
README.md
CHANGED
|
@@ -11,10 +11,10 @@
|
|
| 11 |
</p>
|
| 12 |
<p>
|
| 13 |
</p>
|
| 14 |
-
<a href="https://
|
| 15 |
<a href="https://github.com/SparkAudio/Spark-TTS"><img src="https://img.shields.io/badge/Platform-linux-lightgrey" alt="version"></a>
|
| 16 |
-
<a href="https://github.com/SparkAudio/Spark-TTS"><img src="https://img.shields.io/badge/Python-3.12
|
| 17 |
-
<a href="https://github.com/SparkAudio/Spark-TTS"><img src="https://img.shields.io/badge/PyTorch-2.5
|
| 18 |
<a href="https://github.com/SparkAudio/Spark-TTS"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="mit"></a>
|
| 19 |
</div>
|
| 20 |
|
|
|
|
| 11 |
</p>
|
| 12 |
<p>
|
| 13 |
</p>
|
| 14 |
+
<a href="https://sparkaudio.github.io/spark-tts/"><img src="https://img.shields.io/badge/Demo-Page-lightgrey" alt="version"></a>
|
| 15 |
<a href="https://github.com/SparkAudio/Spark-TTS"><img src="https://img.shields.io/badge/Platform-linux-lightgrey" alt="version"></a>
|
| 16 |
+
<a href="https://github.com/SparkAudio/Spark-TTS"><img src="https://img.shields.io/badge/Python-3.12+-orange" alt="version"></a>
|
| 17 |
+
<a href="https://github.com/SparkAudio/Spark-TTS"><img src="https://img.shields.io/badge/PyTorch-2.5+-brightgreen" alt="python"></a>
|
| 18 |
<a href="https://github.com/SparkAudio/Spark-TTS"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="mit"></a>
|
| 19 |
</div>
|
| 20 |
|
example/infer.sh
CHANGED
|
@@ -26,7 +26,7 @@ root_dir=$(dirname "$script_dir")
|
|
| 26 |
device=0
|
| 27 |
save_dir='example/results'
|
| 28 |
model_dir="pretrained_models/Spark-TTS-0.5B"
|
| 29 |
-
text="
|
| 30 |
prompt_text="吃燕窝就选燕之屋,本节目由26年专注高品质燕窝的燕之屋冠名播出。豆奶牛奶换着喝,营养更均衡,本节目由豆本豆豆奶特约播出。"
|
| 31 |
prompt_speech_path="example/prompt_audio.wav"
|
| 32 |
|
|
|
|
| 26 |
device=0
|
| 27 |
save_dir='example/results'
|
| 28 |
model_dir="pretrained_models/Spark-TTS-0.5B"
|
| 29 |
+
text="身临其境,换新体验。塑造开源语音合成新范式,让智能语音更自然。"
|
| 30 |
prompt_text="吃燕窝就选燕之屋,本节目由26年专注高品质燕窝的燕之屋冠名播出。豆奶牛奶换着喝,营养更均衡,本节目由豆本豆豆奶特约播出。"
|
| 31 |
prompt_speech_path="example/prompt_audio.wav"
|
| 32 |
|
example/infer_voice_creation.sh
DELETED
|
@@ -1,50 +0,0 @@
|
|
| 1 |
-
#!/bin/bash
|
| 2 |
-
|
| 3 |
-
# Copyright (c) 2025 SparkAudio
|
| 4 |
-
# 2025 Xinsheng Wang (w.xinshawn@gmail.com)
|
| 5 |
-
#
|
| 6 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 7 |
-
# you may not use this file except in compliance with the License.
|
| 8 |
-
# You may obtain a copy of the License at
|
| 9 |
-
#
|
| 10 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
| 11 |
-
#
|
| 12 |
-
# Unless required by applicable law or agreed to in writing, software
|
| 13 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 14 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 15 |
-
# See the License for the specific language governing permissions and
|
| 16 |
-
# limitations under the License.
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
# Get the absolute path of the script's directory
|
| 20 |
-
script_dir=$(dirname "$(realpath "$0")")
|
| 21 |
-
|
| 22 |
-
# Get the root directory
|
| 23 |
-
root_dir=$(dirname "$script_dir")
|
| 24 |
-
|
| 25 |
-
# Set default parameters
|
| 26 |
-
device=0
|
| 27 |
-
save_dir='example/results_voice_creation'
|
| 28 |
-
model_dir="pretrained_models/Spark-TTS-0.5B"
|
| 29 |
-
text="革新体验,自然呈现,开启语音合成新纪元。此模型由智能语音开源社区 Spark Audio 精心打造。"
|
| 30 |
-
gender="female"
|
| 31 |
-
speed="moderate"
|
| 32 |
-
pitch="moderate"
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
# Change directory to the root directory
|
| 36 |
-
cd "$root_dir" || exit
|
| 37 |
-
|
| 38 |
-
source sparktts/utils/parse_options.sh
|
| 39 |
-
|
| 40 |
-
# Run inference for each JSON file
|
| 41 |
-
python -m cli.inference \
|
| 42 |
-
--text "${text}" \
|
| 43 |
-
--device "${device}" \
|
| 44 |
-
--save_dir "${save_dir}" \
|
| 45 |
-
--model_dir "${model_dir}" \
|
| 46 |
-
--gender "${gender}" \
|
| 47 |
-
--speed "${speed}" \
|
| 48 |
-
--pitch "${pitch}"
|
| 49 |
-
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|