Update README.md
Browse files
README.md
CHANGED
|
@@ -33,36 +33,9 @@ This is the model for LuxTTS, a lightweight zipvoice based text-to-speech model
|
|
| 33 |
|
| 34 |
### Usage
|
| 35 |
|
| 36 |
-
Please check out the repo for
|
| 37 |
|
| 38 |
-
###
|
| 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.
|
|
|
|
| 33 |
|
| 34 |
### Usage
|
| 35 |
|
| 36 |
+
Please check out the repo for usage: https://github.com/ysharma3501/LuxTTS.git
|
| 37 |
|
| 38 |
+
### License
|
| 39 |
+
Model and code is released under Apache-2.0 license.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
If you find the model/code helpful, stars or likes would be appreciated. Thank you.
|