Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Dec 15, 2024
1 parent f3f4a61 commit 0059635
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@

## Configuration

download models from https://github.com/rhasspy/piper/releases/tag/v0.0.2
voice models are automatically downloaded from https://huggingface.co/rhasspy/piper-voices into `~/.local/share/piper_tts`

you can also pass an url for a .tar.gz model, and it will be auto downloaded
full list of voices can be found [here](https://huggingface.co/rhasspy/piper-voices/blob/main/voices.json)

if no model is passed it will be auto selected based on language

you can pass a model name alias, eg "alan-low"
you can also pass a short name alias without lang code, eg `"alan-low"` instead of `"en_GB-alan-low"`

```json
"tts": {
Expand All @@ -24,3 +22,4 @@ you can pass a model name alias, eg "alan-low"
}
}
```
if no voice is set it will be auto selected based on language
4 changes: 2 additions & 2 deletions ovos_tts_plugin_piper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def available_languages(self) -> set:

if __name__ == "__main__":
config = {}
config["lang"] = "pt-pt"
config["lang"] = "en-gb"
e = PiperTTSPlugin(config=config)
e.get_tts("olá mundo", "hello.wav")
e.get_tts("hello world", "hello.wav")
print(PiperTTSPluginConfig)

0 comments on commit 0059635

Please sign in to comment.