This repository leverages the work of Piper to provide offline usage and access to the pre-trained text-to-speech (TTS) models available from the Uned Technolegau Iaith. Piper is already used in a variety of open-source projects but we hope this repository will also serve as a forum to advance the use of Welsh TTS on as many platforms as possible.
In the repository you will find pre-built onnx models for the Piper framework. You can follow their instructions to build for you use case or via the docker container in this repository. You will also find the models converted for use with the sherpa-onnx project which contains several examples of local inference on a variety of devices.
To get a local copy up and running follow these steps.
Docker-compose is now shipped with DockerDesktop, however if the docker compose
plugin is not available in your installation then follow the install instructions.
-
Clone the repo
git clone https://github.com/techiaith/piper-cy.git
Start the container
docker compose run piper
root@21d3f7f1bb68:/# echo "Croeso i'r byd testun i leferydd!" | \
./piper --model /models/gwryw-gogleddol.onnx --output_file /exports/croeso.wav
Navigate to the /exports/
folder on your local machine and look for the croeso.wav
file to play in any audio player.
- Offline Android Inference
- Offline iOS Inference
- Mult-Speaker Models
We are currently planning out new features, please check back soon or add your opinion via the issue tracker.
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch
git checkout -b feature/AmazingFeature
- Commit your Changes
git commit -m 'Add some AmazingFeature'
- Push to the Branch
git push origin feature/AmazingFeature
- Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Techiaith - @techiaith - techiaith@bangor.ac.uk - techiaith.cymru
Project Link: https://github.com/techiaith/piper-cy
We thank the Welsh Government for funding this work as part of the Technoleg Cymraeg 2021-22 project.