Installation#
You can install pymbrola from the PyPi <https://pypi.org/project/mbrola/>__ repository using pip or uv:
pip install mbrola # pip installation
uv add mbrola # uv installation
In either case, you will need Python>=3.10. To synthesise audios via MBROLA, you will need to download it and compile it. The pymbrola package has functions for this. This will download MBROLa from numediart/MBROLA to you home folder ~/.mbrola and compile it.
Platform compatibility
MBROLA is currently available only on Linux-based systems like Ubuntu, or on Windows via the Windows Subsystem for Linux (WSL). Native Windows and macOS are not yet compatible with the pymbrola package.
Finally, you will need to download some MBROLA voices from numediart/MBROLA-voices. These voices will be automatically downloaded and found by pymbrola at ~/.mbrola/Voices:
mbrola.install_voice("it4") # install it4 voice
mbrola.install_voice(["it4", "fr4"]) # install several voices
mbrola.install_voice() # install all voices (~534M)
Using Docker#
A Docker image with a ready-to-go MBROLA installation is available:
docker run -it gongcastro/pymbrola:latest