# phonetisaurus

> Grapheme to Phoneme on the Web powered by WebAssembly

Latest version **0.0.1** (published 2023-10-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install phonetisaurus
pnpm add phonetisaurus
yarn add phonetisaurus
bun add phonetisaurus
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2023-10-08 |
| First published | 2023-10-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Seanghay Yath |
| Maintainers | seanghay |

## Links

- npm: https://www.npmjs.com/package/phonetisaurus
- Repository: https://github.com/seanghay/phonetisaurus-js
- Homepage: https://github.com/seanghay/phonetisaurus-js#readme
- Issues: https://github.com/seanghay/phonetisaurus-js/issues
- npm.io page: https://npm.io/package/phonetisaurus

## Recent versions

- 0.0.1 (latest) — 2023-10-08

## README

### Phonetisaurus.js

Grapheme to Phoneme on the Web powered by WebAssembly.

```js
import phonetisaurus from 'phonetisaurus'

// download the remote model file
const res = await fetch("https://example.com/model.fst")
const buffer = await res.arrayBuffer();

// write to a virtual file system
phonetisaurus.FS.writeFile("/model.fst", buffer)

// create phonemizer instance
const phonemizer = new phonetisaurus.Phonemizer("/model.fst", "")
const result = phonemizer.phoneticize("hello", 10, 500, 10, false, false, 0.0)

// => [[ 'h', 'ɛɛ', 'l', 'oo' ]]
```


## Reference

- [Phonetisaurus](https://github.com/AdolfVonKleist/Phonetisaurus)
- [OpenFst](https://www.openfst.org/)

---
_Source: https://npm.io/package/phonetisaurus · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
