tiny-voca-gr / README.md
Konstantinos's picture
Super-squash branch 'main' using huggingface_hub
927ea15
|
Raw History Blame Contribute Delete
5.06 kB
---
license: cc-by-4.0
language:
- el
pipeline_tag: text-to-speech
library_name: pytorch
datasets:
- aangelakis/STOMA
tags:
- greek
- tiny-voca
- speech-synthesis
---
# tiny-voca-gr: Greek M/F text-to-speech
A 4.53M-parameter Modern Greek text-to-speech model with two fixed voices (`M`
and `F`). It adapts the [tiny-voca](https://github.com/n4ze3m/tiny-voca)
architecture and was trained **from random initialization**, without the English
tiny-voca weights. The released `inference.pt` is the 104,000-step checkpoint.
## Use
This Greek checkpoint uses eSpeak NG's Greek phonemizer; upstream tiny-voca also
supports a different phonemizer. Use Python 3.11 or 3.12 and install eSpeak NG.
The Greek adapter checks the full eSpeak version output stored in the checkpoint,
including its data path. A different installation may fail this compatibility
check even when it reports eSpeak NG 1.51. Training used:
```text
eSpeak NG text-to-speech: 1.51 Data at: /usr/lib/x86_64-linux-gnu/espeak-ng-data
```
Install the Greek inference code and Hub client directly:
```bash
pip install "git+https://huggingface.co/ComputationalLinguisticsPlatform/tiny-voca-gr" huggingface_hub
```
### Download with the Hugging Face Hub API
This Python example downloads the checkpoint and generates a WAV for each voice
locally. This model needs
its Greek adapter and eSpeak NG; the hosted Hugging Face Inference API does not
serve this custom inference code automatically.
```python
from huggingface_hub import hf_hub_download
import soundfile as sf
from tiny_voca_gr.frontend import install, normalize_text
from tiny_voca_gr.backend import install as install_backend
from tiny_voca_gr.speak import sentences
install()
install_backend()
from tiny_voca import infer
infer.sentences = sentences
checkpoint = hf_hub_download(
repo_id="ComputationalLinguisticsPlatform/tiny-voca-gr",
filename="inference.pt",
)
model = infer.load_model(checkpoint, device="cpu")
text = normalize_text("Καλημέρα! Σήμερα είναι μια όμορφη μέρα.")
for voice in ("F", "M"):
wave, _ = infer.speak_text(model, text, voice)
sf.write(f"example-{voice.lower()}.wav", wave.numpy(), model.config.sample_rate)
```
### Female voice (F)
**Example 1:** “Καλημέρα! Σήμερα είναι μια όμορφη μέρα.”
<audio controls src="https://huggingface.co/ComputationalLinguisticsPlatform/tiny-voca-gr/resolve/main/sample-f.wav"></audio>
**Example 2:** “Γεια σας! Μπορείτε να ακούσετε την ελληνική φωνή σε αυτή τη σύντομη πρόταση.”
<audio controls src="https://huggingface.co/ComputationalLinguisticsPlatform/tiny-voca-gr/resolve/main/sample-f-2.wav"></audio>
### Male voice (M)
**Example 1:** “Καλημέρα! Σήμερα είναι μια όμορφη μέρα.”
<audio controls src="https://huggingface.co/ComputationalLinguisticsPlatform/tiny-voca-gr/resolve/main/sample-m.wav"></audio>
**Example 2:** “Γεια σας! Μπορείτε να ακούσετε την ελληνική φωνή σε αυτή τη σύντομη πρόταση.”
<audio controls src="https://huggingface.co/ComputationalLinguisticsPlatform/tiny-voca-gr/resolve/main/sample-m-2.wav"></audio>
## Training and evaluation
- Data: [STOMA](https://huggingface.co/datasets/aangelakis/STOMA), main speakers
`M` and `F` only, dataset revision
`fcb947d49abd2736701d8ce3786136812bac85fa`.
- Processing: Greek eSpeak phonemes; utterances with unsupported phones or
excessive token length were excluded. The final annotated sets contained
7,343 training, 392 validation, and 407 test recordings.
- Training: 104,000 steps; waveform adversarial training began at step 8,000.
- Final validation (model-predicted prosody): mel loss 0.575, STFT loss 1.315,
pitch error 1.26 semitones. These are recipe-specific diagnostics, not a
human listening score. No formal listening evaluation is published here.
Pronunciation depends on eSpeak's Greek rules. Mixed Latin and Greek text,
abbreviations, numbers, and unusual spellings may be pronounced incorrectly.
This model has fixed voices and does not clone a supplied speaker.
## License and attribution
Please cite the following sources when using this model:
```bibtex
@software{konstantinos2026tinyvocagr,
author = {Perifanos, Konstantinos},
title = {tiny-voca-gr: Greek M/F text-to-speech},
year = {2026},
url = {https://huggingface.co/ComputationalLinguisticsPlatform/tiny-voca-gr}
}
@misc{stoma_under_revision,
author = {Raptakis, Michail and Pantazis, Yannis and Angelakis, Alexandros},
title = {STOMA: A Multi-Speaker Greek Speech Corpus},
note = {Submitted to Language Resources and Evaluation (Springer); under revision},
url = {https://huggingface.co/datasets/aangelakis/STOMA}
}
@software{nazeem2026tinyvoca,
author = {Nazeem, Muhammed},
title = {tiny-voca: a 4.5M-parameter two-voice English text-to-speech model},
year = {2026},
url = {https://github.com/n4ze3m/tiny-voca}
}
```