Think Outside the Cloud
On-device language processing in Python, Node, and the browser
Targets
Python · TypeScript
Browser and server runtimes.
Latency
≈ 7ms / batch
Measured locally on Apple Silicon.
uv pip install hama from hama import G2PModel
model = G2PModel()
result = model.predict(
"I saw her duck.",
preserve_literals="punct",
)
print(result.ipa)
print(result.display_ipa) Cheap. Fast. Accurate. Pick three.
hama makes local natural language processing an easy choice.
Tasks
Text → IPA
IPA → Text
Audio → IPA
Text → Embeddings
Audio → Text
(Speech recognition)
Features
Apache 2.0 license
Code-mixed input
Input / output character mapping
Python, Node, and browser runtimes
Supported languages
IPA referenceTry it out
Try sample inputs or type your own text.
—
Blog
Documentation
Getting started
Introduction
Overview, guiding principles, and supported languages.
Getting started
Installation
Set up Python and TypeScript runtimes for development or deployment.
Reference
APIs
Detailed reference for model classes and helper functions.
Reference
IPA Reference
Practical IPA symbol table and interpretation guide for hama outputs.
Help build the next generation of language intelligence.
Sponsorship supports infrastructure, documentation, and model maintenance.