From 9d12d23d2a8c5eae51827210680ce667df1a6435 Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Sat, 10 Mar 2018 07:49:04 +0200 Subject: [PATCH] headers: add new file intonation.h with declarations of functions in intonation.c --- src/libespeak-ng/intonation.c | 2 ++ src/libespeak-ng/intonation.h | 38 +++++++++++++++++++++++++++++++++++ src/libespeak-ng/synthesize.c | 2 ++ src/libespeak-ng/translate.h | 1 - 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src/libespeak-ng/intonation.h diff --git a/src/libespeak-ng/intonation.c b/src/libespeak-ng/intonation.c index 0cd19bc2..1b5a1c08 100644 --- a/src/libespeak-ng/intonation.c +++ b/src/libespeak-ng/intonation.c @@ -28,6 +28,8 @@ #include #include +#include "intonation.h" + #include "phoneme.h" #include "voice.h" #include "synthesize.h" diff --git a/src/libespeak-ng/intonation.h b/src/libespeak-ng/intonation.h new file mode 100644 index 00000000..98f4bbf7 --- /dev/null +++ b/src/libespeak-ng/intonation.h @@ -0,0 +1,38 @@ +/* + * 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: . + */ + +#ifndef ESPEAK_NG_INTONATION_H +#define ESPEAK_NG_INTONATION_H + +#include "translate.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + +void CalcPitches(Translator *tr, int clause_type); + +#ifdef __cplusplus +} +#endif + +#endif + diff --git a/src/libespeak-ng/synthesize.c b/src/libespeak-ng/synthesize.c index 194d5343..775aaa7e 100644 --- a/src/libespeak-ng/synthesize.c +++ b/src/libespeak-ng/synthesize.c @@ -32,6 +32,8 @@ #include #include +#include "intonation.h" + #include "phoneme.h" #include "voice.h" #include "synthesize.h" diff --git a/src/libespeak-ng/translate.h b/src/libespeak-ng/translate.h index 7dfccc9d..62c9bf36 100644 --- a/src/libespeak-ng/translate.h +++ b/src/libespeak-ng/translate.h @@ -743,7 +743,6 @@ void ApplySpecialAttribute2(Translator *tr, char *phonemes, int dict_flags); void AppendPhonemes(Translator *tr, char *string, int size, const char *ph); void CalcLengths(Translator *tr); -void CalcPitches(Translator *tr, int clause_tone); int RemoveEnding(Translator *tr, char *word, int end_type, char *word_copy); int Unpronouncable(Translator *tr, char *word, int posn);