Skip to content

Commit

Permalink
Merge remote-tracking branch 'dscripka/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Oct 6, 2023
2 parents 48e5492 + f1988a4 commit 595536c
Show file tree
Hide file tree
Showing 3 changed files with 236 additions and 103 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ wget -O models/en-us-libritts-high.pt 'https://github.com/rhasspy/piper-sample-g

## Run

Generate a small set of samples:
Generate a small set of samples with the CLI:

``` sh
python3 generate_samples.py 'okay, piper.' --max-samples 10 --output-dir okay_piper/
Expand All @@ -46,6 +46,16 @@ Setting `--max-speakers` to a value less than 904 (the number of speakers LibriT

See `--help` for more options, including adjust the `--length-scales` (speaking speeds) and `--slerp-weights` (speaker blending) which are cycled per batch.

Alternatively, you can import the generate function into another Python script:

```python
from generate_samples import generate_samples # make sure to add this to your Python path as needed

generate_samples(text = ["okay, piper"], max_samples = 100, output_dir = output_dir, batch_size=10)
```

There are some additional arguments available when importing the function directly, see the docstring of `generate_sample` for more information.

### Augmentation

Once you have samples generating, you can augment them using [audiomentation](https://iver56.github.io/audiomentations/):
Expand Down
Loading

0 comments on commit 595536c

Please sign in to comment.