Skip to content

Commit fc90fa2

Browse files
Merge pull request #222980 from sally-baolian/patch-88
Mapping list between X-SAMPA and IPA
2 parents 54d871e + 8cbb72e commit fc90fa2

File tree

3 files changed

+187
-2
lines changed

3 files changed

+187
-2
lines changed
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
The table below shows a mapping relationship between X-SAMPA (Extended Speech Assessment Methods Phonetic Alphabet) and IPA alphabets. The X-SAMPA symbols are shown at left, with the corresponding IPA symbols to the right.
2+
3+
```txt
4+
x-sampa (L) ipa (R)
5+
a a
6+
b b
7+
b_< ɓ
8+
c c
9+
d d
10+
d` ɖ
11+
d_< ɗ
12+
e e
13+
f f
14+
g ɡ
15+
g_< ɠ
16+
h h
17+
h\ ɦ
18+
i i
19+
j j
20+
j\ ʝ
21+
k k
22+
l l
23+
l` ɭ
24+
l\ ɺ
25+
m m
26+
n n
27+
n` ɳ
28+
o o
29+
p p
30+
p\ ɸ
31+
q q
32+
r r
33+
r` ɽ
34+
r\ ɹ
35+
r\` ɻ
36+
s s
37+
s` ʂ
38+
s\ ɕ
39+
t t
40+
t` ʈ
41+
u u
42+
v v
43+
P ʋ
44+
v\ ʋ
45+
w w
46+
x x
47+
x\ ɧ
48+
y y
49+
z z
50+
z` ʐ
51+
z\ ʑ
52+
A ɑ
53+
B β
54+
B\ ʙ
55+
C ç
56+
D ð
57+
E ɛ
58+
F ɱ
59+
G ɣ
60+
G\ ɢ
61+
G\_< ʛ
62+
H ɥ
63+
H\ ʜ
64+
I ɪ
65+
I\ ᵻ
66+
J ɲ
67+
J\ ɟ
68+
J\_< ʄ
69+
K ɬ
70+
K\ ɮ
71+
L ʎ
72+
L\ ʟ
73+
M ɯ
74+
M\ ɰ
75+
N ŋ
76+
N\ ɴ
77+
O ɔ
78+
O\ ʘ
79+
Q ɒ
80+
R ʁ
81+
R\ ʀ
82+
S ʃ
83+
T θ
84+
U ʊ
85+
U\ ᵿ
86+
V ʌ
87+
W ʍ
88+
X χ
89+
X\ ħ
90+
Y ʏ
91+
Z ʒ
92+
. .
93+
" ˈ
94+
% ˌ
95+
_j ʲ
96+
' ʲ
97+
: ː
98+
:\ ˑ
99+
@ ə
100+
@\ ɘ
101+
@` ˞ɚ
102+
{ æ
103+
} ʉ
104+
1 ɨ
105+
2 ø
106+
3 ɜ
107+
3\ ɞ
108+
4 ɾ
109+
5 ɫ
110+
6 ɐ
111+
7 ɤ
112+
8 ɵ
113+
9 œ
114+
& ɶ
115+
? ʔ
116+
?\ ʕ
117+
<\ ʢ
118+
>\ ʡ
119+
^ ꜛ
120+
! ꜜ
121+
!\ ǃ
122+
| |
123+
|\ ǀ
124+
‖ ‖
125+
|\|\ ǁ
126+
=\ ǂ
127+
-\ ‿
128+
_" ̈
129+
_+ ̟
130+
_- ̠
131+
_/ ̌
132+
_0 ̥
133+
= ̩
134+
_= ̩
135+
_> ʼ
136+
_?\ ˤ
137+
_\ ̂
138+
_^ ̯
139+
_} ̚
140+
` ˞
141+
~ ̃
142+
_~ ̃
143+
_A ̘
144+
_a ̺
145+
_B ̏
146+
_B_L ᷅
147+
_c ̜
148+
_d ̪
149+
_e ̴
150+
<F> ↘
151+
_F ̂
152+
_G ˠ
153+
_H ́
154+
_H_T ᷄
155+
_h ʰ
156+
_k ̰
157+
_L ̀`
158+
_l ˡ
159+
_M ̄
160+
_m ̻
161+
_N ̼
162+
_n ⁿ
163+
_O ̹
164+
_o ̞
165+
_q ̙
166+
<R> ↗
167+
_R ̌
168+
_R_F ᷈
169+
_r ̝
170+
_T ̋
171+
_t ̤
172+
_v ̬
173+
_w ʷ
174+
_X ̆
175+
_x ̽
176+
```

articles/cognitive-services/Speech-Service/speech-ssml-phonetic-sets.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ See the sections in this article for the phonemes that are specific to each loca
147147
## zh-TW
148148
[!INCLUDE [zh-TW](./includes/phonetic-sets/text-to-speech/zh-tw.md)]
149149

150+
## Map X-SAMPA to IPA
151+
[!INCLUDE [X-SAMPA](./includes/phonetic-sets/text-to-speech/x-sampa.md)]
150152

151-
***
152153

articles/cognitive-services/Speech-Service/speech-synthesis-markup-pronunciation.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Usage of the `phoneme` element's attributes are described in the following table
3131

3232
| Attribute | Description | Required or optional |
3333
| ---------- | ---------- | ---------- |
34-
| `alphabet` | The phonetic alphabet to use when you synthesize the pronunciation of the string in the `ph` attribute. The string that specifies the alphabet must be specified in lowercase letters. The following options are the possible alphabets that you can specify:<ul><li>`ipa` &ndash; See [SSML phonetic alphabets](speech-ssml-phonetic-sets.md)</li><li>`sapi` &ndash; See [SSML phonetic alphabets](speech-ssml-phonetic-sets.md)</li><li>`ups` &ndash; See [Universal Phone Set](https://documentation.help/Microsoft-Speech-Platform-SDK-11/17509a49-cae7-41f5-b61d-07beaae872ea.htm)</li></ul><br>The alphabet applies only to the `phoneme` in the element. | Optional |
34+
| `alphabet` | The phonetic alphabet to use when you synthesize the pronunciation of the string in the `ph` attribute. The string that specifies the alphabet must be specified in lowercase letters. The following options are the possible alphabets that you can specify:<ul><li>`ipa` &ndash; See [SSML phonetic alphabets](speech-ssml-phonetic-sets.md)</li><li>`sapi` &ndash; See [SSML phonetic alphabets](speech-ssml-phonetic-sets.md)</li><li>`ups` &ndash; See [Universal Phone Set](https://documentation.help/Microsoft-Speech-Platform-SDK-11/17509a49-cae7-41f5-b61d-07beaae872ea.htm)</li><li>`x-sampa` &ndash; See [SSML phonetic alphabets](speech-ssml-phonetic-sets.md#map-x-sampa-to-ipa)</li></ul><br>The alphabet applies only to the `phoneme` in the element. | Optional |
3535
| `ph` | A string containing phones that specify the pronunciation of the word in the `phoneme` element. If the specified string contains unrecognized phones, text-to-speech rejects the entire SSML document and produces none of the speech output specified in the document.<br/><br/>For `ipa`, to stress one syllable by placing stress symbol before this syllable, you need to mark all syllables for the word. Or else, the syllable before this stress symbol will be stressed. For `sapi`, if you want to stress one syllable, you need to place the stress symbol after this syllable, whether or not all syllables of the word are marked.| Required |
3636

3737
### phoneme examples
@@ -68,6 +68,14 @@ The supported values for attributes of the `phoneme` element were [described pre
6868
</speak>
6969
```
7070

71+
```xml
72+
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US">
73+
<voice name="en-US-JennyNeural">
74+
<phoneme alphabet='x-sampa' ph='he."lou'>hello</phoneme>
75+
</voice>
76+
</speak>
77+
```
78+
7179
## Custom lexicon
7280

7381
You can define how single entities (such as company, a medical term, or an emoji) are read in SSML by using the [phoneme](#phoneme-element) and [sub](#sub-element) elements. To define how multiple entities are read, create an XML structured custom lexicon file. Then you upload the custom lexicon XML file and reference it with the SSML `lexicon` element.

0 commit comments

Comments
 (0)