From 185d2bbb6a967ad5fb72363677c9b14d1011c949 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 10 Jul 2020 20:40:36 -0400 Subject: voice: More voice generation fixes: * espeak vs espeak-ng (prefer the latter!) * voicepool was busted for most non-english strings Change-Id: Iae6df0f5426155b7b1f444160814ff9ef4581f21 --- tools/configure | 4 ++++ tools/voice.pl | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/configure b/tools/configure index 9069c84e3b..aab3e59dfb 100755 --- a/tools/configure +++ b/tools/configure @@ -1283,6 +1283,10 @@ voiceconfig () { advopts="$advopts --voice=$CHOICE" echo "Mimic voice set to $TTS_MIMIC_VOICE" TTS_OPTS="$TTS_OPTS -voice $TTS_MIMIC_VOICE" + elif [ "$TTS_ENGINE" = "espeak" ] ; then + if [ -n "`findtool espeak-ng`" ] ; then + TTS_ENGINE="espeak-ng" + fi fi # Read custom tts options from command line diff --git a/tools/voice.pl b/tools/voice.pl index bc076d5386..05ced3a6d9 100755 --- a/tools/voice.pl +++ b/tools/voice.pl @@ -26,6 +26,7 @@ use Digest::MD5 qw(md5_hex); use DirHandle; use open ':encoding(utf8)'; use open ':std'; +use utf8; sub printusage { print <