FireRedTeam commited on
Commit
2447325
·
verified ·
1 Parent(s): f8862a6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +100 -3
README.md CHANGED
@@ -1,3 +1,100 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+ <div align="center">
5
+ <h1>FireRedTTS: A Foundation Text-To-Speech Framework for Industry-Level Generative Speech Applications</h1>
6
+ </div>
7
+
8
+ #### 👉🏻 [FireRedTTS Paper](https://arxiv.org/abs/2409.03283) 👈🏻
9
+
10
+ #### 👉🏻 [FireRedTTS Demos](https://fireredteam.github.io/demos/firered_tts/) 👈🏻
11
+
12
+ #### 👉🏻 [FireRedTTS Space (Interactive Demo)](https://huggingface.co/spaces/fireredteam/FireRedTTS) 👈🏻
13
+
14
+ ## News
15
+
16
+ - [2024/10/17] 🔥 We release [new rich-punctuation model](https://huggingface.co/fireredteam/FireRedTTS/tree/main), offering expanded punctuation coverage and enhanced audio production consistency. In addition, we have strengthened the capabilities of the text front-end and enhanced the stability of synthesis.
17
+ - [2024/09/26] 🔥 Our model is already available on [huggingface space](https://huggingface.co/spaces/fireredteam/FireRedTTS),try it through the interactive interface.
18
+ - [2024/09/20] 🔥 We release the pre-trained checkpoints and inference code.
19
+ - [2024/09/06] 🔥 We release the [technical report](https://arxiv.org/abs/2409.03283) and [project page](https://fireredteam.github.io/demos/firered_tts/)
20
+
21
+ ## Roadmap
22
+
23
+ - [ ] 2024/09
24
+ - [x] Release the pre-trained checkpoints and inference code.
25
+ - [ ] Release testing set.
26
+
27
+ - [ ] 2024/10
28
+ - [x] Release rich punctuation version.
29
+ - [ ] Release finetuned checkpoints for controllable human-like speech generation.
30
+
31
+ ## Usage
32
+
33
+ #### Clone and install
34
+
35
+ - Clone the repo
36
+
37
+ ```shell
38
+ https://github.com/FireRedTeam/FireRedTTS.git
39
+ cd FireRedTTS
40
+ ```
41
+
42
+ - Create conda env
43
+
44
+ ```shell
45
+ # step1.create env
46
+ conda create --name redtts python=3.10
47
+
48
+ # stpe2.install torch (pytorch should match the cuda-version on your machine)
49
+ # CUDA 11.8
50
+ conda install pytorch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 pytorch-cuda=11.8 -c pytorch -c nvidia
51
+ # CUDA 12.1
52
+ conda install pytorch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 pytorch-cuda=12.1 -c pytorch -c nvidia
53
+
54
+ # step3.install fireredtts form source
55
+ pip install -e .
56
+
57
+ # step4.install other requirements
58
+ pip install -r requirements.txt
59
+ ```
60
+
61
+ #### Download models
62
+
63
+ Download the required model files from [**Model_Lists**](https://huggingface.co/fireredteam/FireRedTTS/tree/main) and place them in the folder `pretrained_models`
64
+
65
+ #### Basic Usage
66
+
67
+ ```python
68
+ import os
69
+ import torchaudio
70
+ from fireredtts.fireredtts import FireRedTTS
71
+
72
+ tts = FireRedTTS(
73
+ config_path="configs/config_24k.json",
74
+ pretrained_path=<pretrained_models_dir>,
75
+ )
76
+
77
+ #same language
78
+ rec_wavs = tts.synthesize(
79
+ prompt_wav="examples/prompt_1.wav",
80
+ text="小红书,是中国大陆的网络购物和社交平台,成立于二零一三年六月。",
81
+ lang="zh",
82
+ )
83
+
84
+ rec_wavs = rec_wavs.detach().cpu()
85
+ out_wav_path = os.path.join("./example.wav")
86
+ torchaudio.save(out_wav_path, rec_wavs, 24000)
87
+
88
+ ```
89
+
90
+ ## Tips
91
+
92
+ - Removing the long silence (>1s) in the middle of prompt_wav may bring better stability. If there are too many long silences in your prompt_wav and it causes stability problems, it is recommended to use our tool(`tools/process_prompts.py`) to remove the silence.
93
+
94
+ ## Acknowledgements
95
+
96
+ - [**Tortoise-tts**](https://github.com/neonbjb/tortoise-tts) and [**XTTS-v2**](https://github.com/coqui-ai/TTS) offer invaluable insights for constructing an autoregressive-style system.
97
+ - [**Matcha-TTS**](https://github.com/shivammehta25/Matcha-TTS) and [**CosyVoice**](https://github.com/FunAudioLLM/CosyVoice) demonstrate the excellent ability of flow-matching in converting audio code to mel.
98
+
99
+ - [**BigVGAN-v2**](https://github.com/NVIDIA/BigVGAN), utilized for vocoding.
100
+ - We referred to [**whisper’s**](https://github.com/openai/whisper) text tokenizer solution.