| ipa {ipa} | R Documentation |
Convert phonetic representation from IPA
Description
Converts to X-SAMPA or ARPABET (used by the CMU Pronouncing Dictionary)
Usage
ipa(x, to = c("xsampa", "arpabet"))
Arguments
x |
A phonetic character vector in IPA |
to |
The phonetic alphabet to convert to.
Defaults to |
Value
A character vector the same length as x
See Also
convert_phonetics() to convert between any phonetic
representations
sampa() and xsampa() to convert from X-SAMPA
arpa(), arpabet() and cmu() to convert from ARPABET (CMU)
Examples
# `ipa()` supports raw Unicode input or escaped Unicode sequences (\uxxxx),
# but raw Unicode is not supported in R package documentation,
# hence the ugly examples
ipa("\\u02cch\\u025b\\'lo\\u028a")
ipa(c("\\u02cch\\u025b\\'lo\\u028a", "w\\u025dld"))
ipa("\\u02cch\\u025b\\'lo\\u028a", to = "arpabet")
ipa(c("\\u02cch\\u025b\\'lo\\u028a", "w\\u025dld"), to = "arpabet")
[Package ipa version 0.1.0 Index]