|
|
|
|
|
|
|
|
#include <string.h> |
|
|
#include <string.h> |
|
|
#include <wctype.h> |
|
|
#include <wctype.h> |
|
|
#include <wchar.h> |
|
|
#include <wchar.h> |
|
|
|
|
|
#include <assert.h> |
|
|
|
|
|
|
|
|
#include <espeak-ng/espeak_ng.h> |
|
|
#include <espeak-ng/espeak_ng.h> |
|
|
#include <espeak-ng/speak_lib.h> |
|
|
#include <espeak-ng/speak_lib.h> |
|
|
|
|
|
|
|
|
int dict_flags0 = 0; |
|
|
int dict_flags0 = 0; |
|
|
MatchRecord match1; |
|
|
MatchRecord match1; |
|
|
MatchRecord match2; |
|
|
MatchRecord match2; |
|
|
char ph_buf[40]; |
|
|
|
|
|
|
|
|
char ph_buf[N_PHONEME_BYTES]; |
|
|
char word_copy[N_WORD_BYTES]; |
|
|
char word_copy[N_WORD_BYTES]; |
|
|
static const char str_pause[2] = { phonPAUSE_NOLINK, 0 }; |
|
|
static const char str_pause[2] = { phonPAUSE_NOLINK, 0 }; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
phonetic[0] = 0; |
|
|
phonetic[0] = 0; |
|
|
phoneme_len = 0; |
|
|
phoneme_len = 0; |
|
|
} else { |
|
|
} else { |
|
|
strcpy(phonetic, p); |
|
|
|
|
|
phoneme_len = strlen(p); |
|
|
phoneme_len = strlen(p); |
|
|
|
|
|
assert(phoneme_len < N_PHONEME_BYTES); |
|
|
|
|
|
strcpy(phonetic, p); |
|
|
p += (phoneme_len + 1); |
|
|
p += (phoneme_len + 1); |
|
|
} |
|
|
} |
|
|
|
|
|
|