mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
headers: add new file readclause.h with declarations of functions in readclause.c
This commit is contained in:
@@ -35,6 +35,8 @@
|
||||
#include <espeak-ng/speak_lib.h>
|
||||
#include <espeak-ng/encoding.h>
|
||||
|
||||
#include "readclause.h"
|
||||
|
||||
#include "error.h"
|
||||
#include "phoneme.h"
|
||||
#include "voice.h"
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
#include <espeak-ng/speak_lib.h>
|
||||
#include <espeak-ng/encoding.h>
|
||||
|
||||
#include "readclause.h"
|
||||
|
||||
#include "error.h"
|
||||
#include "speech.h"
|
||||
#include "phoneme.h"
|
||||
|
||||
@@ -31,6 +31,8 @@
|
||||
#include <espeak-ng/speak_lib.h>
|
||||
#include <espeak-ng/encoding.h>
|
||||
|
||||
#include "readclause.h"
|
||||
|
||||
#include "speech.h"
|
||||
#include "phoneme.h"
|
||||
#include "voice.h"
|
||||
|
||||
@@ -31,6 +31,8 @@
|
||||
#include <espeak-ng/speak_lib.h>
|
||||
#include <espeak-ng/encoding.h>
|
||||
|
||||
#include "readclause.h"
|
||||
|
||||
#include "phoneme.h"
|
||||
#include "voice.h"
|
||||
#include "synthesize.h"
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
#include <espeak-ng/encoding.h>
|
||||
#include <ucd/ucd.h>
|
||||
|
||||
#include "readclause.h"
|
||||
|
||||
#include "error.h"
|
||||
#include "speech.h"
|
||||
#include "phoneme.h"
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright (C) 2005 to 2015 by Jonathan Duddington
|
||||
* email: jonsd@users.sourceforge.net
|
||||
* Copyright (C) 2015-2018 Reece H. Dunn
|
||||
* Copyright (C) 2018 Juho Hiltunen
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see: <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef ESPEAK_NG_READCLAUSE_H
|
||||
#define ESPEAK_NG_READCLAUSE_H
|
||||
|
||||
#include "translate.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
int type;
|
||||
int parameter[N_SPEECH_PARAM];
|
||||
} PARAM_STACK;
|
||||
|
||||
extern PARAM_STACK param_stack[];
|
||||
extern const int param_defaults[N_SPEECH_PARAM];
|
||||
|
||||
int clause_type_from_codepoint(uint32_t c);
|
||||
int towlower2(unsigned int c); // Supports Turkish I
|
||||
int Eof(void);
|
||||
const char *WordToString2(unsigned int word);
|
||||
int Read4Bytes(FILE *f);
|
||||
int LoadSoundFile2(const char *fname);
|
||||
int AddNameData(const char *name,
|
||||
int wide);
|
||||
int ReadClause(Translator *tr,
|
||||
char *buf,
|
||||
short *charix,
|
||||
int *charix_top,
|
||||
int n_buf,
|
||||
int *tone_type,
|
||||
char *voice_change);
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
#include <espeak-ng/speak_lib.h>
|
||||
#include <espeak-ng/encoding.h>
|
||||
|
||||
#include "readclause.h"
|
||||
|
||||
#include "phoneme.h"
|
||||
#include "voice.h"
|
||||
#include "synthesize.h"
|
||||
|
||||
@@ -48,6 +48,8 @@
|
||||
#include <espeak-ng/speak_lib.h>
|
||||
#include <espeak-ng/encoding.h>
|
||||
|
||||
#include "readclause.h"
|
||||
|
||||
#include "speech.h"
|
||||
#include "phoneme.h"
|
||||
#include "voice.h"
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
#include <espeak-ng/encoding.h>
|
||||
#include <ucd/ucd.h>
|
||||
|
||||
#include "readclause.h"
|
||||
|
||||
#include "error.h"
|
||||
#include "speech.h"
|
||||
#include "phoneme.h"
|
||||
|
||||
@@ -62,11 +62,6 @@ typedef struct {
|
||||
#define HTML_NOSPACE 16 // don't insert a space for this element, so it doesn't break a word
|
||||
#define SSML_CLOSE 0x20 // for a closing tag, OR this with the tag type
|
||||
|
||||
int LoadSoundFile2(const char *fname);
|
||||
|
||||
int AddNameData(const char *name,
|
||||
int wide);
|
||||
|
||||
int ProcessSsmlTag(wchar_t *xml_buf,
|
||||
char *outbuf,
|
||||
int *outix,
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
#include <espeak-ng/speak_lib.h>
|
||||
#include <espeak-ng/encoding.h>
|
||||
|
||||
#include "readclause.h"
|
||||
|
||||
#include "speech.h"
|
||||
#include "phoneme.h"
|
||||
#include "voice.h"
|
||||
|
||||
@@ -31,6 +31,8 @@
|
||||
#include <espeak-ng/speak_lib.h>
|
||||
#include <espeak-ng/encoding.h>
|
||||
|
||||
#include "readclause.h"
|
||||
|
||||
#include "error.h"
|
||||
#include "speech.h"
|
||||
#include "phoneme.h"
|
||||
|
||||
@@ -513,7 +513,6 @@ int SelectPhonemeTableName(const char *name);
|
||||
int FormantTransition2(frameref_t *seq, int *n_frames, unsigned int data1, unsigned int data2, PHONEME_TAB *other_ph, int which);
|
||||
|
||||
void Write4Bytes(FILE *f, int value);
|
||||
int Read4Bytes(FILE *f);
|
||||
int Reverse4Bytes(int word);
|
||||
|
||||
#if HAVE_SONIC_H
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
#include <espeak-ng/speak_lib.h>
|
||||
#include <espeak-ng/encoding.h>
|
||||
|
||||
#include "readclause.h"
|
||||
|
||||
#include "speech.h"
|
||||
#include "phoneme.h"
|
||||
#include "voice.h"
|
||||
|
||||
@@ -246,8 +246,6 @@ extern "C"
|
||||
#define CLAUSE_COLON (30 | CLAUSE_INTONATION_FULL_STOP | CLAUSE_TYPE_CLAUSE)
|
||||
#define CLAUSE_SEMICOLON (30 | CLAUSE_INTONATION_COMMA | CLAUSE_TYPE_CLAUSE)
|
||||
|
||||
int clause_type_from_codepoint(uint32_t c);
|
||||
|
||||
//@}
|
||||
|
||||
#define SAYAS_CHARS 0x12
|
||||
@@ -277,14 +275,6 @@ typedef struct {
|
||||
unsigned char length;
|
||||
} WORD_TAB;
|
||||
|
||||
typedef struct {
|
||||
int type;
|
||||
int parameter[N_SPEECH_PARAM];
|
||||
} PARAM_STACK;
|
||||
|
||||
extern PARAM_STACK param_stack[];
|
||||
extern const int param_defaults[N_SPEECH_PARAM];
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
||||
int offset;
|
||||
@@ -711,7 +701,6 @@ int utf8_nbytes(const char *buf);
|
||||
|
||||
int lookupwchar(const unsigned short *list, int c);
|
||||
int lookupwchar2(const unsigned short *list, int c);
|
||||
int Eof(void);
|
||||
char *strchr_w(const char *s, int c);
|
||||
int IsBracket(int c);
|
||||
void InitNamedata(void);
|
||||
@@ -723,9 +712,7 @@ int IsAlpha(unsigned int c);
|
||||
int IsVowel(Translator *tr, int c);
|
||||
int IsSuperscript(int letter);
|
||||
int isspace2(unsigned int c);
|
||||
int towlower2(unsigned int c); // Supports Turkish I
|
||||
const char *GetTranslatedPhonemeString(int phoneme_mode);
|
||||
const char *WordToString2(unsigned int word);
|
||||
ALPHABET *AlphabetFromChar(int c);
|
||||
|
||||
Translator *SelectTranslator(const char *name);
|
||||
@@ -764,7 +751,6 @@ void SetWordStress(Translator *tr, char *output, unsigned int *dictionary_flags,
|
||||
int TranslateRules(Translator *tr, char *p, char *phonemes, int size, char *end_phonemes, int end_flags, unsigned int *dict_flags);
|
||||
int TranslateWord(Translator *tr, char *word1, WORD_TAB *wtab, char *word_out);
|
||||
void TranslateClause(Translator *tr, int *tone, char **voice_change);
|
||||
int ReadClause(Translator *tr, char *buf, short *charix, int *charix_top, int n_buf, int *tone_type, char *voice_change);
|
||||
|
||||
void SetVoiceStack(espeak_VOICE *v, const char *variant_name);
|
||||
void InterpretPhoneme(Translator *tr, int control, PHONEME_LIST *plist, PHONEME_DATA *phdata, WORD_PH_DATA *worddata);
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
#include <espeak-ng/speak_lib.h>
|
||||
#include <espeak-ng/encoding.h>
|
||||
|
||||
#include "readclause.h"
|
||||
|
||||
#include "speech.h"
|
||||
#include "phoneme.h"
|
||||
#include "voice.h"
|
||||
|
||||
Reference in New Issue
Block a user