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

${PCAUDIOLIB_CFLAGS} ${AM_CFLAGS} ${PCAUDIOLIB_CFLAGS} ${AM_CFLAGS}
src_libespeak_ng_test_la_SOURCES = $(src_libespeak_ng_la_SOURCES) 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 check_PROGRAMS += tests/encoding.test


tests_encoding_test_LDADD = src/libespeak-ng.la tests_encoding_test_LDADD = src/libespeak-ng.la

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

} }


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


void KlattResetSP() { void KlattResetSP() {

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

p_decoder = NULL; p_decoder = NULL;
} }


WavegenFini();

return ENS_OK; return ENS_OK;
} }



Loading…
Cancel
Save