mirror of
https://github.com/pstrueb/piper.git
synced 2026-06-02 09:57:02 +00:00
Update README
This commit is contained in:
@@ -13,6 +13,7 @@ Download voices from [the release](https://github.com/rhasspy/larynx2/releases/t
|
||||
|
||||
Supported languages:
|
||||
|
||||
* Catalan (ca)
|
||||
* Danish (da)
|
||||
* French (fr)
|
||||
* German (de)
|
||||
@@ -128,3 +129,25 @@ head -n5 /path/to/training_dir/dataset.jsonl | \
|
||||
--output-dir wavs
|
||||
```
|
||||
|
||||
|
||||
## Running in Python
|
||||
|
||||
See [src/python_run](src/python_run)
|
||||
|
||||
Run `scripts/setup.sh` to create a virtual environment and install the requirements. Then run:
|
||||
|
||||
``` sh
|
||||
echo 'Welcome to the world of speech synthesis!' | scripts/larynx \
|
||||
--model /path/to/voice.onnx \
|
||||
--output_file welcome.wav
|
||||
```
|
||||
|
||||
If you'd like to use a GPU, install the `onnxruntime-gpu` package:
|
||||
|
||||
|
||||
``` sh
|
||||
.venv/bin/pip3 install onnxruntime-gpu
|
||||
```
|
||||
|
||||
and then run `scripts/larynx` with the `--cuda` argument. You will need to have a functioning CUDA environment, such as what's available in [NVIDIA's PyTorch containers](https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user