diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-06-20 20:51:40 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-06-20 21:00:48 -0400 |
commit | 80cd79992540f33479f272cd4024d97e554b4220 (patch) | |
tree | d90eec2abff6bf3c36785aa58433f1cff59b8de7 /tools/root.make | |
parent | f58c15440f977b0c49145d8bc8226679b5f888dd (diff) | |
download | rockbox-80cd79992540f33479f272cd4024d97e554b4220.tar.gz rockbox-80cd79992540f33479f272cd4024d97e554b4220.zip |
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
Diffstat (limited to 'tools/root.make')
-rw-r--r-- | tools/root.make | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
374 | 374 | ||
375 | voice: voicetools $(BUILDDIR)/apps/features | 375 | voice: voicetools $(BUILDDIR)/apps/features |
376 | $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done ; \ | 376 | $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done ; \ |
377 | if [ -z "$$POOL" ] ; then \ | ||
378 | export POOL="$(BUILDDIR)/voice-pool" ; \ | ||
379 | fi;\ | ||
380 | mkdir -p $${POOL} ;\ | ||
377 | 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 | 381 | 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 |
378 | 382 | ||
379 | talkclips: voicetools | 383 | talkclips: voicetools |