mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-01 13:54:20 +00:00
[1.26.08] Fixed --stdout option in "espeak" program was writing to file "stdout".
Fix to UTF-8/8-bit character set recognition. lang=de, more additions to translation rules, changed phoneme name [OI] to [OY]. lang=it, turned of "syntactic doubling" (temporarily?) git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@51 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+4
-4
@@ -183,8 +183,8 @@ static void Write4Bytes(FILE *f, int value)
|
||||
|
||||
|
||||
|
||||
int OpenWavFile(const char *path, int rate)
|
||||
//=========================================
|
||||
int OpenWavFile(char *path, int rate)
|
||||
//===================================
|
||||
{
|
||||
static unsigned char wave_hdr[44] = {
|
||||
'R','I','F','F',0,0,0,0,'W','A','V','E','f','m','t',' ',
|
||||
@@ -197,7 +197,7 @@ int OpenWavFile(const char *path, int rate)
|
||||
if(path[0] == 0)
|
||||
return(0);
|
||||
|
||||
if(path == "stdout")
|
||||
if(strcmp(path,"stdout")==0)
|
||||
f_wavfile = stdout;
|
||||
else
|
||||
f_wavfile = fopen(path,"wb");
|
||||
@@ -220,7 +220,7 @@ static void CloseWavFile(int rate)
|
||||
{
|
||||
unsigned int pos;
|
||||
|
||||
if((f_wavfile==NULL) || (wavefile == "stdout"))
|
||||
if((f_wavfile==NULL) || (f_wavfile == stdout))
|
||||
return;
|
||||
|
||||
fflush(f_wavfile);
|
||||
|
||||
Reference in New Issue
Block a user