wwesantos/arpabet-to-ipa

Convert Arpabet to IPA. Arpabet is the set of phonemes used by the CMU Pronouncing Dictionary. IPA is the International Phonetic Alphabet

Maintainers

Package info

github.com/wwesantos/arpabet-to-ipa

Homepage

pkg:composer/wwesantos/arpabet-to-ipa

Statistics

Installs: 442

Dependents: 0

Suggesters: 0

Stars: 44

Open Issues: 0

v1.0.0 2015-06-20 23:34 UTC

This package is not auto-updated.

Last update: 2026-03-29 01:40:01 UTC


README

Arpabet-to-IPA converts Arpabet to IPA.
Arpabet is the set of phonemes used by cmudict, which is The CMU Pronouncing Dictionary. IPA is the International Phonetic Alphabet.

Getting Started

Install

You may install the Arpabet-to-IPA with Composer (recommended) or manually.

Installing Arpabet-to-IPA:

composer require wwesantos/arpabet-to-ipa

Tutorial

Instantiate and use a Arpabet-to-IPA class:


  		$arpabetToIPA = new ArpabetToIPA\App();
		  $ipaPhoneme = $arpabetToIPA->getIPA('AA');
		  $ipaWord = $arpabetToIPA->getIPA('F OW1 N IY0 M');

You may define your own convertion table


  		$arpabetToIPA->setConvertionTable(array(
				'AO' => 'ɔ',
				'AA' => 'ɑ',
				'F' => 'f',
				'V' => 'v',
				'S' => 's'
		));

System Requirements

You need PHP >= 5.3.0.

License

The Arpabet-to-IPA is released under the MIT public license.

https://github.com/wwesantos/arpabet-to-ipa/blob/master/LICENSE