YatharthS commited on
Commit
b5fea2c
·
verified ·
1 Parent(s): ee6f580

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +68 -3
README.md CHANGED
@@ -1,3 +1,68 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ pipeline_tag: text-to-speech
6
+ ---
7
+
8
+ ## LuxTTS
9
+ <p align="center">
10
+ <a href="https://huggingface.co/YatharthS/LuxTTS">
11
+ <img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-FFD21E" alt="Hugging Face Model">
12
+ </a>
13
+ &nbsp;
14
+ <a href="https://colab.research.google.com/drive/1cDaxtbSDLRmu6tRV_781Of_GSjHSo1Cu?usp=sharing">
15
+ <img src="https://img.shields.io/badge/Colab-Notebook-F9AB00?logo=googlecolab&logoColor=white" alt="Colab Notebook">
16
+ </a>
17
+ </p>
18
+
19
+ This is the model for LuxTTS, a lightweight zipvoice based text-to-speech model designed for high quality voice cloning and realistic generation at speeds exceeding 150x realtime.
20
+
21
+ ### Main features
22
+ - Voice cloning: SOTA voice cloning on par with models 10x larger.
23
+ - Clarity: Clear 48khz speech generation unlike most TTS models which are limited to 24khz.
24
+ - Speed: Reaches speeds of 150x realtime on a single GPU and faster then realtime on CPU's as well.
25
+ - Efficiency: Fits within 1gb vram meaning it can fit in any local gpu.
26
+
27
+
28
+ ### Details
29
+ - Based on ZipVoice, distilled to 4steps.
30
+ - Uses 48khz vocoder instead of 24khz vocoder.
31
+ - Implemented higher quality sampling technique then standard euler.
32
+
33
+
34
+ ### Usage
35
+
36
+ Please check out the repo for more usage tips: https://github.com/ysharma3501/LuxTTS.git
37
+
38
+ #### Simple installation:
39
+ ```
40
+ git clone https://github.com/ysharma3501/LuxTTS.git
41
+ cd LuxTTS
42
+ pip install -r requirements.txt
43
+ ```
44
+
45
+ #### Load model:
46
+ ```python
47
+ from zipvoice.luxtts import LuxTTS
48
+ lux_tts = LuxTTS('YatharthS/LuxTTS', device='cuda', threads=2) ## change device to cpu for cpu usage
49
+ ```
50
+
51
+ #### Simple inference
52
+ ```python
53
+ from IPython.display import Audio
54
+
55
+ text = "Hey, what's up? I'm feeling really great if you ask me honestly!"
56
+ prompt_audio = 'audio_file.wav'
57
+
58
+ ## encode audio(takes 10s to init because of librosa first time)
59
+ encoded_prompt = lux_tts.encode_prompt(prompt_audio, rms=rms)
60
+
61
+ ## generate speech
62
+ final_wav = lux_tts.generate_speech(text, encoded_prompt, num_steps=num_steps)
63
+
64
+ ## display speech
65
+ display(Audio(final_wav, rate=48000))
66
+ ```
67
+
68
+ If you find the model/code helpful, stars or likes would be appreciated. Thank you.