Reece H. Dunn 12 years ago
parent
commit
5e673ec285
7 changed files with 171 additions and 70 deletions
  1. 13
    9
      dictsource/ur_list
  2. 113
    60
      dictsource/ur_rules
  3. 0
    1
      espeak-data/voices/test/ur
  4. 45
    0
      phsource/ph_urdu
  5. BIN
      phsource/ustop/k_asp2.wav
  6. BIN
      phsource/ustop/q2.wav
  7. BIN
      phsource/ustop/q2_i.wav

+ 13
- 9
dictsource/ur_list View File

@@ -1,9 +1,9 @@
// This ur_list file is prepared by Him Prasad Gautam (Kathmandu, Nepal)
// This file is UTF8 encoded
// Spelling to phoneme exceptions for Urdu
// Letter Names, Numbers and exceptional pronounciation of Urdu


// Letter names
// The Letter names
ا alIf
ب be:
پ pe:
@@ -51,14 +51,14 @@
ُ pe:S


// numbers
// The numbers
_0 s'IfaR
_1 'e:k
_2 'do:
_3 t'i:n
_4 c'a:R
_5 p'a:Nc
_6 ch'aI
_6 ch'eh
_7 s'a:t
_8 'a:th
_9 n'aU
@@ -83,9 +83,9 @@ _27 sat:a:'i:s
_28 stha:'i:s
_29 Unt'i:s
_30 t'i:s
_31 ikt'i:s
_31 ikVt'i:s
_32 bat:'i:s
_33 taINt'i:s
_33 t'aINt'i:s
_34 caUNt'i:s
_35 paINt'i:s
_36 chat:'i:s
@@ -93,7 +93,7 @@ _37 saINt'i:s
_38 aRt'i:s
_39 Unta:l'i:s
_40 ca:l'i:s
_41 Ikta:l'i:s
_41 IkVta:l'i:s
_42 baja:l'i:s
_43 te:Nta:l'i:s
_44 cava:l'i:s
@@ -158,6 +158,10 @@ _0M1 Haz'a:R
_0M2 l'a:kh
_0M3 kaR'o:R
_0M4 'aRab
_0M5 'khaRab
_dpt _ISaRI'Ia_

jonathan dZ'Onathan

// Exception of phonemes

پاکستان p'a:k'i:st'a:n

+ 113
- 60
dictsource/ur_rules View File

@@ -1,7 +1,8 @@

// This ur_rules file is written by Him Prasad Gautam (Kathmandu, Nepal).
// This file is UTF8 encoded
// Spelling to phoneme rules for Urdu
// phoneme rules for Urdu
// Letter group - l01: Vowels

.replace
٠ 0
@@ -17,9 +18,10 @@



// vowel signs, alif is silent at start of word if these follow
// vowel signs, alif acts as consonants at start of word if these follow
.L01 َ ِ ُ و ی ع ا


// VOWELS

.group َ
@@ -40,22 +42,25 @@
ُع O

.group ھ
ھ H
ھ HV
ھ (_ H:
ھ (l01 H

.group ا
ا a:
_) ا (L01 // silent before a vowel
_) ا a
_) او u:
_) ای i:
_) ا (L01 // Acts like Consonants if followed by a vowel but is silent.
_) ا a
_) او u:
_) ای i:

.group آ
آ a:


.group ع
ع a:
عا a:
_) ع a
_) ع a


.group و
@@ -63,13 +68,13 @@
وُ u:
وٗ u:
و (L01 v
_) و v
_) و v

.group ی
ی e:
ی (L01 j
ی (_ i:
_) ی j
_) ی j


.group ے // yeh barree
@@ -89,111 +94,148 @@
// CONSONANTS

.group ب
ب b
بھ bh

ب bV
بھ bhV
بھ (L01 bh
ب (L01 b

.group پ
پ p
پھ ph
پ pV
پھ phV
پ (L01 p
پھ (L01 ph


.group ت
ت t
تھ th

ت tV
تھ thV
ت (L01 t
تھ (L01 th

.group ٹ
ٹ t.
ٹھ th.

ٹ t.V
ٹھ th.V
ٹ (L01 t.
ٹھ (L01 th.

.group ث
ث s
ث sV
ث (L01 s

.group ج
ج J
جھ Jh
ج JV
جھ JhV
ج (L01 J
جھ (L01 Jh


.group چ
چ c
چھ ch
چ cV
چھ chV
چ (L01 c
چھ (L01 ch

.group ح
ح H
ح HV
ح (L01 H

.group خ
خ x
خ xV
خ (L01 x

.group د
د d
دھ dh
د dV
دھ dhV
د (L01 d
دھ (L01 dh

.group ڈ
ڈ d.
ڈھ dh.
ڈ d.V
ڈھ dh.V
ڈ (L01 d.
ڈھ (L01 dh.

.group ذ
ذ D
ذ DV
ذ (L01 D

.group ر
ر R
ر RV
ر (L01 R

.group ڑ
ڑ r.
ڑ r.V
ڑ (L01 r.

.group ز
ز z
ز zV
ز (L01 z

.group ژ
ژ Z
ژ ZV
ژ (L01 Z

.group س
س s
س sV
س (L01 s

.group ش
ش S
ش SV
ش (L01 S

.group ص
ص s.
ص s.V
ص (L01 s.

.group ض
ض z
ض zV
ض (L01 z

.group ط
ط t
طھ th
ط tV
طھ thV
ط (L01 t
طھ (L01 th

.group ظ
ظ z.
ظ z.V
ظ (L01 z.

.group غ
غ Q
غ QV
غ (L01 Q

.group ف
ف f
ف fV
ف (L01 f

.group ق
ق q
ق qV
ق (L01 q

.group ک
ک k
کھ kh
ک kV
کھ khV
ک (L01 k
کھ (L01 kh

.group گ
گ g
گھ gh
گ gV
گھ ghV
گ (L01 g
گھ (L01 gh

.group ل
ل l
ل lV
ل (L01 l

.group م
م m
م mV
م (L01 m

.group ن
ن n
ن nV
ن (L01 n

.group ں
ں n // this should nasalize the vowel
@@ -206,10 +248,21 @@
ہ (_ a


// Common symbols

.group
$ do:l@R
, sVkat.Vh // Sakata سکتہ
! f'iJa:ja //Fijaya فجائیہ
; w'ak't'a //Waqfa وقفہ
: r'a:b'tah//Rabtar رابطہ
? saw'a:l'i:ja:n'is'a:nV // Sawaliya Nishan سوالیہ نشان
% f'i:sVd //Fisad فیصد


.group 0xe0a4 // devanagari
0xe0a4 _^_HI // switch to hindi voice
0xe0a4 _^_NE // switch to Nepali voice
.group 0xe0a5 // devanagari
0xe0a5 _^_HI
0xe0a5 _^_NE

.group
$ do:l@R

+ 0
- 1
espeak-data/voices/test/ur View File

@@ -1,6 +1,5 @@
name urdu-test
language ur

phonemes hi
stressrule 6


+ 45
- 0
phsource/ph_urdu View File

@@ -0,0 +1,45 @@
//====================================================
// Phonemes adjusted for Urdu by Him Prasad Gautam.
//====================================================


phoneme : // Lengthen the previous vowel by "length"
virtual
length 120
endphoneme

phoneme @
vowel flag1 starttype #@ endtype #@
length 130

ChangeIfDiminished(@-)
IF nextPh(H) THEN
FMT(vowel/@_low)
ENDIF
FMT(vowel/@_bck)
endphoneme


phoneme V
vowel flag1 starttype #@ endtype #@
length 150
CALL hi/V
endphoneme


phoneme @2
vowel flag1 starttype #@ endtype #@
length 150
FMT(vowel/@_low)
endphoneme

phoneme @3
vowel flag1 starttype #@ endtype #@
length 150
ChangeIfDiminished(@-)
FMT(vowel/@_3)
endphoneme


//====================================================
// The rest Phonemes are inherted from Hindi.

BIN
phsource/ustop/k_asp2.wav View File


BIN
phsource/ustop/q2.wav View File


BIN
phsource/ustop/q2_i.wav View File


Loading…
Cancel
Save