Introduction
hama is a cross-platform G2P, phoneme ASR, and P2G runtime for Python and TypeScript.
Guiding principles
On-device. Inference runs locally in Python, Node/Bun, and the browser.
Plug-and-play. Packaged assets and consistent APIs make hama easy to drop in and run across environments.
Explainable. G2P and P2G return alignments, and ASR returns collapsed and frame-level token views plus per-phoneme time spans.
Supported languages
hama ships vocabularies for English, Korean, Chinese (simplified/traditional), Dutch,
French, German, Italian, Japanese, Portuguese, Spanish, and Thai. Adding a language means
regenerating the vocab and .hama weight packages; see Architecture and
Modalities for the workflow.
For the shortest path, start with Quickstart, Installation, and APIs.