Metadata-Version: 2.1
Name: openphonemizer
Version: 0.1.0
Summary: Permissively licensed, open sourced, local IPA Phonemizer (G2P) powered by deep learning.
Home-page: https://github.com/NeuralVox/OpenPhonemizer
Author: mrfakename
Author-email: me@mrfake.name
License: BSD-3-Clause-Clear
Classifier: License :: OSI Approved :: BSD License
Description-Content-Type: text/markdown
License-File: LICENSE

# OpenPhonemizer

A permissively licensed, open sourced, local IPA Phonemizer (G2P) powered by deep learning. This Phonemizer attempts to replicate the `espeak` Phonemizer while remaining permissively-licensed.

## Project

* Project status: Alpha
* Supported languages: English (more coming soon!)

## Installation


```bash
pip install "openphonemizer @ git+https://github.com/NeuralVox/OpenPhonemizer"
```

## Usage

### OpenPhonemizer

```python
from openphonemizer import OpenPhonemizer
phonemizer = OpenPhonemizer()
# Or specify a custom checkpoint path: OpenPhonemizer('model.pt')
phonemizer('test')
phonemizer('hello this is a test')
```

## Evaluation

We introduce PhonemizerBench, a benchmark to evaluate the similarity of alternate Phonemizers to `espeak`.

**Run 1**

| Phonemizer | Score |
| --- | --- |
| Gruut | 75.08 |
| Deep Phonemizer | 85.24 |

**Run 2**

| Phonemizer | Score |
| --- | --- |
| Gruut | 75.54 |
| Deep Phonemizer | 85.03 |

**Run 3**

| Phonemizer | Score |
| --- | --- |
| Gruut | 73.72 |
| Deep Phonemizer | 84.64 |

## License

OpenPhonemizer is open source software. You may use it under the BSD-3-Clause Clear license found in the LICENSE file.

*By contributing to this repository, you grant the author the permission to change the license in the future at their sole discretion.*

**NOTE:** Model weights may be licensed under different licenses. Please make sure to check all model weights for licenses.

## Credits

Special thanks to [Christian Schäfer](https://github.com/cschaefer26), who created [Deep Phonemizer](https://github.com/as-ideas/DeepPhonemizer),  which OpenPhonemizer relies.
