arpa: Convert phonetic representation from ARPABET (CMU)

Description Usage Arguments Value See Also Examples

View source: R/arpa.R

Description

Converts to IPA or X-SAMPA

Usage

1
2
3
4
5
arpa(x, to = c("ipa", "xsampa"))

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

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

Arguments

x

A phonetic character vector in ARPABET

to

The phonetic alphabet to convert to. Defaults to "ipa". "sampa" is an accepted alias for "xsampa".

Value

A character vector the same length as x

See Also

convert_phonetics() to convert between any phonetic representations

ipa() to convert from IPA

sampa() and xsampa() to convert from X-SAMPA

Examples

1
2
3
4
5
arpa('HH EH L OW')
arpa(c('HH EH L OW', "W ER L D"))

arpa('HH EH L OW', "xsampa")
arpa(c('HH EH L OW', "W ER L D"), "xsampa")

Example output

[1] "hɛloʊ"
[1] "hɛloʊ" "wɝld" 
[1] "hEloU"
[1] "hEloU" "w3`ld"

ipa documentation built on July 2, 2020, 4:14 a.m.

Related to arpa in ipa...