From ffb914ea9f869f67db62c1cc787cec90df886ed9 Mon Sep 17 00:00:00 2001 From: Arnaud Bienvenu Date: Sat, 4 May 2013 16:49:32 +0200 Subject: [PATCH] Added specific turn sentences for imperative mode. The imperative shall be used when the sentence begins with "prepare to". Some TTS engines (like Cerevoice Suzanne) make slight sound difference for imperative. --- OsmAnd/assets/voice/fr-tts/ttsconfig.p | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/OsmAnd/assets/voice/fr-tts/ttsconfig.p b/OsmAnd/assets/voice/fr-tts/ttsconfig.p index bce0ae86cc..da6a01d338 100644 --- a/OsmAnd/assets/voice/fr-tts/ttsconfig.p +++ b/OsmAnd/assets/voice/fr-tts/ttsconfig.p @@ -16,7 +16,17 @@ turn('right_sl', ['tournez légèrement à droite ']). turn('right_keep', ['serrez à droite ']). turn('left_keep', ['serrez à gauche ']). -prepare_turn(Turn, Dist) == ['Dans ', D, ' préparez vous à ', M] :- distance(Dist) == D, turn(Turn, M). +prep2turn('left', ['tourner à gauche ']). +prep2turn('left_sh', ['tourner immédiatement à gauche ']). +prep2turn('left_sl', ['tourner légèrement à gauche ']). +prep2turn('right', ['tourner à droite ']). +prep2turn('right_sh', ['tourner immédiatement à droite ']). +prep2turn('right_sl', ['tourner légèrement à droite ']). +prep2turn('right_keep', ['serrer à droite ']). +prep2turn('left_keep', ['serrer à gauche ']). + + +prepare_turn(Turn, Dist) == ['Dans ', D, ' préparez vous à ', M] :- distance(Dist) == D, prep2turn(Turn, M). turn(Turn, Dist) == ['Dans ', D, M] :- distance(Dist) == D, turn(Turn, M). turn(Turn) == M :- turn(Turn, M).