Browse Source

headers: add new file synthdata.h with declarations of functions in synthdata.c

master
Juho Hiltunen 7 years ago
parent
commit
07160f9286

+ 1
- 0
src/libespeak-ng/dictionary.c View File

#include <espeak-ng/encoding.h> #include <espeak-ng/encoding.h>


#include "readclause.h" #include "readclause.h"
#include "synthdata.h"


#include "speech.h" #include "speech.h"
#include "phoneme.h" #include "phoneme.h"

+ 1
- 0
src/libespeak-ng/phonemelist.c View File

#include <espeak-ng/encoding.h> #include <espeak-ng/encoding.h>


#include "phonemelist.h" #include "phonemelist.h"
#include "synthdata.h"


#include "phoneme.h" #include "phoneme.h"
#include "voice.h" #include "voice.h"

+ 1
- 0
src/libespeak-ng/setlengths.c View File



#include "readclause.h" #include "readclause.h"
#include "setlengths.h" #include "setlengths.h"
#include "synthdata.h"


#include "phoneme.h" #include "phoneme.h"
#include "voice.h" #include "voice.h"

+ 1
- 0
src/libespeak-ng/synth_mbrola.c View File

#include <espeak-ng/encoding.h> #include <espeak-ng/encoding.h>


#include "readclause.h" #include "readclause.h"
#include "synthdata.h"


#include "speech.h" #include "speech.h"
#include "phoneme.h" #include "phoneme.h"

+ 1
- 0
src/libespeak-ng/synthdata.c View File

#include <espeak-ng/encoding.h> #include <espeak-ng/encoding.h>


#include "readclause.h" #include "readclause.h"
#include "synthdata.h"


#include "error.h" #include "error.h"
#include "speech.h" #include "speech.h"

+ 44
- 0
src/libespeak-ng/synthdata.h View File

/*
* Copyright (C) 2005 to 2015 by Jonathan Duddington
* email: [email protected]
* 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_SYNTHDATA_H
#define ESPEAK_NG_SYNTHDATA_H

#include "translate.h"

#ifdef __cplusplus
extern "C"
{
#endif

// forward declare these to avoid including the whole synthesize.h
struct PHONEME_LIST;
struct PHONEME_DATA;
struct WORD_PH_DATA;

void InterpretPhoneme(Translator *tr, int control, PHONEME_LIST *plist, PHONEME_DATA *phdata, WORD_PH_DATA *worddata);
void InterpretPhoneme2(int phcode, PHONEME_DATA *phdata);

#ifdef __cplusplus
}
#endif

#endif


+ 1
- 0
src/libespeak-ng/synthesize.c View File



#include "intonation.h" #include "intonation.h"
#include "setlengths.h" #include "setlengths.h"
#include "synthdata.h"


#include "phoneme.h" #include "phoneme.h"
#include "voice.h" #include "voice.h"

+ 0
- 2
src/libespeak-ng/translate.h View File

void TranslateClause(Translator *tr, int *tone, char **voice_change); void TranslateClause(Translator *tr, int *tone, char **voice_change);


void SetVoiceStack(espeak_VOICE *v, const char *variant_name); 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);
void InterpretPhoneme2(int phcode, PHONEME_DATA *phdata);
char *WritePhMnemonic(char *phon_out, PHONEME_TAB *ph, PHONEME_LIST *plist, int use_ipa, int *flags); char *WritePhMnemonic(char *phon_out, PHONEME_TAB *ph, PHONEME_LIST *plist, int use_ipa, int *flags);


extern FILE *f_trans; // for logging extern FILE *f_trans; // for logging

Loading…
Cancel
Save