From 6f2452afd012ccb5dec02876e73a1f9da0a21e59 Mon Sep 17 00:00:00 2001 From: "rob@marotori.com" Date: Tue, 20 Nov 2012 15:54:37 +0000 Subject: [PATCH] Updates to the english language to make some alerts sound better. - stopping words sounding too close to each other! --- util/tts.py | 67 ++++++++++++++++++++++++++++------------------------- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/util/tts.py b/util/tts.py index a9f194909..ebc5a5b9b 100644 --- a/util/tts.py +++ b/util/tts.py @@ -194,41 +194,44 @@ if __name__ == "__main__": (u"inactivity alarm", "inactiv", 230), (u"throttle warning", "thralert", 232), (u"switch warning", "swalert", 233), - (u"tada", "tada", 245), - (u"tick tock", "timerlt3", 250), - (u"ten seconds", "timer10", 251), - (u"twenty seconds", "timer20", 252), - (u"thirty seconds", "timer30", 253), + (u"Welcome to open nine ex!", "tada", 245), + (u"tick. tock", "timerlt3", 250), + (u"ten. seconds", "timer10", 251), + (u"twenty. seconds", "timer20", 252), + (u"thirty. seconds", "timer30", 253), ]: systemSounds.extend(generate(s, f, a)) for i, (s, f) in enumerate([ - (u"gear up", "gearup"), - (u"gear down", "geardn"), - (u"flaps up", "flapup"), - (u"flaps down", "flapdn"), - (u"landing", "attero"), - (u"trainer on", "trnon"), - (u"trainer off", "trnoff"), - (u"engine off", "engoff"), - (u"too high", "tohigh"), - (u"too low", "tolow"), - (u"low battery", "lowbat"), - (u"crow on", "crowon"), - (u"crow off", "crowof"), - (u"rf signal low!", "siglow"), - (u"rf signal critical", "sigcrt"), - (u"high speed mode active", "spdmod"), - (u"thermal mode active", "thmmod"), - (u"normal mode active", "nrmmod"), - (u"flight mode one", "fltmd1"), - (u"flight mode two", "fltmd2"), - (u"flight mode three", "fltmd3"), - (u"flight mode four", "fltmd4"), - (u"flight mode five", "fltmd5"), - (u"flight mode six", "fltmd6"), - (u"flight mode seven", "fltmd7"), - (u"flight mode eight", "fltmd8"), - (u"flight mode nine", "fltmd9"), + (u"gear!, up!", "gearup"), + (u"gear!, down!", "geardn"), + (u"flaps!, up!", "flapup"), + (u"flaps!, down!", "flapdn"), + (u"trainer!, on!", "trnon"), + (u"trainer!, off!", "trnoff"), + (u"engine!, off!", "engoff"), + (u"too. high!", "tohigh"), + (u"too. low!", "tolow"), + (u"low. battery!", "lowbat"), + (u"crow!, on!", "crowon"), + (u"crow!, off!", "crowof"), + (u"rf. signal!, low!", "siglow"), + (u"rf. signal!, critical!", "sigcrt"), + (u"high. speed. mode!, active", "spdmod"), + (u"thermal. mode!, on", "thmmod"), + (u"normal. mode!, on", "nrmmod"), + (u"landing. mode!, on", "lnding"), + (u"acro. mode!, on", "acro"), + (u"flight. mode!, one", "fltmd1"), + (u"flight. mode!, two", "fltmd2"), + (u"flight. mode!, three", "fltmd3"), + (u"flight. mode!, four", "fltmd4"), + (u"flight. mode!, five", "fltmd5"), + (u"flight. mode!, six", "fltmd6"), + (u"flight. mode!, seven", "fltmd7"), + (u"flight. mode!, eight", "fltmd8"), + (u"flight. mode!, nine", "fltmd9"), + (u"vario!, on", "vrion"), + (u"vario!, on", "vrioff"), ]): sounds.extend(generate(s, f, 256+i))