ONNX Model Zoo

kgergooo/espeak-phonemizer-hu

By kgergooo · ↓ 0 · ♥ 0 · Updated 2026-02-28

What's in this repo

This page lists the files in kgergooo/espeak-phonemizer-hu, including hu_narro_g2p.int8.onnx, hu_narro_g2p.onnx.

  • 2 ONNX models (.onnx files)
  • 7 files, including 2 .json, 2 .onnx, 1 .md, 1 .pt
  • Last updated 2026-02-28

ONNX files

File Size Download
onnx/hu_narro_g2p.int8.onnx — Download
onnx/hu_narro_g2p.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README


license: mit language:

  • hu

Model Description

A lightweight, permissively licensed Transformer-based Grapheme-to-Phoneme (G2P) model for Hungarian text-to-speech (TTS) phonemization.

This model is designed to convert Hungarian text into IPA phoneme sequences — serving as a drop-in replacement for eSpeak-NG.

Key Features

  • ⚡ Fast and lightweight — Small Transformer model (~2MB checkpoint)
  • 🧠 End-to-end text → phoneme prediction using CTC loss
  • 📱 Fully offline — Runs on mobile and embedded devices
  • 🔄 Drop-in replacement for eSpeak-NG in Piper-style TTS pipelines
  • ⚖️ MIT licensed — Safe for closed-source and commercial apps (no GPL dependencies)

Model Architecture

Parameter Value
Architecture Transformer (2 layers, 4 attention heads)
Hidden Size 128
FFN Hidden Size 640
Dropout 0.1
Max Position Embeddings 320
Vocabulary Size 38 graphemes, 105 phonemes

Training Data

  • Source: Hungarian text phonemized with eSpeak-NG (hu_HU voice)
  • Training samples: 450,000 sentences
  • Validation samples: 25,000 sentences
  • Test samples: 25,000 sentences
  • Max sequence length: 200 characters

Performance

  • Accuracy: ~98.83% match with eSpeak-NG IPA output
  • Epoch: 25/45 trained
  • Validation loss: 0.134

Input/Output Format

Input: Hungarian text (e.g., "A kezében levő lándzsát a töröknek a szügyébe veti.") Output: IPA phonemes (e.g., "ˌɑ kˈɛzeːbɛn lˈɛvøː lˈaːndʒaːt ˌɑ tˈørøknɛk ˌɑ sˈyɟeːbɛ vˈɛti")

Model info

onnx hu license:mit region:us
↓ 0 ♥ 0

Created: 2026-02-28

Updated: 2026-02-28

View on Hugging Face

Files (7)

.gitattributes
README.md
model-epoch0025.json
model-epoch0025.pt
onnx/hu_narro_g2p.int8.onnx ONNX
onnx/hu_narro_g2p.onnx ONNX
vocabulary.json

Related models