Learn R Programming

ipa (version 0.1.0)

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

Run this code
# NOT RUN {
sampa('%hE"loU')
sampa(c('%hE"loU', "w3`ld"))

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

Run the code above in your browser using DataLab