|
From: Dietmar S. <die...@gm...> - 2007-07-25 21:09:10
|
Hii,
thanks for your work.
I have downloaded the espeak-1.28-02.zip.
Before the speak.exe was created if have done the following changes:
makefile:
DATADIR=espeak-data
LIBS1=-lstdcxx
speak.cpp
#ifndef PLATFORM_DOS
#ifdef PLATFORM_WINDOWS
#include <windows.h>
#include <winreg.h>
#else
#include <unistd.h>
#endif
#endif
speech.h:
#define PLATFORM_DOS
#define NEED_WCHAR_FUNCTIONS
#define NEED_GETOPT
typedef unsigned int uint32_t;
#define PATHSEP '\\'
//#define USE_PORTAUDIO
wave.h:
#ifndef PLATFORM_DOS
#include "stdint.h"
#endif
New file:
readclause.h
int iswalpha(int c);int iswdigit(int c);int iswalnum(int c);int towlower(int c);int iswupper(int c);int iswlower(int c);int iswspace(int c);int iswpunct(int c);const wchar_t *wcschr(const wchar_t *str, int c);const int wcslen(const wchar_t *str);
float wcstod(const wchar_t *str, wchar_t **tailptr);
int towupper(int c);
readclause.cpp:
After :
#include "speech.h"
#ifdef PLATFORM_DOS
#include "readclause.h"
#endif
before the end of 'ifdef NEED_WCHAR_FUNCTIONS, also for the #endif:
int towupper(int c)
{
if (c < 0x100) return(toupper(c));
if ((c > MAX_WALPHA) || (walpha_tab[c-0x100]!=0xff)) return(c);
return(c - 1); /* we know it is lower so we guess to find upper */
}
#endif
...
In the files:
dictionary.cpp
numbers.cpp
tr_language.cpp
translate.cpp
i have add after
#include "speech.h"
#ifdef PLATFORM_DOS
#include "readclause.h"
#endif
speak.exe produces wave-files and mbrola-phonemes. but the --compile
option did not work.
Regards.
Dietmar
|