Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 754 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 754 Bytes

Pronouncingex

get the english (IPA) pronunciation for a word or phrase

Installation

def deps do
  [
    {:pronouncingex, "~> 0.1.4"}
  ]
end

How use

#get the IPA sound
Pronouncingex.pronounce("are you kidding me", :ipa)
# => ɑɹ ju kɪdɪŋ m̩i

#get a simplified pronunciation
Pronouncingex.pronounce("are you kidding me")
# => Ar yU kIdIn m̩i 

#you can get the Arpabet pronunciation but just for a word (for a phrase arpabet can be a bit clumsy)
Pronouncingex.pronounce("kidding", :arpabet)

the simplified version can be improved for future releases

many thanks to aparrish for the idea, this is a simplified version and use IPA along with Arpabet