LocalAI icon indicating copy to clipboard operation
LocalAI copied to clipboard

Add missing Piper voices

Open beautiful-orca opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe. LocalAI Gallery is missing newer piper voices, for example voice-de-thorsten-high and voice-de-thorsten-medium. Currently the source is https://github.com/rhasspy/piper/releases/tag/v0.0.2

Describe the solution you'd like I would like to have all piper voices available. They can be downloaded from https://huggingface.co/rhasspy/piper-voices. In that case the files are not available as an archive, but as seperate files under a deep folder structure, so you have to download both the .onnx and the .json .

Describe alternatives you've considered I added the files in the /models folder manually, but it is not as easy. Also the LocalAI configuration for the model has to be created manually.

beautiful-orca avatar Aug 17 '25 10:08 beautiful-orca

hi, news?

tekkkkkk avatar Oct 17 '25 12:10 tekkkkkk

@tekkkkkk

I do not have the time to fix the whole model gallery for piper voices. I suggest to manually download the models and put them in the /models folder.

git clone https://huggingface.co/rhasspy/piper-voices gets you all the voices.

You need to move the .onnx and .onnx.json files per model

e.g. /models/en_US-ryan-high.onnx and /models/en_US-ryan-high.onnx.json

then you have to add a .yaml that you need to create yourself for each model

/models/en_US-ryan-high.yaml

backend: piper
name: en_US-ryan-high
parameters:
    model: en_US-ryan-high.onnx

beautiful-orca avatar Dec 21 '25 06:12 beautiful-orca

@beautiful-orca @tekkkkkk Most of the Piper voices that were missing are now added by PR #8202. All that were present from the original source were skipped.

There also are few left out from the Hugging Face repo due to some issues:

  • ar_JO models - while testing, models failed to load
  • bg_BG-dimitar-medium - while testing, model failed to load
  • de_DE-mls-medium - model output did not correspond to input, and seemed random
  • fr_FR-mls-medium - model output did not correspond to input, and seemed random
  • nl_NL-mls-medium - model output did not correspond to input, and seemed random
  • uk_UA-ukrainian_tts-medium - produced only a single click as output
  • vi_VN-vais1000-medium - model output did not correspond to input, and seemed random (language barrier?)

Testing here = correctly downloading through gallery, loading into Piper and being able to say arbitrary test strings (letters "abc" and word "test")

rampa3 avatar Jan 25 '26 09:01 rampa3

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Apr 26 '26 02:04 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar May 01 '26 02:05 github-actions[bot]