From 80cd79992540f33479f272cd4024d97e554b4220 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 20 Jun 2024 20:51:40 -0400 Subject: voice: If $POOL is not set, use /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 --- tools/root.make | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/root.make') diff --git a/tools/root.make b/tools/root.make index 6e96844465..b8637dc923 100644 --- a/tools/root.make +++ b/tools/root.make @@ -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 -- cgit v1.2.3