Downloads · 30 days
0
ayousanz/Tsukasa-Speech
Tsukasa-Speech is a text-to-speech model from ayousanz. Use it when you need text read aloud. The card lists the license as cc-by-nc-4.0.
<div style="text-align:center;" <img src="https://i.postimg.cc/y6gT18Tn/Untitled-design-1.png" alt="Logo" style="width:300px; height:auto;" </div
Downloads · 30 days
0
Access
Public
Updated Dec 10, 2024
Repo size
11 GB
Likes
4
Public
Click a slice to open those files.
.dll163 MB · 39%
From the Hugging Face model README
tl;dr : made a very cool japanese speech generation net.
日本語のモデルカードはこちら。
Part of a personal project, focusing on further advancing Japanese speech field.
Note: This model only supports the Japanese language; but you can feed it Romaji if you use the Gradio demo.
This is a speech generation network, aimed at maximizing the expressiveness and Controllability of the generated speech. at its core it uses StyleTTS 2's architecture with the following changes:
There are two checkpoints you can use. Tsukasa & Tsumugi (placeholder).
Tsukasa was trained on ~800 hours of studio grade, high quality data. sourced mainly from games and novels, part of it from a private dataset. So the Japanese is going to be the "anime japanese" (it's different than what people usually speak in real-life.)
For Tsumugi (placeholder) a subset of this data was used; at around ~300 hours but in a more controlled manner with additional manual cleaning & annotations.
Unfortuantely Tsumugi's context length is capped and that means the model will not have enough information to handle the intonations as good as Tsukasa. it also only supports the first mode of Kotodama's inference, which means no voice design.
Brought to you by:
Special thanks to Yinghao Aaron Li, the Author of StyleTTS which this work is based on top of that. <br> He is one of the most talented Engineers I've ever seen in this field. Also Karesto and Raven for their help in debugging some of the scripts. wonderful people.
Recently, there's a big trend towards larger models, increasing the scale. We're going the opposite way, trying to see how far we can push the limits by utilizing existing tools. Maybe, just maybe, scale is not necessarily the answer.
There's also a few things that's related to Japanese. such as how we can improve the intonations for this language. what can be done to accurately annotate a text that can have various spellings depending on the context, etc.
uv venv -p 3.9
source venv/bin/activate
uv pip install -r requirements.txt
git clone https://huggingface.co/Respair/Tsukasa_Speech
cd Tsukasa_Speech
pip install -r requirements.txt
Gradio demo:
python app_tsuka.py
or check the inference notebook. before that, make sure you read the Important Notes section down below.
First stage training:
accelerate launch train_first.py --config_path ./Configs/config.yml
Second stage training:
accelerate launch accelerate_train_second.py --config_path ./Configs/config.yml
SLM Joint-Training doesn't work on multigpu. (you don't need it, i didn't use it too.)
or:
launch train_first.py --config_path ./Configs/config.yml
*Third stage training (Kotodama, prompt encoding, etc.)**:
not planned right now, due to some constraints, but feel free to replicate.
I can think of a few things that can be improved, not nessarily by me, treat it as some sorts of suggestions:
Please Check here.
Any questions?
[email protected]
or simply DM me on discord.
Kokoro - a very nice and light weight TTS, based on StyleTTS. supports Japanese and English.<br> VoPho - a meta phonemizer to rule them all. it will automatically handle any languages with hand-picked high quality phonemizers.
@article{xlstm,
title={xLSTM: Extended Long Short-Term Memory},
author={Beck, Maximilian and P{\"o}ppel, Korbinian and Spanring, Markus and Auer, Andreas and Prudnikova, Oleksandra and Kopp, Michael and Klambauer, G{\"u}nter and Brandstetter, Johannes and Hochreiter, Sepp},
journal={arXiv preprint arXiv:2405.04517},
year={2024}
}