forked from len0rd/rockbox
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:
parent
f58c15440f
commit
80cd799925
3 changed files with 9 additions and 2 deletions
3
tools/configure
vendored
3
tools/configure
vendored
|
|
@ -1078,6 +1078,9 @@ Win(6)4 crosscompile, (T)est plugins, (O)mit plugins, S(m)all C lib, Logf to Ser
|
||||||
for thislang in `echo $voicelanguage | sed 's/,/ /g'`; do
|
for thislang in `echo $voicelanguage | sed 's/,/ /g'`; do
|
||||||
voiceconfig "$thislang"
|
voiceconfig "$thislang"
|
||||||
done
|
done
|
||||||
|
if [ -z "$POOL" ] ; then
|
||||||
|
echo " \$POOL is not set, will use <builddir>/voice-pool by default"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "yes" = "$use_debug" ]; then
|
if [ "yes" = "$use_debug" ]; then
|
||||||
debug="-DDEBUG"
|
debug="-DDEBUG"
|
||||||
|
|
|
||||||
|
|
@ -374,6 +374,10 @@ ifdef TTS_ENGINE
|
||||||
|
|
||||||
voice: voicetools $(BUILDDIR)/apps/features
|
voice: voicetools $(BUILDDIR)/apps/features
|
||||||
$(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done ; \
|
$(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
|
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
|
talkclips: voicetools
|
||||||
|
|
|
||||||
|
|
@ -666,9 +666,9 @@ if ($V == 1) {
|
||||||
$SIG{INT} = \&panic_cleanup;
|
$SIG{INT} = \&panic_cleanup;
|
||||||
$SIG{KILL} = \&panic_cleanup;
|
$SIG{KILL} = \&panic_cleanup;
|
||||||
|
|
||||||
printf("Generating voice\n Target: %s\n Language: %s\n Encoder (options): %s (%s)\n TTS Engine (options): %s (%s)\n",
|
printf("Generating voice\n Target: %s\n Language: %s\n Encoder (options): %s (%s)\n TTS Engine (options): %s (%s)\n Pool directory: %s\n",
|
||||||
defined($t) ? $t : "unknown",
|
defined($t) ? $t : "unknown",
|
||||||
$l, $e, $E, $s, $S);
|
$l, $e, $E, $s, $S, defined($ENV{'POOL'}) ? $ENV{'POOL'} : "<none>");
|
||||||
generateclips($l, $t, $e, $E, $tts_object, $S, $f);
|
generateclips($l, $t, $e, $E, $tts_object, $S, $f);
|
||||||
shutdown_tts($tts_object);
|
shutdown_tts($tts_object);
|
||||||
createvoice($l, $i, $f);
|
createvoice($l, $i, $f);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue