Hi again,
I'm having a new problem related to the addition of Speech Dispatcher.
When building it, it checks for additional Voice TTSs and if it finds them, it adds the respective modules.
I'm trying to generate the eSpeak Module, but it needs the espeak library for the process, so I added espeak:host as a dependency.
The eSpeak package wasn't able to generate host builds, so I edited it and could add the eSpeak libraries and include headers to the toolchain. However, when trying to build Speech Dispatcher with espeak support it says that file <espeak/speak_lib.h> does not exist, but the file speak_lib.h is inside $TOOLCHAIN/include/espeak.
It seems that the build process is ignoring the toolchain paths, even if toolchain is in the package.mk as a target dependency.
My current package.mk:
--------------------
PKG_NAME="speech-dispatcher"
PKG_VERSION="0.10.2"
PKG_SHA256="b06319f201e15e56c6296653af5bcfc300cb348e972d517df8b06eac77eae2dc"
PKG_LICENSE="LGPL"
PKG_SITE="https://freebsoft.org/speechd"
PKG_URL="https://github.com/brailcom/speechd/releases/download/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain glib dotconf libsndfile libpthread-stubs libtool alsa-lib pulseaudio espeak:host"
PKG_LONGDESC="Common high-level interface to TTS"
PKG_TOOLCHAIN="autotools"
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET \
ac_cv_func_realloc_0_nonnull=yes \
ac_cv_func_malloc_0_nonnull=yes"
Display More
Can you share espeak/package.mk
Target depends on target generally.
…
Hypothetically…
Bob is a program that builds a file called bill.txt.
We want to use bill.txt as part of our build process for james.
E.g. cc -o james bill.txt James.c
Then bob:host makes sense… as “bob.exe” needs to run on you build host as a program to create bill.txt.
One of our examples would be cmake:host
cmake:target does not make sense - as when you are running LE10 on your RPi4 - you don’t want to run cmake. You only want to run cmake on the build host.
So if “espeak:host” is a program that generates abc.tts, bcd.tts - then espeak:host makes sense - on the build host.
If espeak:host builds a library called espeak.lib that is being used by speech-distpacher… e.g. cc -o speech-dispatcher speech-dispatcher.c -lespeak - this is INCORRECT using espeak:host … It should be espeak:target (which is the same as espeak.)
Ping me back on how you go.
--------------------