summaryrefslogtreecommitdiff
path: root/navit
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-09-08 22:55:46 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-09-08 22:55:46 +0000
commitbcc7ca7a33e0f7ad8eeca9eadc0c3c0bfaf32626 (patch)
tree3ddb781e61559614e35da38e8b3ae80eb10305b5 /navit
parent173bb8f0a69c6554d544c922621b7edf0fd6dc7d (diff)
downloadnavit-bcc7ca7a33e0f7ad8eeca9eadc0c3c0bfaf32626.tar.gz
Fix:speech_cmdline:Log warning if speech output failed because of missing samples.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5636 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit')
-rw-r--r--navit/speech/cmdline/speech_cmdline.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/navit/speech/cmdline/speech_cmdline.c b/navit/speech/cmdline/speech_cmdline.c
index c05d05524..1eb39d0a5 100644
--- a/navit/speech/cmdline/speech_cmdline.c
+++ b/navit/speech/cmdline/speech_cmdline.c
@@ -139,14 +139,17 @@ speechd_say(struct speech_priv *this, const char *text)
if (this->sample_dir && this->sample_suffix) {
argl=speech_cmdline_search(this->samples, strlen(this->sample_suffix), text, !!(this->flags & 1));
- dbg(1,"For text: '%s', found %d samples.\n",text,g_list_length(argl));
samplesmode=1;
listlen=g_list_length(argl);
+ dbg(1,"For text: '%s', found %d samples.\n",text,listlen);
+ if (!listlen){
+ dbg(0,"No matching samples found. Cannot speak text: '%s'\n",text);
+ }
} else {
listlen=1;
}
- dbg(1,"Speaking text '%s'\n",text);
if(listlen>0) {
+ dbg(1,"Speaking text '%s'\n",text);
int argc;
char**argv;
int j;