-
Notifications
You must be signed in to change notification settings - Fork 0
/
sounds.py
93 lines (64 loc) · 1.75 KB
/
sounds.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
'''
Module name: sounds
Date created: 27.12.2020
Contains list of phonemes in Bengali. Sound groups:
vowels/consonants
phonation type-- voiced, voiceless, aspirated
PoA-- labial, denti-alveolar, retroflex, post-alveolar, velar
MoA-- stop, nasal, fricative, semivowel
'''
def list(x):
''' x = input string; output: list of elements in string (separator = " ")'''
l = x.split(" ")
return l
#group names
gs = "vowel consonant voiced voiceless aspirated nasal fricative stop semivowel labial dentialveolar retroflex postalveolar velar"
groups = list(gs)
#vowels
vs = "i ^i ~i ee ^ee E ^E A ^A a oh ^oh u ^u oi ou ^ou aa ^aa"
vowel = list(vs)
#consonants
cs = "k kh g gh ch chh j jh ^n Y sh T Th D Dh rr R tt tth dd ddh n l s p ph b bh m h"
consonant = list(cs)
#all phonemes
ps = cs+" "+vs
phonemes = list(ps)
## Sound groups
#voiced
vois = vs+" g gh j jh ^n Y D Dh n rr R dd ddh l b bh m"
voiced = list(vois)
#voiceless
vls = "k kh ch chh sh T Th tt tth s p ph h"
voiceless = list(vls)
#aspirated
asps = "kh gh chh jh Th Dh tth ddh ph bh"
aspirated = list(asps)
# MoA (manner of articulation) grouping
#nasals
ns = "^i ^ee ^E ^A ^oh ^u ^ou ^aa ^n n m"
nasal = list(ns)
#fricatives
fs = "s sh h"
fricative = list(fs)
#stops
ss = "k kh g gh T Th D Dh tt tth dd ddh p ph b bh"
stop = list(ss)
#semi-vowels
svs = "Y r l"
semivowel = list(svs)
# PoA (place of articulation) grouping
#labial
ls = "p ph b bh m"
labial = list(ls)
#denti-alveolar
ds = "tt tth dd ddh n l s"
dentialveolar = list(ds)
#retroflex
rs = "T Th D Dh"
retroflex = list(rs)
#postalveolar
pas = "ch chh j jh Y sh T Th D Dh"
postalveolar = list(pas)
#velar
ves = "k kh g gh ^n"
velar = list(ves)