Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sampa

Convert phonetic representation from X-SAMPA


Description

Converts to IPA or ARPABET (used by the CMU Pronouncing Dictionary)

Usage

sampa(x, to = c("ipa", "arpabet"))

xsampa(x, to = c("ipa", "arpabet"))

Arguments

x

A phonetic character vector in X-SAMPA

to

The phonetic alphabet to convert to. Defaults to "ipa". "arpa" and "cmu" are accepted aliases for "arpabet".

Value

A character vector the same length as x

See Also

convert_phonetics() to convert between any phonetic representations

ipa() to convert from IPA

arpa(), arpabet() and cmu() to convert from ARPABET (CMU)

Examples

sampa('%hE"loU')
sampa(c('%hE"loU', "w3`ld"))

sampa('%hE"loU', "arpabet")
sampa(c('%hE"loU', "w3`ld"), "arpabet")

ipa

Convert Between Phonetic Alphabets

v0.1.0
MIT + file LICENSE
Authors
Alexander Rossell Hayes [aut, cre, cph] (<https://orcid.org/0000-0001-9412-0457>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.