CentOS 5 under FreeSWITCH integrated with Ekho for TTS function two

Source: Internet
Author: User
Tags freeswitch

Three: The above festival after the installation is completed back to the Ekho installation directory:

executed./configure--enable-festival ago

Change Configure

1: Replace

#AC_DEFINE (enable_festival,,[enable FESTIVAL])

#LIB_FESTIVAL = "${srcdir}/lib/libfestival.a ${srcdir}/lib/libestools.a ${srcdir}/lib/libestbase.a ${srcdir}/lib/ Libeststring.a-lncurses "

# cflag_festival= "-i${srcdir}/include/festival-i${srcdir}/include/speech_tools"

Else

{{$as _echo "$as _me:${as_lineno-$LINENO}: Error:in \ ' $ac _pwd ':" >&5

$as _echo "$as _me:error:in \ ' $ac _pwd ':" >&2;}

As_fn_error $? "Ncurses Test Failed

See \ ' Config.log ' For more details "$LINENO" 5; }

Fi

{$as _echo "$as _me:${as_lineno-$LINENO}: Checking for main in-lestools" >&5

$as _echo_n "Checking for main in-lestools ... ">&6;}

If ${ac_cv_lib_estools_main+:} false; Then:

$as _echo_n "(cached)" >&6

Else

ac_check_lib_save_libs= $LIBS

Libs= "-lestools

$LIBS "

Cat Confdefs.h-<<_aceof >conftest. $ac _ext

/* End confdefs.h. */

Int

Main ()

{

return main ();

;

return 0;

}

_aceof

If Ac_fn_c_try_link "$LINENO"; Then:

Ac_cv_lib_estools_main=yes

Else

Ac_cv_lib_estools_main=no

Fi

Rm-f core Conftest.err conftest. $ac _objext \

Conftest$ac_exeext conftest. $ac _ext

libs= $ac _check_lib_save_libs

Fi

{$as _echo "$as _me:${as_lineno-$LINENO}: Result: $ac _cv_lib_estools_main" >&5

$as _echo "$ac _cv_lib_estools_main" >&6; }

if test "x$ac_cv_lib_estools_main" = Xyes; Then:

Cat >>confdefs.h <<_aceof

#define HAVE_LIBESTOOLS 1

_aceof

libs= "-lestools $LIBS"

Switch

$as _echo "#define Enable_festival/**/" >>confdefs.h

Lib_festival= "${SRCDIR}/LIB/LIBFESTIVAL.A ${srcdir}/lib/libestools.a ${srcdir}/lib/libestbase.a ${srcdir}/lib/ Libeststring.a-lncurses "

Cflag_festival= "-i${srcdir}/include/festival-i${srcdir}/include/speech_tools"

2: Replace

As_fn_error $? "Estool Test Failed

See \ ' Config.log ' For more details "$LINENO" 5; }

Fi

{$as _echo "$as _me:${as_lineno-$LINENO}: Checking for main in-lfestival" >&5

$as _echo_n "Checking for main in-lfestival ... ">&6;}

If ${ac_cv_lib_festival_main+:} false; Then:

$as _echo_n "(cached)" >&6

Else

ac_check_lib_save_libs= $LIBS

Libs= "-lfestival

$LIBS "

Cat Confdefs.h-<<_aceof >conftest. $ac _ext

/* End confdefs.h. */

Int

Main ()

{

return main ();

;

return 0;

}

_aceof

If Ac_fn_c_try_link "$LINENO"; Then:

Ac_cv_lib_festival_main=yes

Else

Ac_cv_lib_festival_main=no

Switch

As_fn_error "ncurses Test failed (--disable-festival to disable)

See \ ' Config.log ' for more details. " "$LINENO" 5; }

3 Remove:

Rm-f core Conftest.err conftest. $ac _objext \

Conftest$ac_exeext conftest. $ac _ext

libs= $ac _check_lib_save_libs

Fi

{$as _echo "$as _me:${as_lineno-$LINENO}: Result: $ac _cv_lib_festival_main" >&5

$as _echo "$ac _cv_lib_festival_main" >&6; }

if test "x$ac_cv_lib_festival_main" = Xyes; Then:

$as _echo "#define Enable_festival/**/" >>confdefs.h

Lib_festival= "-lfestival-lestbase-lestools-leststring-lncurses"

Cflag_festival= "-i/usr/include/festival-i/usr/include/speech_tools"

Else

$as _echo "#define Enable_festival/**/" >>confdefs.h

Lib_festival= "${SRCDIR}/LIB/LIBFESTIVAL.A ${srcdir}/lib/libestools.a ${srcdir}/lib/libestbase.a ${srcdir}/lib/ Libeststring.a-lncurses "

Cflag_festival= "-i${srcdir}/include-i${srcdir}/include/festival-i${srcdir}/include/speech_tools"

Else

Lib_festival= ""

Cflag_festival= ""

Fi

4: Add:

Else

With_mp3lame=no

Fi

After adding

libs= "-lasound $LIBS"

After more than 5 changes:

Under the Ekho installation directory:

Execute make

The following error occurred:

SRC/LIBEKHO.CPP:58:31: Error: festival/festival.h: no file or directory

Src/libekho.cpp:in member function ' int ekho::ekho::initfestival () ':

src/libekho.cpp:252: Error: ' Festival_initialize ' has not been declared in this scope

src/libekho.cpp:257: Error: ' Strintern ' has not been declared in this scope

src/libekho.cpp:257: Error: ' Siod_set_lval ' has not been declared in this scope

src/libekho.cpp:261: Error: ' Festival_load_file ' has not been declared in this scope

src/libekho.cpp:269: Error: ' FESTIVAL_TIDY_UP ' has not been declared in this scope

Src/libekho.cpp:in member function ' int ekho::ekho::writetosonicstream (short int*, int, bool, bool) ':

src/libekho.cpp:752: Warning: When converting to ' short int ' (from ' double ')

src/libekho.cpp:762: Warning: When converting to ' int ' (from ' float ')

Src/libekho.cpp:in member function ' const char* ekho::ekho::getpcmfromfestival (std::string, int&) ':

src/libekho.cpp:1203: Error: ' Festival_eval_command ' has not been declared in this scope

src/libekho.cpp:1218: Error: ' Est_wave ' has not been declared in this scope

src/libekho.cpp:1218: Error: expected '; ' before ' wave '

src/libekho.cpp:1219: Error: ' Wave ' has not been declared in this scope

src/libekho.cpp:1219: Error: ' Festival_text_to_wave ' has not been declared in this scope

src/libekho.cpp:1225: Error: ' Est_tvector ' has not been declared in this scope

SRC/LIBEKHO.CPP:1225: Error: expected primary-expression before ' short '

SRC/LIBEKHO.CPP:1225: Error: expected '; ' before ' short '

src/libekho.cpp:1226: Error: ' Tvector ' has not been declared in this scope

MAKE[1]: * * [SRC/LIBEKHO_A-LIBEKHO.O] Error 1

MAKE[1]: Leaving directory '/home/new_uucc_soft/ekho-6.0 '

Make: * * * [ALL] Error 2

Workaround:

With command: Mkdir/usr/include/festival

Cd/usr/include/festival

Copy festival.h fngram.h intonation.h lexicon.h Makefile ModuleDescription.h modules.h module_support.h Phone.h text . h

to the Festival folder

6. Go back to the Ekho installation directory:

Perform make:

Appear:

g++:./lib/libfestival.a:no such file or directory

g++:./lib/libestools.a:no such file or directory

g++:./lib/libestbase.a:no such file or directory

g++:./lib/libeststring.a:no such file or directory

MAKE[1]: * * [Test_ekho] Error 1

Workaround:

Execute under the Ekho installation directory:

CP Lib32 Lib

Under the installation directory for festival and Speech_tools, the. a file

The LIBFESTIVAL.A in the/festival/src/lib/is copied to the Lib in the Ekho installation directory and overwritten

LIBESTOOLS.A Libestbase.a libeststring.a in/speech_tools/lib/is copied to Lib in Ekho installation directory and overwritten

Finally, perform the make && make install, and the installation is complete

CentOS 5 under FreeSWITCH integrated with Ekho for TTS function two

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.