Allow loading from file

This commit is contained in:
mrfakename
2024-02-27 01:00:46 +00:00
parent 20544c33b9
commit 28e76e2cd1
4 changed files with 30 additions and 3 deletions

View File

@@ -43,7 +43,8 @@ An unofficial [live demo](https://huggingface.co/spaces/mrfakename/MeloTTS) is h
The WebUI supports muliple languages and voices. First, follow the installation steps. Then, simply run:
```bash
python app.py
melo-ui
# Or: python melo/app.py
```
### CLI
@@ -84,6 +85,12 @@ melo "Text to read" output.wav --speed 1.5
melo "语音合成领域近年来发展迅速" zh.wav -l ZH
```
**Load from a file:**
```bash
melo file.txt out.wav --file
```
The full API documentation may be found using:
```bash