Browse Source

Move the klatt methods from synthesize.h to klatt.h.

master
Reece H. Dunn 7 years ago
parent
commit
90d53e145f

+ 1
- 1
src/libespeak-ng/klatt.c View File

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


#include "speech.h" #include "speech.h"
#include "klatt.h"
#include "phoneme.h" #include "phoneme.h"
#include "voice.h" #include "voice.h"
#include "synthesize.h" #include "synthesize.h"
#include "klatt.h"


extern unsigned char *out_ptr; extern unsigned char *out_ptr;
extern unsigned char *out_start; extern unsigned char *out_start;

+ 5
- 1
src/libespeak-ng/klatt.h View File

/* /*
* Copyright (C) 2008 by Jonathan Duddington * Copyright (C) 2008 by Jonathan Duddington
* email: [email protected] * email: [email protected]
* Copyright (C) 2015 Reece H. Dunn
* Copyright (C) 2015-2017 Reece H. Dunn
* *
* Based on a re-implementation by: * Based on a re-implementation by:
* (c) 1993,94 Jon Iles and Nick Ing-Simmons * (c) 1993,94 Jon Iles and Nick Ing-Simmons
DOUBLEX bp_inc; DOUBLEX bp_inc;
} klatt_peaks_t; } klatt_peaks_t;


void KlattInit(void);
void KlattReset(int control);
int Wavegen_Klatt2(int length, int resume, frame_t *fr1, frame_t *fr2);



#ifdef __cplusplus #ifdef __cplusplus
} }

+ 0
- 4
src/libespeak-ng/synthesize.h View File



void InitBreath(void); void InitBreath(void);


void KlattInit(void);
void KlattReset(int control);
int Wavegen_Klatt2(int length, int resume, frame_t *fr1, frame_t *fr2);

#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

+ 4
- 0
src/libespeak-ng/wavegen.c View File

#include "voice.h" #include "voice.h"
#include "synthesize.h" #include "synthesize.h"


#ifdef INCLUDE_KLATT
#include "klatt.h"
#endif

#if HAVE_SONIC_H #if HAVE_SONIC_H
#include "sonic.h" #include "sonic.h"
#endif #endif

Loading…
Cancel
Save