Fix ar9x compile/boot (#7102)
[opentx.git] / radio / util / tts_en.py
blob83fda999cfdb3855cacba95163a4b8b9ddc4a381
1 # -*- coding: utf-8 -*-
3 # English language sounds configuration
5 from tts_common import filename, NO_ALTERNATE, PROMPT_SYSTEM_BASE, PROMPT_CUSTOM_BASE
8 systemSounds = []
9 sounds = []
11 for i in range(100):
12 systemSounds.append((str(i), filename(PROMPT_SYSTEM_BASE + i)))
13 for i in range(9):
14 systemSounds.append((str(100 * (i + 1)), filename(PROMPT_SYSTEM_BASE + 100 + i)))
15 for i, s in enumerate(["thousand", "and", "minus", "point"]):
16 systemSounds.append((s, filename(PROMPT_SYSTEM_BASE + 109 + i)))
17 for i, (s, f) in enumerate([("volt", "volt0"), ("volts", "volt1"),
18 ("amp", "amp0"), ("amps", "amp1"),
19 ("milliamp", "mamp0"), ("milliamps", "mamp1"),
20 ("knot", "knot0"), ("knots", "knot1"),
21 ("meter per second", "mps0"), ("meters per second", "mps1"),
22 ("foot per second", "fps0"), ("feet per second", "fps1"),
23 ("kilometer per hour", "kph0"), ("kilometers per hour", "kph1"),
24 ("mile per hour", "mph0"), ("miles per hour", "mph1"),
25 ("meter", "meter0"), ("meters", "meter1"),
26 ("foot", "foot0"), ("feet", "foot1"),
27 ("degree celsius", "celsius0"), ("degrees celsius", "celsius1"),
28 ("degree fahrenheit", "fahr0"), ("degrees fahrenheit", "fahr1"),
29 ("percent", "percent0"), ("percent", "percent1"),
30 ("milliamp-hour", "mamph0"), ("milliamp-hours", "mamph1"),
31 ("watt", "watt0"), ("watts", "watt1"),
32 ("milli-watt", "mwatt0"), ("milli-watts", "mwatt1"),
33 ("D B", "db0"),("D B", "db1"),
34 ("r p m", "rpm0"),("r p m", "rpm1"),
35 ("g", "g0"),("g", "g1"),
36 ("degree", "degree0"), ("degrees", "degree1"),
37 ("radian", "rad0"), ("radians", "rad1"),
38 ("milliliter", "ml0"), ("milliliters", "ml1"),
39 ("fluid ounce", "founce0"), ("fluid ounces", "founce1"),
40 ("milliliter per minute", "mlpm0"), ("milliliters per minute", "mlpm1"),
41 ("hour", "hour0"), ("hours", "hour1"),
42 ("minute", "minute0"), ("minutes", "minute1"),
43 ("second", "second0"), ("seconds", "second1"),
44 ]):
45 systemSounds.append((s, filename(f, PROMPT_SYSTEM_BASE + 115 + i)))
46 for i, s in enumerate(["point zero", "point one", "point two", "point three",
47 "point four", "point five", "point six",
48 "point seven", "point eight", "point nine"]):
49 systemSounds.append((s, filename(PROMPT_SYSTEM_BASE + 167 + i)))
50 for s, f, a in [("trim center", "midtrim", 495),
51 ("maximum trim reached", "maxtrim", NO_ALTERNATE),
52 ("minimum trim reached", "mintrim", NO_ALTERNATE),
53 ("timer 1 elapsed", "timovr1", NO_ALTERNATE),
54 ("timer 2 elapsed", "timovr2", NO_ALTERNATE),
55 ("timer 3 elapsed", "timovr3", NO_ALTERNATE),
56 ("transmitter battery low", "lowbatt", 485),
57 ("inactivity alarm", "inactiv", 486),
58 ("throttle warning", "thralert", 481),
59 ("switch warning", "swalert", 482),
60 ("bad eeprom", "eebad", 483),
61 ("Welcome to open tea ex!", "hello", 480),
62 ("RF signal, low", "rssi_org", NO_ALTERNATE),
63 ("RF signal, critical", "rssi_red", NO_ALTERNATE),
64 ("radio antenna defective", "swr_red", NO_ALTERNATE),
65 ("telemetry lost", "telemko", NO_ALTERNATE),
66 ("telemetry recovered", "telemok", NO_ALTERNATE),
67 ("trainer signal lost", "trainko", NO_ALTERNATE),
68 ("trainer signal recovered", "trainok", NO_ALTERNATE),
69 ("sensor lost", "sensorko", NO_ALTERNATE),
70 ("servo overload", "servoko", NO_ALTERNATE),
71 ("power overload", "rxko", NO_ALTERNATE),
72 ("receiver still connected", "modelpwr", NO_ALTERNATE),
74 systemSounds.append((s, filename(f, a)))
75 for i, (s, f) in enumerate([("gear!, up!", "gearup"),
76 ("gear!, down!", "geardn"),
77 ("flaps!, up!", "flapup"),
78 ("flaps!, down!", "flapdn"),
79 ("spoiler!, up!", "splrup"),
80 ("spoiler!, down!", "splrdn"),
81 ("trainer!, on!", "trnon"),
82 ("trainer!, off!", "trnoff"),
83 ("engine!, off!", "engoff"),
84 ("too. high!", "tohigh"),
85 ("too. low!", "tolow"),
86 ("low. battery!", "lowbat"),
87 ("crow!, on!", "crowon"),
88 ("crow!, off!", "crowof"),
89 ("rf. signal!, low!", "siglow"),
90 ("rf. signal!, critical!", "sigcrt"),
91 ("high. speed. mode!, active", "spdmod"),
92 ("thermal. mode!, on", "thmmod"),
93 ("normal. mode!, on", "nrmmod"),
94 ("landing. mode!, on", "lnding"),
95 ("acro. mode!, on", "acro"),
96 ("flight mode one", "fm-1"),
97 ("flight mode two", "fm-2"),
98 ("flight mode three", "fm-3"),
99 ("flight mode four", "fm-4"),
100 ("flight mode five", "fm-5"),
101 ("flight mode six", "fm-6"),
102 ("flight mode seven", "fm-7"),
103 ("flight mode eight", "fm-8"),
104 ("vario!, on", "vrion"),
105 ("vario!, off", "vrioff"),
106 ("flight mode power", "fm-pwr"),
107 ("flight mode land", "fm-lnd"),
108 ("flight mode float", "fm-flt"),
109 ("flight mode speed", "fm-spd"),
110 ("flight mode fast", "fm-fst"),
111 ("flight mode normal", "fm-nrm"),
112 ("flight mode cruise", "fm-crs"),
113 ("flight mode acro", "fm-acr"),
114 ("flight mode race", "fm-rce"),
115 ("flight mode launch", "fm-lch"),
116 ("flight mode ping", "fm-png"),
117 ("flight mode thermal", "fm-thm"),
118 ("flight mode thermal left", "fm-thl"),
119 ("flight mode thermal right", "fm-thr"),
121 sounds.append((s, filename(f, PROMPT_CUSTOM_BASE + i)))