Views
No views yet
1# Download model files
2wget https://huggingface.co/techiaith/cy_GB-bu_tts/resolve/main/cy_GB-bu_tts.onnx
3wget https://huggingface.co/techiaith/cy_GB-bu_tts/resolve/main/cy_GB-bu_tts.onnx.json
4
5# Run synthesis
6echo "Bore da, sut wyt ti?" | piper \
7 --model cy_GB-bu_tts.onnx \
8 --output_file output.wav1import onnxruntime as ort
2import numpy as np
3import json
4import wave
5
6# Load model
7session = ort.InferenceSession("cy_GB-bu_tts.onnx")
8
9# Load config
10with open("cy_GB-bu_tts.onnx.json") as f:
11 config = json.load(f)
12
13# For complete implementation, refer to:
14# https://github.com/rhasspy/piper/blob/master/src/python_run/piper/voice.py1from sonata import tts_engine
2
3engine = tts_engine.TTSEngine()
4engine.load_voice("cy_GB-bu_tts.onnx")
5
6# Synthesize speech
7audio = engine.synthesize("Bore da!")
8engine.save_audio(audio, "output.wav")cy_GB-bu_tts.onnx - The neural TTS model in ONNX formatcy_GB-bu_tts.onnx.json - Model configuration file (phoneme mapping, sample rate, etc.)1@misc{cy_GB_bu_tts_2025,
2 author = {{Language Technologies Unit, Bangor University}},
3 title = {cy\_GB-bu\_tts: Welsh Neural Text-to-Speech Model},
4 year = {2025},
5 publisher = {Hugging Face},
6 howpublished = {\url{https://huggingface.co/techiaith/cy_GB-bu_tts}}
7}
8
9@dataset{bu_tts_cy_en_2025,
10 author = {{Language Technologies Unit, Bangor University}},
11 title = {Bangor University Text to Speech Welsh-English Dataset},
12 year = {2025},
13 publisher = {Hugging Face},
14 howpublished = {\url{https://huggingface.co/datasets/techiaith/bu-tts-cy-en}}
15}
16
17@misc{piper_tts,
18 author = {{Rhasspy Community}},
19 title = {Piper: A fast, local neural text to speech system},
20 year = {2023},
21 publisher = {GitHub},
22 howpublished = {\url{https://github.com/rhasspy/piper}},
23 note = {Now maintained at \url{https://github.com/OHF-Voice/piper1-gpl}}
24}