Skip to content

Commit

Permalink
voice aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Apr 28, 2023
1 parent 20dfaf2 commit d69736b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ovos_tts_plugin_piper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,6 @@ def available_languages(self) -> set:


config = {}
config["model"] = "~/ovos-tts-plugin-piper/en-gb-southern_english_female-low.onnx"
e = PiperTTSPlugin()
config["model"] = "alan-low"
e = PiperTTSPlugin(config=config)
e.get_tts("hello world", "hello.wav")
8 changes: 7 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ OVOS TTS plugin for [piper](https://github.com/rhasspy/piper)

download models from https://github.com/rhasspy/piper/releases/tag/v0.0.2

you can also pass a url for a .tar.gz model and it will be auto downloaded

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

you can pass a model name alias, eg "alan-low"

```json
"tts": {
"module": "ovos-tts-plugin-piper",
"ovos-tts-plugin-piper": {
"model": "path/model.onnx",
"model": "alan-low",
}
}
```

0 comments on commit d69736b

Please sign in to comment.