mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-05 06:45:39 +00:00
[1.47.05]
Fix: [v] sound missing in French voice. Fix: command-line -w '' caused crash. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@339 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+12
-5
@@ -24,6 +24,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#ifndef PLATFORM_DOS
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
@@ -243,16 +244,22 @@ static int OpenWaveFile(const char *path, int rate)
|
||||
if(path == NULL)
|
||||
return(2);
|
||||
|
||||
if(strcmp(path,"stdout")==0)
|
||||
while(isspace(*path)) path++;
|
||||
|
||||
f_wave = NULL;
|
||||
if(path[0] != 0)
|
||||
{
|
||||
if(strcmp(path,"stdout")==0)
|
||||
{
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
// prevent Windows adding 0x0d before 0x0a bytes
|
||||
_setmode(_fileno(stdout), _O_BINARY);
|
||||
_setmode(_fileno(stdout), _O_BINARY);
|
||||
#endif
|
||||
f_wave = stdout;
|
||||
f_wave = stdout;
|
||||
}
|
||||
else
|
||||
f_wave = fopen(path,"wb");
|
||||
}
|
||||
else
|
||||
f_wave = fopen(path,"wb");
|
||||
|
||||
if(f_wave != NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user