Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 335 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 335 Bytes

phonemize

English phonemizer using CMUdict.

Installation

yard add phonemize

Usage

import { phonemize } from 'phonemize';

const text = 'Hello world!';
console.log(phonemize(text));
// hʌlˈoʊ wˈɝld!
console.log(phonemize(text, false));
// [ [ 'hʌlˈoʊ', 'hɛlˈoʊ' ], [ 'wˈɝld' ], [ '!' ] ]