Skip to content

OpenVoiceOS/ovos-tts-plugin-piper

Repository files navigation

Description

OpenVoiceOS (OVOS) TTS plugin for piper

Install

pip install ovos-tts-plugin-piper

Configuration

voice models are automatically downloaded from https://huggingface.co/rhasspy/piper-voices into ~/.local/share/piper_tts

full list of voices can be found here

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

  "tts": {
    "module": "ovos-tts-plugin-piper",
    "ovos-tts-plugin-piper": {
      "voice": "alan-low"
    }
  }

if no voice is set it will be auto selected based on language

you can also define a local path for your own model

  "tts": {
    "module": "ovos-tts-plugin-piper",
    "ovos-tts-plugin-piper": {
      "model": "/path/to/model.onnx",
      "model_config": "/path/to/model.onnx.json"
    }
  }

or a remote url

  "tts": {
    "module": "ovos-tts-plugin-piper",
    "ovos-tts-plugin-piper": {
      "model": "https://huggingface.co/poisson-fish/piper-vasco/resolve/main/onnx/vasco.onnx",
      "model_config": "https://huggingface.co/poisson-fish/piper-vasco/resolve/main/onnx/vasco.onnx.json"
    }
  }