diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-04-17 14:42:36 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-04-17 14:55:17 -0400 |
commit | c38aeb3fbc6b45e5a71af4506c79459ce9cb2121 (patch) | |
tree | 4f235c02b006e2fa633bb8ce29e87f0402c17df8 /tools/root.make | |
parent | ebd952da2f50f73afa30554b0a0ad1a4dc5c7c63 (diff) | |
download | rockbox-c38aeb3fbc6b45e5a71af4506c79459ce9cb2121.tar.gz rockbox-c38aeb3fbc6b45e5a71af4506c79459ce9cb2121.zip |
voice: add a 'make talkclips' target for voice builds.
This will use the configured tts engine and language to generate
the talk clips for a specified directory.
TALKDIR=/path/to/somehere make talkclips
TALKDIR=/path/to/somehere make talkclips-force
If 'TALKDIR' is not defined then it will error out gracefully.
Normally if a talkclip is present already it will not regenerate the file,
but 'make talkclip-force' will regenerate it anyway.
Change-Id: I62683f9e5ca395fd303ac6029096c20da1e96d01
Diffstat (limited to 'tools/root.make')
-rw-r--r-- | tools/root.make | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/root.make b/tools/root.make index 03c4d48986..37aeaadaff 100644 --- a/tools/root.make +++ b/tools/root.make | |||
@@ -374,7 +374,17 @@ 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 | 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 \ | 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 |
378 | |||
379 | talkclips: voicetools | ||
380 | $(SILENT)if [ -z '$(TALKDIR)' ] ; then \ | ||
381 | echo "Must specify TALKDIR"; \ | ||
382 | else \ | ||
383 | for lang in `echo $(VOICELANGUAGE) |sed "s/,/ /g"`; do $(TOOLSDIR)/voice.pl -C -l=$$lang -e="$(ENCODER)" -E="$(ENC_OPTS)" -s=$(TTS_ENGINE) -S="$(TTS_OPTS)" $(FORCE) "$(TALKDIR)" ; done \ | ||
384 | fi | ||
385 | |||
386 | talkclips-force: FORCE=-F | ||
387 | talkclips-force: talkclips | ||
378 | 388 | ||
379 | endif | 389 | endif |
380 | 390 | ||