Jarbas commited on
Commit
65bf71e
·
verified ·
1 Parent(s): 4a201a1

ghananlpcommunity__nano-twi: Ghana NLP community mirror with corrected config, licence carried

Browse files
ghananlpcommunity__nano-twi/LICENSE ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ This model is redistributed under the MIT licence stated by the
2
+ source repository https://huggingface.co/ghananlpcommunity/nano-twi.
3
+
4
+ The weights are unchanged. config.json drops two token ids the graph has no rows
5
+ for; see README.md.
ghananlpcommunity__nano-twi/README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - tw
5
+ tags:
6
+ - text-to-speech
7
+ - onnx
8
+ - matcha-tts
9
+ - phoonnx
10
+ base_model: ghananlpcommunity/nano-twi
11
+ ---
12
+
13
+ # nano-twi, for phoonnx
14
+
15
+ Matcha-TTS acoustic model plus the Vocos vocoder it ships with, both unchanged
16
+ from ghananlpcommunity/nano-twi. `model.onnx` is `sherpa-onnx/twi_ep045_steps2.onnx`, `vocoder.onnx`
17
+ is `sherpa-onnx/vocos-22khz-univ.onnx`.
18
+
19
+ ## What changed, and why
20
+
21
+ The upstream `tokens.txt` declares 180 ids, 0 to 179. The encoder embedding
22
+ holds 178 rows. The last two entries are `^` and `$`, the start and
23
+ end markers the sherpa exporter appends, and sending either one stops
24
+ onnxruntime with `indices element out of data bounds, idx=178 must be within
25
+ the inclusive range [-178,177]`.
26
+
27
+ `config.json` here carries the other 178 entries and nothing else.
28
+ `tokens.txt` is kept as published, for reference.
29
+
30
+ ## Checked
31
+
32
+ | asked | heard by ghana-speech-phoneme-asr |
33
+ | --- | --- |
34
+ | "Akwaaba, wo ho te sɛn?" | `akʰaabawɔhotʰesɛɲe.` |
35
+ | "Me da wo ase paa." | `medawɔasepʰaam.` |
36
+
37
+ ## Licence
38
+
39
+ mit, from the source repository
40
+ [ghananlpcommunity/nano-twi](https://huggingface.co/ghananlpcommunity/nano-twi).
ghananlpcommunity__nano-twi/config.json ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "phoneme_type": "espeak",
3
+ "alphabet": "ipa",
4
+ "lang_code": "lfn",
5
+ "engine": "matcha",
6
+ "num_symbols": 178,
7
+ "num_speakers": 1,
8
+ "audio": {
9
+ "sample_rate": 22050
10
+ },
11
+ "inference": {
12
+ "temperature": 0.667,
13
+ "length_scale": 1.0
14
+ },
15
+ "phoonnx_version": "1.0",
16
+ "phoneme_id_map": {
17
+ "_": 0,
18
+ ";": 1,
19
+ ":": 2,
20
+ ",": 3,
21
+ ".": 4,
22
+ "!": 5,
23
+ "?": 6,
24
+ "¡": 7,
25
+ "¿": 8,
26
+ "—": 9,
27
+ "…": 10,
28
+ "\"": 11,
29
+ "«": 12,
30
+ "»": 13,
31
+ "“": 14,
32
+ "”": 15,
33
+ " ": 16,
34
+ "A": 17,
35
+ "B": 18,
36
+ "C": 19,
37
+ "D": 20,
38
+ "E": 21,
39
+ "F": 22,
40
+ "G": 23,
41
+ "H": 24,
42
+ "I": 25,
43
+ "J": 26,
44
+ "K": 27,
45
+ "L": 28,
46
+ "M": 29,
47
+ "N": 30,
48
+ "O": 31,
49
+ "P": 32,
50
+ "Q": 33,
51
+ "R": 34,
52
+ "S": 35,
53
+ "T": 36,
54
+ "U": 37,
55
+ "V": 38,
56
+ "W": 39,
57
+ "X": 40,
58
+ "Y": 41,
59
+ "Z": 42,
60
+ "a": 43,
61
+ "b": 44,
62
+ "c": 45,
63
+ "d": 46,
64
+ "e": 47,
65
+ "f": 48,
66
+ "g": 49,
67
+ "h": 50,
68
+ "i": 51,
69
+ "j": 52,
70
+ "k": 53,
71
+ "l": 54,
72
+ "m": 55,
73
+ "n": 56,
74
+ "o": 57,
75
+ "p": 58,
76
+ "q": 59,
77
+ "r": 60,
78
+ "s": 61,
79
+ "t": 62,
80
+ "u": 63,
81
+ "v": 64,
82
+ "w": 65,
83
+ "x": 66,
84
+ "y": 67,
85
+ "z": 68,
86
+ "ɑ": 69,
87
+ "ɐ": 70,
88
+ "ɒ": 71,
89
+ "æ": 72,
90
+ "ɓ": 73,
91
+ "ʙ": 74,
92
+ "β": 75,
93
+ "ɔ": 76,
94
+ "ɕ": 77,
95
+ "ç": 78,
96
+ "ɗ": 79,
97
+ "ɖ": 80,
98
+ "ð": 81,
99
+ "ʤ": 82,
100
+ "ə": 83,
101
+ "ɘ": 84,
102
+ "ɚ": 85,
103
+ "ɛ": 86,
104
+ "ɜ": 87,
105
+ "ɝ": 88,
106
+ "ɞ": 89,
107
+ "ɟ": 90,
108
+ "ʄ": 91,
109
+ "ɡ": 92,
110
+ "ɠ": 93,
111
+ "ɢ": 94,
112
+ "ʛ": 95,
113
+ "ɦ": 96,
114
+ "ɧ": 97,
115
+ "ħ": 98,
116
+ "ɥ": 99,
117
+ "ʜ": 100,
118
+ "ɨ": 101,
119
+ "ɪ": 102,
120
+ "ʝ": 103,
121
+ "ɭ": 104,
122
+ "ɬ": 105,
123
+ "ɫ": 106,
124
+ "ɮ": 107,
125
+ "ʟ": 108,
126
+ "ɱ": 109,
127
+ "ɯ": 110,
128
+ "ɰ": 111,
129
+ "ŋ": 112,
130
+ "ɳ": 113,
131
+ "ɲ": 114,
132
+ "ɴ": 115,
133
+ "ø": 116,
134
+ "ɵ": 117,
135
+ "ɸ": 118,
136
+ "θ": 119,
137
+ "œ": 120,
138
+ "ɶ": 121,
139
+ "ʘ": 122,
140
+ "ɹ": 123,
141
+ "ɺ": 124,
142
+ "ɾ": 125,
143
+ "ɻ": 126,
144
+ "ʀ": 127,
145
+ "ʁ": 128,
146
+ "ɽ": 129,
147
+ "ʂ": 130,
148
+ "ʃ": 131,
149
+ "ʈ": 132,
150
+ "ʧ": 133,
151
+ "ʉ": 134,
152
+ "ʊ": 135,
153
+ "ʋ": 136,
154
+ "ⱱ": 137,
155
+ "ʌ": 138,
156
+ "ɣ": 139,
157
+ "ɤ": 140,
158
+ "ʍ": 141,
159
+ "χ": 142,
160
+ "ʎ": 143,
161
+ "ʏ": 144,
162
+ "ʑ": 145,
163
+ "ʐ": 146,
164
+ "ʒ": 147,
165
+ "ʔ": 148,
166
+ "ʡ": 149,
167
+ "ʕ": 150,
168
+ "ʢ": 151,
169
+ "ǀ": 152,
170
+ "ǁ": 153,
171
+ "ǂ": 154,
172
+ "ǃ": 155,
173
+ "ˈ": 156,
174
+ "ˌ": 157,
175
+ "ː": 158,
176
+ "ˑ": 159,
177
+ "ʼ": 160,
178
+ "ʴ": 161,
179
+ "ʰ": 162,
180
+ "ʱ": 163,
181
+ "ʲ": 164,
182
+ "ʷ": 165,
183
+ "ˠ": 166,
184
+ "ˤ": 167,
185
+ "˞": 168,
186
+ "↓": 169,
187
+ "↑": 170,
188
+ "→": 171,
189
+ "↗": 172,
190
+ "↘": 173,
191
+ "": 174,
192
+ "̩": 175,
193
+ "'": 176,
194
+ "ᵻ": 177
195
+ }
196
+ }
ghananlpcommunity__nano-twi/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbc849d5d508f207b66c9c81ee53434af0f1350714f14e862b25d3f476cc987a
3
+ size 73609316
ghananlpcommunity__nano-twi/tokens.txt ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _ 0
2
+ ; 1
3
+ : 2
4
+ , 3
5
+ . 4
6
+ ! 5
7
+ ? 6
8
+ ¡ 7
9
+ ¿ 8
10
+ — 9
11
+ … 10
12
+ " 11
13
+ « 12
14
+ » 13
15
+ “ 14
16
+ ” 15
17
+ 16
18
+ A 17
19
+ B 18
20
+ C 19
21
+ D 20
22
+ E 21
23
+ F 22
24
+ G 23
25
+ H 24
26
+ I 25
27
+ J 26
28
+ K 27
29
+ L 28
30
+ M 29
31
+ N 30
32
+ O 31
33
+ P 32
34
+ Q 33
35
+ R 34
36
+ S 35
37
+ T 36
38
+ U 37
39
+ V 38
40
+ W 39
41
+ X 40
42
+ Y 41
43
+ Z 42
44
+ a 43
45
+ b 44
46
+ c 45
47
+ d 46
48
+ e 47
49
+ f 48
50
+ g 49
51
+ h 50
52
+ i 51
53
+ j 52
54
+ k 53
55
+ l 54
56
+ m 55
57
+ n 56
58
+ o 57
59
+ p 58
60
+ q 59
61
+ r 60
62
+ s 61
63
+ t 62
64
+ u 63
65
+ v 64
66
+ w 65
67
+ x 66
68
+ y 67
69
+ z 68
70
+ ɑ 69
71
+ ɐ 70
72
+ ɒ 71
73
+ æ 72
74
+ ɓ 73
75
+ ʙ 74
76
+ β 75
77
+ ɔ 76
78
+ ɕ 77
79
+ ç 78
80
+ ɗ 79
81
+ ɖ 80
82
+ ð 81
83
+ ʤ 82
84
+ ə 83
85
+ ɘ 84
86
+ ɚ 85
87
+ ɛ 86
88
+ ɜ 87
89
+ ɝ 88
90
+ ɞ 89
91
+ ɟ 90
92
+ ʄ 91
93
+ ɡ 92
94
+ ɠ 93
95
+ ɢ 94
96
+ ʛ 95
97
+ ɦ 96
98
+ ɧ 97
99
+ ħ 98
100
+ ɥ 99
101
+ ʜ 100
102
+ ɨ 101
103
+ ɪ 102
104
+ ʝ 103
105
+ ɭ 104
106
+ ɬ 105
107
+ ɫ 106
108
+ ɮ 107
109
+ ʟ 108
110
+ ɱ 109
111
+ ɯ 110
112
+ ɰ 111
113
+ ŋ 112
114
+ ɳ 113
115
+ ɲ 114
116
+ ɴ 115
117
+ ø 116
118
+ ɵ 117
119
+ ɸ 118
120
+ θ 119
121
+ œ 120
122
+ ɶ 121
123
+ ʘ 122
124
+ ɹ 123
125
+ ɺ 124
126
+ ɾ 125
127
+ ɻ 126
128
+ ʀ 127
129
+ ʁ 128
130
+ ɽ 129
131
+ ʂ 130
132
+ ʃ 131
133
+ ʈ 132
134
+ ʧ 133
135
+ ʉ 134
136
+ ʊ 135
137
+ ʋ 136
138
+ ⱱ 137
139
+ ʌ 138
140
+ ɣ 139
141
+ ɤ 140
142
+ ʍ 141
143
+ χ 142
144
+ ʎ 143
145
+ ʏ 144
146
+ ʑ 145
147
+ ʐ 146
148
+ ʒ 147
149
+ ʔ 148
150
+ ʡ 149
151
+ ʕ 150
152
+ ʢ 151
153
+ ǀ 152
154
+ ǁ 153
155
+ ǂ 154
156
+ ǃ 155
157
+ ˈ 156
158
+ ˌ 157
159
+ ː 158
160
+ ˑ 159
161
+ ʼ 160
162
+ ʴ 161
163
+ ʰ 162
164
+ ʱ 163
165
+ ʲ 164
166
+ ʷ 165
167
+ ˠ 166
168
+ ˤ 167
169
+ ˞ 168
170
+ ↓ 169
171
+ ↑ 170
172
+ → 171
173
+ ↗ 172
174
+ ↘ 173
175
+  174
176
+ ̩ 175
177
+ ' 176
178
+ ᵻ 177
179
+ ^ 178
180
+ $ 179
ghananlpcommunity__nano-twi/vocoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0574a135aa1db2de6e181050db2ec528496cacd4a4701fc5d7faf9f9804c0081
3
+ size 53884024