summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.circleci/config.yml2
-rw-r--r--navit/speech/android/speech_android.c9
2 files changed, 9 insertions, 2 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index c92119e4c..e190d8e44 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -220,7 +220,7 @@ jobs:
command: mkdir -p ~/.ssh/ && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- add_ssh_keys:
fingerprints:
- - "16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48"
+ - "58:42:73:90:cc:68:f7:34:7e:37:37:fa:b3:26:1f:a5"
- run:
name: Update results to Github
command: export GIT_TERMINAL_PROMPT=0 && git push origin $CIRCLE_SHA1:refs/heads/master
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);