Horse British English
British Phonetics Generator
2 min readupdated
This model converts English text to International Phonetic Alphabet transcriptions using the Standard Southern British English pronunciation. The package includes two ONNX graph files (encoder.onnx and decoder-step.onnx) along with a dictionary, running completely offline without server connections or complex code. It is designed for developers building voice assistants, educational services, and English learning apps who need fast, local phoneme generation without external APIs.
Key features
- Runs entirely offline with no external dependencies or servers
- Compact model file size of about 5.1 MB
- Generates IPA transcriptions complete with stress marks for each word
- Tested for compatibility with ONNX Runtime on Node.js
What you can do
- Integrate the model into a local Node.js script for batch word-to-transcription conversion
- Build a custom educational bot or pronunciation practice tool for English reading rules
- Use the phoneme output as a preliminary pipeline stage for text-to-speech systems
Example
Example Node.js script for retrieving the IPA transcription of a word:
import { readFileSync } from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import * as ort from 'onnxruntime-node';
const dir = fileURLToPath(new URL('./models/', import.meta.url));
const vocab = JSON.parse(readFileSync(path.join(dir, 'vocab.json'), 'utf8'));
const encoder = await ort.InferenceSession.create(path.join(dir, 'encoder.onnx'));
const decoder = await ort.InferenceSession.create(path.join(dir, 'decoder-step.onnx'));
console.log('Модели успешно загружены');
Read more
DetailsArchitecture: ONNX models (encoder and decoder-step)
Hardware requirements: runs on CPU via onnxruntime-node 1.19.2
Limitations: accepts words up to 32 characters containing only Latin letters and apostrophes
License: Horse Models Community License v2.0 (commercial license required)










Comments