voice: If $POOL is not set, use <build-dir>/voice-pool by default

It will _vastly_ speed up repeated voice builds.

The voice pool directory will not be erased by a 'make clean'

Change-Id: Ice58d5c5355abfa5a385dfca749f8063e2ee8622
This commit is contained in:
Solomon Peachy 2024-06-20 20:51:40 -04:00
parent f58c15440f
commit 80cd799925
3 changed files with 9 additions and 2 deletions

View file

@ -374,6 +374,10 @@ ifdef TTS_ENGINE
voice: voicetools $(BUILDDIR)/apps/features
$(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done ; \
if [ -z "$$POOL" ] ; then \
export POOL="$(BUILDDIR)/voice-pool" ; \
fi;\
mkdir -p $${POOL} ;\
for lang in `echo $(VOICELANGUAGE) |sed "s/,/ /g"`; do $(TOOLSDIR)/voice.pl -V -l=$$lang -t=$(MODELNAME)$$feat -i=$(TARGET_ID) -e="$(ENCODER)" -E="$(ENC_OPTS)" -s=$(TTS_ENGINE) -S="$(TTS_OPTS)"; done
talkclips: voicetools