Browse Source

tests: build with klatt and speechplayer (#1557)

Ref: #1549
master
Alexander Epaneshnikov 2 years ago
parent
commit
f138267d7b
No account linked to committer's email address
3 changed files with 13 additions and 1 deletions
  1. 8
    0
      Makefile.am
  2. 3
    1
      src/libespeak-ng/sPlayer.c
  3. 2
    0
      src/libespeak-ng/speech.c

+ 8
- 0
Makefile.am View File

@@ -290,6 +290,14 @@ src_libespeak_ng_test_la_CFLAGS = \
${PCAUDIOLIB_CFLAGS} ${AM_CFLAGS}
src_libespeak_ng_test_la_SOURCES = $(src_libespeak_ng_la_SOURCES)

if OPT_KLATT
src_libespeak_ng_test_la_CFLAGS += -DINCLUDE_KLATT
endif

if OPT_SPEECHPLAYER
src_libespeak_ng_test_la_CFLAGS += -DINCLUDE_SPEECHPLAYER
endif

check_PROGRAMS += tests/encoding.test

tests_encoding_test_LDADD = src/libespeak-ng.la

+ 3
- 1
src/libespeak-ng/sPlayer.c View File

@@ -98,7 +98,9 @@ void KlattInitSP() {
}

void KlattFiniSP() {
speechPlayer_terminate(speechPlayerHandle);
if (speechPlayerHandle)
speechPlayer_terminate(speechPlayerHandle);
speechPlayerHandle = NULL;
}

void KlattResetSP() {

+ 2
- 0
src/libespeak-ng/speech.c View File

@@ -945,6 +945,8 @@ ESPEAK_NG_API espeak_ng_STATUS espeak_ng_Terminate(void)
p_decoder = NULL;
}

WavegenFini();

return ENS_OK;
}


Loading…
Cancel
Save