diff options
| author | jkoan <jkoan@gmx.de> | 2019-04-05 11:54:01 +0200 |
|---|---|---|
| committer | jkoan <jkoan@gmx.de> | 2019-04-05 11:54:01 +0200 |
| commit | 50cbe8d6eda31349467cd5c3b74e9c1c5011ddf4 (patch) | |
| tree | 2142821f25163523d98bce45ea8c03a79fbf0674 /navit/speech/android/speech_android.c | |
| parent | a2e7f47bedc21b611410d29e87393b9f89c391a5 (diff) | |
| parent | 7bba198ae2fd42f6092de74a64b9d544dc10e4ff (diff) | |
| download | navit-50cbe8d6eda31349467cd5c3b74e9c1c5011ddf4.tar.gz | |
Merge branch 'trunk' of https://github.com/navit-gps/navit into ide_fix_for_not_found
Diffstat (limited to 'navit/speech/android/speech_android.c')
| -rw-r--r-- | navit/speech/android/speech_android.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/navit/speech/android/speech_android.c b/navit/speech/android/speech_android.c index b76c2c3e9..fb0574166 100644 --- a/navit/speech/android/speech_android.c +++ b/navit/speech/android/speech_android.c @@ -36,7 +36,14 @@ struct speech_priv { static int speech_android_say(struct speech_priv *this, const char *text) { char *str=g_strdup(text); jstring string; - int i; + char *tok = str; + + /* Replace hyphens with white spaces, or some Android speech SDK will pronounce "hyphen" */ + while (*tok) { + if (*tok=='-') + *tok=' '; + tok++; + } string = (*jnienv)->NewStringUTF(jnienv, str); dbg(lvl_debug,"enter %s",str); |
