Modalities
This page summarizes what is currently shipped in hama (v1.6.0) and what remains on the roadmap.
Available
Text → IPA (G2P): Available in Python, Node/Bun, and the browser. Returns IPA plus per-phoneme alignment metadata.
Audio → Phoneme (ASR): Available in Python, Node/Bun, and the browser. Accepts waveform input and returns collapsed phoneme output from the
asr_waveform.hamamodel. As of v1.6.0 you can also request per-phoneme time spans (phoneme_spans/phonemeSpans) that report each phoneme’s approximate start/end in milliseconds and frames. Spans are coarse because CTC alignment is peaky.IPA → Text (P2G): Available in Python, Node/Bun, and the browser. Phoneme-to-grapheme conversion, the inverse of G2P. As of v1.6.0 the result also includes alignments mapping each output token back to the input phoneme it most attends to.
Audio → Text: Available in Python, Node/Bun, and the browser. Speech recognition that decodes waveform input through phoneme ASR and P2G to graphemes.
Coming soon
- Text → Embeddings
Runtime coverage
| Runtime | G2P | Phoneme ASR | P2G |
|---|---|---|---|
| Browser | Yes | Yes | Yes |
| Node/Bun | Yes | Yes | Yes |
| Python | Yes | Yes | Yes |