Instructions to use Phoonnx/pipertts_pt-PT_miro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Piper
How to use Phoonnx/pipertts_pt-PT_miro with Piper:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
pipertts_pt-PT_miro
This is a text-to-speech voice model for European Portuguese. The voice is Miro, a male voice. It uses the Piper VITS architecture, exported to ONNX for CPU inference.
A newer version of this voice is available: Phoonnx/phoonnx_pt-PT_miro_tugaphone.
Model details
| Field | Value |
|---|---|
| Repository | Phoonnx/pipertts_pt-PT_miro |
| Voice id | OpenVoiceOS/pipertts_pt-PT_miro |
| Languages | pt-PT |
| Architecture | VITS |
| Text input | espeak phonemes, IPA alphabet |
| Punctuation | Trained with the clause punctuation , . ! ? : ;. phoonnx 1.96.1a1 and later keep it at synthesis. |
| Sample rate | 22050 Hz |
| Speakers | 1 |
| Training code | Piper, version stamp 1.0.0 (the version string of the training code; a development build carries the stamp of an earlier release) |
| Phonemizer | espeak-ng through piper-phonemize, version not recorded. If a released piper-phonemize was used, it was at most 1.1.0 (released 2023-07-31), the newest release before the model was first uploaded on 2025-06-25. |
| Training data | Phoonnx/tts-train-synthetic-miro_pt-PT |
| Base model | Not recorded |
| Training checkpoint | epoch=8428-step=1308542.ckpt, in this repository for fine-tuning |
| Trained by | TigreGotico Lda |
| Licence | CC BY-NC-ND 4.0 |
How to use
Install phoonnx:
pip install --pre phoonnx
The phonemes come from the espeak-ng program, so install it too (for example
apt install espeak-ng). Without it, pip install --pre "phoonnx[espeak]" gives
phoonnx the espyak port of espeak-ng. Some espyak phonemes differ from those of
espeak-ng, so the voice can say some words wrong with espyak.
Then run:
import wave
from phoonnx.model_manager import TTSModelManager
manager = TTSModelManager()
manager.load()
manager.merge_default_voices()
voice = manager.voices["OpenVoiceOS/pipertts_pt-PT_miro"].load()
with wave.open("output.wav", "wb") as wav_file:
voice.synthesize_wav("Bom dia, como está?", wav_file)
In OVOS, phoonnx installs the ovos-tts-plugin-phoonnx plugin. Select this voice in
mycroft.conf:
{
"tts": {
"module": "ovos-tts-plugin-phoonnx",
"ovos-tts-plugin-phoonnx": {
"voice": "OpenVoiceOS/pipertts_pt-PT_miro"
}
}
}
Training data
Trained on Phoonnx/tts-train-synthetic-miro_pt-PT.
Related links
- Training-data collection: https://huggingface.co/collections/TigreGotico/synthetic-tts-datasets
- phoonnx: https://github.com/TigreGotico/phoonnx
- voiceclonnx: https://github.com/TigreGotico/voiceclonnx
- TigreGotico: https://tigregotico.pt
Ownership and licensing
Miro and Dii are the recorded voices of two real people. The voices, the training data, and this model belong to TigreGotico Lda (https://tigregotico.pt).
This model is licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 (CC BY-NC-ND 4.0). You may use and share this model for non-commercial purposes only. Give attribution to TigreGotico Lda. Do not modify, adapt, or build new models from this model. Do not use the voice identity to create derivative voices.
For commercial use, for derivative models, or for any other license of the Miro or Dii voice identity, contact TigreGotico Lda.
- Downloads last month
- 285