Option --stdout, include a fake length for the RIFF length as well as the data length. Fix option -k2 with <say-as>. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@175 d46cf337-b52f-0410-862d-fd96e6ae7743master
Dictionary ko_dict | Dictionary ko_dict | ||||
a e E i ji o u u- | |||||
V | |||||
a E i V | |||||
b c C c` ch d dZ g | |||||
h j J k k` kh l m | |||||
n N p p` ph r s S; | |||||
s` t t` th w | |||||
- b c C d dZ g h | |||||
j J k l m n N p | |||||
r s S; t w | |||||
Dictionary hbs_dict | Dictionary hbs_dict | ||||
Dictionary rw_dict | Dictionary rw_dict | ||||
a e i o u | |||||
a e: i i: o: u: | |||||
* : b B c d dZ f | * : b B c d dZ f | ||||
g h j J k l m n | g h j J k l m n |
skies skaIz | skies skaIz | ||||
skied ski:d | skied ski:d | ||||
skua sku:@ | skua sku:@ | ||||
slavish sleIvIS | |||||
snooker snu:k3 | snooker snu:k3 | ||||
society s@saI@tI2 | society s@saI@tI2 | ||||
sofa soUf@ | sofa soUf@ | ||||
stagnate $2 | stagnate $2 | ||||
stampede $2 | stampede $2 | ||||
strychnine str'Ikni:n | strychnine str'Ikni:n | ||||
slavish sleIvIS | |||||
?3 status stat@s | ?3 status stat@s | ||||
sterile stEraIl | sterile stEraIl | ||||
stomata stoUm@t@ | stomata stoUm@t@ | ||||
Harare h@rA:rI | Harare h@rA:rI | ||||
Hanoi han'OI | Hanoi han'OI | ||||
Hawaii h@w'aIi: | Hawaii h@w'aIi: | ||||
Hawai'i h@w'aIi: | |||||
Hawaiian h@w'aI@n | Hawaiian h@w'aI@n | ||||
Hebrew hi:bru: | Hebrew hi:bru: | ||||
Hebrides hEbr@di:z | Hebrides hEbr@di:z | ||||
now $verbf | now $verbf | ||||
soon $verbf | soon $verbf | ||||
still $verbf | still $verbf | ||||
also $verbf | |||||
already O:lr,EdI2 $verbf $strend2 | already O:lr,EdI2 $verbf $strend2 | ||||
not ,n0t $verbextend $only $strend | not ,n0t $verbextend $only $strend |
j) oh (n 0 | j) oh (n 0 | ||||
oi OI | oi OI | ||||
oia OI@ | oia OI@ | ||||
oi (c_ oUI2 | |||||
oi (c oUI2 | |||||
oi (ce OI | |||||
oi (ck OI | |||||
oi(na_ 'OI | oi(na_ 'OI | ||||
o (ing oU | o (ing oU | ||||
d) o (ing u: | d) o (ing u: | ||||
c) or (e_ o@ | c) or (e_ o@ | ||||
d) or (_ o@ | d) or (_ o@ | ||||
_f) or (@ O@ | _f) or (@ O@ | ||||
_f) ore (A O@ | |||||
f) or (k O@ | f) or (k O@ | ||||
ch) or (d O@ | ch) or (d O@ | ||||
l) or (d O@ | l) or (d O@ | ||||
rea (C% r,i:@ | rea (C% r,i:@ | ||||
_) rea (dC r,i:@ | _) rea (dC r,i:@ | ||||
rea (gen rI2eI | rea (gen rI2eI | ||||
_) re (ali ,ri: | |||||
_) re (alig ,ri: | |||||
_) re (all ,ri: | _) re (all ,ri: | ||||
_) re (au@P2 ,ri: | _) re (au@P2 ,ri: | ||||
re (ck rE | re (ck rE | ||||
_) up (b %Vp | _) up (b %Vp | ||||
_) up (c %Vp | _) up (c %Vp | ||||
_) up (d %Vp | _) up (d %Vp | ||||
_) up (e %Vp | |||||
_) up (g %Vp | _) up (g %Vp | ||||
_) up (h %Vp | _) up (h %Vp | ||||
_) up (se %Vp | _) up (se %Vp |
.group w | .group w | ||||
w w | w w | ||||
x) we 8 | |||||
.group x | .group x | ||||
x x | x x | ||||
xwe xw8 | |||||
.group y | .group y | ||||
y j | y j |
// letters (consonants) | // letters (consonants) | ||||
க் ik | க் ik | ||||
ங் iN | |||||
ங் iNg | |||||
ச் itS | ச் itS | ||||
ஜ் idZ | ஜ் idZ | ||||
ஞ் in^ | ஞ் in^ |
language ku | language ku | ||||
gender male | gender male | ||||
words 1 48 | |||||
//words 1 48 | |||||
49 phoneme tables | |||||
47 phoneme tables | |||||
new total | new total | ||||
base 98 98 | base 98 98 | ||||
base2 24 117 | base2 24 117 | ||||
tr 18 122 | tr 18 122 | ||||
ku 18 122 | ku 18 122 | ||||
id 15 119 | id 15 119 | ||||
rw 15 124 | |||||
ko 18 145 | |||||
Data file Used by | Data file Used by | ||||
b/b [b] base | b/b [b] base | ||||
dzh/xdz_pzd [J] base | dzh/xdz_pzd [J] base | ||||
[J2] hi | [J2] hi | ||||
envelope/i_risefall [11] zh | envelope/i_risefall [11] zh | ||||
envelope/i_risefall2 [+2] rw | |||||
envelope/p_214 [214] zh | envelope/p_214 [214] zh | ||||
envelope/p_512 [8] vi | envelope/p_512 [8] vi | ||||
envelope/p_fall [2] vi | envelope/p_fall [2] vi | ||||
[22] zh | [22] zh | ||||
[33] zh | [33] zh | ||||
[53] zh | [53] zh | ||||
[+] rw | |||||
envelope/p_fallrise [4] vi | envelope/p_fallrise [4] vi | ||||
envelope/p_level [1] vi | envelope/p_level [1] vi | ||||
[3] zhy | [3] zhy | ||||
r3/rz_cs [R^] sk | r3/rz_cs [R^] sk | ||||
[R^/] sk | [R^/] sk | ||||
r3/@tap [**] base | r3/@tap [**] base | ||||
[r] ko | |||||
r3/@tap2 [**] base | r3/@tap2 [**] base | ||||
[r] ko | |||||
r/r [r] base | r/r [r] base | ||||
[r-] base | [r-] base | ||||
[r] en_sc | [r] en_sc | ||||
[s] fr | [s] fr | ||||
[s] es | [s] es | ||||
[s#] pt | [s#] pt | ||||
[s`] ko | |||||
ufric/s_ [s] base | ufric/s_ [s] base | ||||
[z] base | [z] base | ||||
[s2] fi | [s2] fi | ||||
[Z] hr | [Z] hr | ||||
ufric/sh_pzd [S;] base | ufric/sh_pzd [S;] base | ||||
[S;] ro | [S;] ro | ||||
[s`] ko | |||||
ufric/sh_pzd_ [S;] base | ufric/sh_pzd_ [S;] base | ||||
[Z;] base | [Z;] base | ||||
ufric/sh_pzd2 [S] sr | ufric/sh_pzd2 [S] sr | ||||
[k] sk | [k] sk | ||||
[k] el | [k] el | ||||
[k] zhy | [k] zhy | ||||
[k`] ko | |||||
ustop/k_unasp_ [k] zh | ustop/k_unasp_ [k] zh | ||||
ustop/null [?] base | ustop/null [?] base | ||||
ustop/p [p] base | ustop/p [p] base | ||||
[p] la | [p] la | ||||
[p;] ro | [p;] ro | ||||
[p] zh | [p] zh | ||||
[p`] ko | |||||
ustop/p_unasp_ [p] base2 | ustop/p_unasp_ [p] base2 | ||||
[p] fi | [p] fi | ||||
[p] hi | [p] hi | ||||
[p] la | [p] la | ||||
[p;] ro | [p;] ro | ||||
ustop/q [q] base | ustop/q [q] base | ||||
ustop/q_u [q] base | |||||
ustop/t [t] base | ustop/t [t] base | ||||
[t2] en | [t2] en | ||||
[t] fr | [t] fr | ||||
[t;] ro | [t;] ro | ||||
[t[] vi | [t[] vi | ||||
[t] sw | [t] sw | ||||
[t`] ko | |||||
ustop/t_dnt2 [t[] vi | ustop/t_dnt2 [t[] vi | ||||
ustop/t_hi [t] hi | ustop/t_hi [t] hi | ||||
[th] hi | [th] hi | ||||
[c] hu | [c] hu | ||||
ustop/ts_pzd2 [c] hi | ustop/ts_pzd2 [c] hi | ||||
[c] hu | [c] hu | ||||
[c`] ko | |||||
ustop/ts_pzd3 [tS;] hr | ustop/ts_pzd3 [tS;] hr | ||||
[dZ;] hr | [dZ;] hr | ||||
ustop/t_sr [d] sr | ustop/t_sr [d] sr | ||||
vdiph/y#i [Yi] fi | vdiph/y#i [Yi] fi | ||||
vdiph/y#i_2 [Yy] is | vdiph/y#i_2 [Yy] is | ||||
vdiph/yi_fr [w^i] fr | vdiph/yi_fr [w^i] fr | ||||
[ji] ko | |||||
vdiph/y#y [Yy] fi | vdiph/y#y [Yy] fi | ||||
vdiph/y#y_2 [Yy] af | vdiph/y#y_2 [Yy] af | ||||
[eoi] zhy | [eoi] zhy | ||||
[a] it | [a] it | ||||
[a] zh | [a] zh | ||||
[a] id | [a] id | ||||
[a] ko | |||||
vowel/a# [a/] base2 | vowel/a# [a/] base2 | ||||
[a2] en_sc | [a2] en_sc | ||||
[a2] en_wi | [a2] en_wi | ||||
[&] sr | [&] sr | ||||
[&] pt | [&] pt | ||||
[&/] pt | [&/] pt | ||||
[a#] rw | |||||
[a/] rw | |||||
vowel/a_2 [a] base2 | vowel/a_2 [a] base2 | ||||
[a] en_wi | [a] en_wi | ||||
[A:] en_wi | [A:] en_wi | ||||
[a] pt_pt | [a] pt_pt | ||||
[a] ro | [a] ro | ||||
[a:] vi | [a:] vi | ||||
[a] rw | |||||
vowel/a#_2 [&] hr | vowel/a#_2 [&] hr | ||||
[a2] sv | [a2] sv | ||||
[&] is | [&] is | ||||
vowel/aa_7 [A] nl | vowel/aa_7 [A] nl | ||||
vowel/aa_8 [0] en_us | vowel/aa_8 [0] en_us | ||||
[A:] en_us | [A:] en_us | ||||
[V] ko | |||||
vowel/a_en [a] en | vowel/a_en [a] en | ||||
[aa] en | [aa] en | ||||
[A] fr | [A] fr | ||||
[e] grc | [e] grc | ||||
[e] vi | [e] vi | ||||
[e] id | [e] id | ||||
[e] rw | |||||
[e#] rw | |||||
[e] ko | |||||
vowel/e# [I] en_sc | vowel/e# [I] en_sc | ||||
[I2] en_sc | [I2] en_sc | ||||
vowel/e_2 [eI] en_sc | vowel/e_2 [eI] en_sc | ||||
[e] el | [e] el | ||||
[e] sw | [e] sw | ||||
[e] tr | [e] tr | ||||
[E] ko | |||||
vowel/@_fnt [@] en_wi | vowel/@_fnt [@] en_wi | ||||
[@2] en_wi | [@2] en_wi | ||||
[@2] hr | [@2] hr | ||||
[i] zhy | [i] zhy | ||||
[i] zh | [i] zh | ||||
[i] sw | [i] sw | ||||
[i] rw | |||||
[i#] rw | |||||
[i] ko | |||||
vowel/i# [i] en_rp | vowel/i# [i] en_rp | ||||
[y:] cy | [y:] cy | ||||
vowel/i_2 [i:] en_rp | vowel/i_2 [i:] en_rp | ||||
[o] grc | [o] grc | ||||
[o:] sv | [o:] sv | ||||
[o] id | [o] id | ||||
[o] rw | |||||
[o#] rw | |||||
vowel/o_2 [o:] cy | vowel/o_2 [o:] cy | ||||
[o:] hi | [o:] hi | ||||
[o:] hu | [o:] hu | ||||
[o:] la | [o:] la | ||||
[o:] no | [o:] no | ||||
[o] ko | |||||
vowel/o-_2 [V] en_n | vowel/o-_2 [V] en_n | ||||
[V] en_wm | [V] en_wm | ||||
vowel/o_3 [oU] en_sc | vowel/o_3 [oU] en_sc | ||||
[u] pt_pt | [u] pt_pt | ||||
[u] ku | [u] ku | ||||
vowel/u#_6 [u:] en_us | vowel/u#_6 [u:] en_us | ||||
[y] ko | |||||
vowel/u_7 [u] vi | vowel/u_7 [u] vi | ||||
vowel/u#_7 [u#] tr | vowel/u#_7 [u#] tr | ||||
vowel/u_bck [u] base2 | vowel/u_bck [u] base2 | ||||
[u] is | [u] is | ||||
[u] zhy | [u] zhy | ||||
[u] zh | [u] zh | ||||
[u] rw | |||||
[u#] rw | |||||
[u] ko | |||||
vowel/u_bck2 [u:] la | vowel/u_bck2 [u:] la | ||||
vowel/u_fnt [u:] en_rp | vowel/u_fnt [u:] en_rp | ||||
vowel/uu [U] en | vowel/uu [U] en | ||||
[U] pt | [U] pt | ||||
[U] no | [U] no | ||||
[u] zhy | [u] zhy | ||||
vowel/u_unr [u-] ko | |||||
vowel/V [3] en_sc | vowel/V [3] en_sc | ||||
vowel/V_2 [V] en | vowel/V_2 [V] en | ||||
[a] af | [a] af | ||||
[Y] ro | [Y] ro | ||||
[y] vi | [y] vi | ||||
[oe] zhy | [oe] zhy | ||||
[Y] ko | |||||
vowel/y## [y#] is | vowel/y## [y#] is | ||||
vowel/y_2 [y] fr | vowel/y_2 [y] fr | ||||
[y"] fr | [y"] fr |
vowelout f1=1 f2=1700 -100 200 f3=-300 80 f4 rms=35 | vowelout f1=1 f2=1700 -100 200 f3=-300 80 f4 rms=35 | ||||
lengthmod 2 | lengthmod 2 | ||||
wave ustop/q%48 | wave ustop/q%48 | ||||
before (u) ustop/q_u%80 | |||||
before _ ustop/q%40 | before _ ustop/q%40 | ||||
endphoneme | endphoneme | ||||
phonemetable id base2 | phonemetable id base2 | ||||
include ph_indonesian | include ph_indonesian | ||||
phonemetable rw base2 | |||||
include ph_kinyarwanda | |||||
phonemetable ko hi | |||||
include ph_korean |
//=================================== | //=================================== | ||||
{ | { | ||||
static unsigned char wave_hdr[44] = { | static unsigned char wave_hdr[44] = { | ||||
'R','I','F','F',0,0,0,0,'W','A','V','E','f','m','t',' ', | |||||
'R','I','F','F',0x24,0xf0,0xff,0x7f,'W','A','V','E','f','m','t',' ', | |||||
0x10,0,0,0,1,0,1,0, 9,0x3d,0,0,0x12,0x7a,0,0, | 0x10,0,0,0,1,0,1,0, 9,0x3d,0,0,0x12,0x7a,0,0, | ||||
2,0,0x10,0,'d','a','t','a', 0xff,0xff,0xff,0x7f}; | |||||
2,0,0x10,0,'d','a','t','a', 0x00,0xf0,0xff,0x7f}; | |||||
if(path == NULL) | if(path == NULL) | ||||
return(2); | return(2); |
if(iswupper(c1)) | if(iswupper(c1)) | ||||
{ | { | ||||
clause_upper_count++; | clause_upper_count++; | ||||
if((option_capitals == 2) && !iswupper(cprev)) | |||||
if((option_capitals == 2) && (sayas_mode == 0) && !iswupper(cprev)) | |||||
{ | { | ||||
char text_buf[40]; | char text_buf[40]; | ||||
char text_buf2[30]; | char text_buf2[30]; |
static int OpenWaveFile(const char *path, int rate) | static int OpenWaveFile(const char *path, int rate) | ||||
//================================================= | //================================================= | ||||
{ | { | ||||
// Set the length of 0x7fffffff for --stdout | |||||
// Set the length of 0x7ffff000 for --stdout | |||||
// This will be changed to the correct length for -w (write to file) | // This will be changed to the correct length for -w (write to file) | ||||
static unsigned char wave_hdr[44] = { | static unsigned char wave_hdr[44] = { | ||||
'R','I','F','F',0,0,0,0,'W','A','V','E','f','m','t',' ', | |||||
'R','I','F','F',0x24,0xf0,0xff,0x7f,'W','A','V','E','f','m','t',' ', | |||||
0x10,0,0,0,1,0,1,0, 9,0x3d,0,0,0x12,0x7a,0,0, | 0x10,0,0,0,1,0,1,0, 9,0x3d,0,0,0x12,0x7a,0,0, | ||||
2,0,0x10,0,'d','a','t','a', 0xff,0xff,0xff,0x7f}; | |||||
2,0,0x10,0,'d','a','t','a', 0x00,0xf0,0xff,0x7f}; | |||||
if(path == NULL) | if(path == NULL) | ||||
return(2); | return(2); |
#include "translate.h" | #include "translate.h" | ||||
#include "wave.h" | #include "wave.h" | ||||
const char *version_string = "1.36.13 13.Apr.08"; | |||||
const char *version_string = "1.37 16.Apr.08"; | |||||
const int version_phdata = 0x013400; | const int version_phdata = 0x013400; | ||||
int option_device_number = -1; | int option_device_number = -1; |