hama on-device NLP

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

Available

IPA → Text

Coming soon

Audio → IPA

Available

Text → Embeddings

Coming soon

Audio → Text

(Speech recognition)

Coming soon

Features

Apache 2.0 license

Code-mixed input

Input / output character mapping

Python, Node, and browser runtimes

Supported languages

IPA reference
English French German Italian Japanese Korean Portuguese Spanish Dutch Thai (Central) Chinese (Simplified) Chinese (Traditional)

Try it out

Try sample inputs or type your own text.

Loading model weights in the browser… (Inference runs locally.)
Input text
Display IPA

Alignments

Help build the next generation of language intelligence.

Sponsorship supports infrastructure, documentation, and model maintenance.