Fix ar9x compile/boot (#7102)
[opentx.git] / radio / util / tts_fr.py
blobfdb0117aeef511e0cc42e217a6255e2ff483d4ec
1 # -*- coding: utf-8 -*-
3 # French language sounds configuration
5 from tts_common import filename, NO_ALTERNATE, PROMPT_SYSTEM_BASE, PROMPT_CUSTOM_BASE
7 systemSounds = []
8 sounds = []
10 for i in range(100):
11 systemSounds.append((str(i), filename(PROMPT_SYSTEM_BASE + i)))
12 for i in range(10):
13 systemSounds.append((str(100 * (i + 1)), filename(PROMPT_SYSTEM_BASE + 100 + i)))
14 for i, s in enumerate(["une", "onze", "vingt et une", "trente et une", "quarante et une", "cinquante et une", "soixante et une", "soixante et onze", "quatre vingt une"]):
15 systemSounds.append((s, filename(PROMPT_SYSTEM_BASE + 110 + i)))
16 for i, s in enumerate(["virgule", "et", "moins", "minuit", "midi"]):
17 systemSounds.append((s, filename(PROMPT_SYSTEM_BASE + 119 + i)))
18 for i, (s, f) in enumerate([("volts","volt0"),
19 ("ampères", "amp0"),
20 ("milli ampères", "mamp0"),
21 ("noeud", "knot0"),
22 ("mètres seconde", "mps0"),
23 ("pieds par seconde", "fps0"),
24 ("kilomètre heure", "kph0"),
25 ("miles par heure", "mph0"),
26 ("mètres", "meter0"),
27 ("pieds", "foot0"),
28 ("degrés", "celsius0"),
29 ("degrés fahrenheit", "degf0"),
30 ("pourcents", "percent0"),
31 ("milli ampères heure", "mamph0"),
32 ("watt", "watt0"),
33 ("milli watt", "mwatt0"),
34 ("d b", "db0"),
35 ("tours minute", "rpm0"),
36 ("g", "g0"),
37 ("degrés", "degree0"),
38 ("radians", "rad0"),
39 ("millilitres", "ml0"),
40 ("onces", "founce0"),
41 ("millilitre minute", "mlpm0"),
42 ("heure", "hour0"),
43 ("minute", "minute0"),
44 ("seconde", "second0"),
45 ]):
46 systemSounds.append((s, filename(f, PROMPT_SYSTEM_BASE + 125 + i)))
47 for i, s in enumerate(["virgule 0", "virgule 1", "virgule 2", "virgule 3", "virgule 4", "virgule 5", "virgule 6", "virgule 7", "virgule 8", "virgule 9"]):
48 systemSounds.append((s, filename(PROMPT_SYSTEM_BASE + 180 + i)))
49 for s, f, a in [("Trim centré", "midtrim", 495),
50 ("Trim maximum atteint", "maxtrim", NO_ALTERNATE),
51 ("Trim minimum atteint", "mintrim", NO_ALTERNATE),
52 ("Chrono 1 à 0", "timovr1", NO_ALTERNATE),
53 ("Chrono 2 à 0", "timovr2", NO_ALTERNATE),
54 ("Chrono 3 à 0", "timovr3", NO_ALTERNATE),
55 ("Batterie radio faible !", "lowbatt", 485),
56 ("Radio inactive !", "inactiv", 486),
57 ("Alerte manche des gaz", "thralert", 481),
58 ("Alerte inters", "swalert", 482),
59 ("éprome corrompue", "eebad", 483),
60 ("Bienvenue sur o pun t x", "hello", 480),
61 ("Signal RF, faible", "rssi_org", NO_ALTERNATE),
62 ("Signal RF, critique", "rssi_red", NO_ALTERNATE),
63 ("Antenne défectueuse", "swr_red", NO_ALTERNATE),
64 ("Télémétrie perdue", "telemko", NO_ALTERNATE),
65 ("Télémétrie retrouvée", "telemok", NO_ALTERNATE),
66 ("Signal écolage perdu", "trainko", NO_ALTERNATE),
67 ("Signal écolage retrouvé", "trainok", NO_ALTERNATE),
68 ("Sonde de télémétrie perdue", "sensorko", NO_ALTERNATE),
69 ("Servo en surcharge", "servoko", NO_ALTERNATE),
70 ("Surcharge réception", "rxko", NO_ALTERNATE),
71 ("Récepteur encore sous tension", "modelpwr", NO_ALTERNATE),
73 systemSounds.append((s, filename(f, a)))
74 for i, (s, f) in enumerate([("altitude", "altitude"),
75 ("température moteur", "moteur"),
76 ("température contrôleur", "cntrleur"),
77 ("train rentré", "gearup"),
78 ("train sorti", "geardn"),
79 ("volets rentrés", "flapup"),
80 ("volets sortis", "flapdn"),
81 ("atterrissage", "attero"),
82 ("écolage", "trnon"),
83 ("fin écolage", "trnoff"),
84 ("moteur coupé", "engoff"),
85 ("high. speed. mode!, active", "spdmod"),
86 ("thermal. mode!, on", "thmmod"),
87 ("normal. mode!, on", "nrmmod"),
88 ("landing. mode!, on", "lnding"),
89 ("mode acro", "acro"),
90 ("mode de vol un", "fm-1"),
91 ("mode de vol deux", "fm-2"),
92 ("mode de vol trois", "fm-3"),
93 ("mode de vol quatre", "fm-4"),
94 ("mode de vol 5", "fm-5"),
95 ("mode de vol 6", "fm-6"),
96 ("mode de vol sept", "fm-7"),
97 ("mode de vol 8", "fm-8"),
98 ("vario activé", "vrion"),
99 ("vario désactivé", "vrioff"),
100 ("mode de vol puissance", "fm-pwr"),
101 ("mode de vol attérissage", "fm-lnd"),
102 ("mode de vol amérissage", "fm-flt"),
103 ("mode de vol vitesse", "fm-spd"),
104 ("mode de vol rapide", "fm-fst"),
105 ("mode de vol normal", "fm-nrm"),
106 ("mode de vol de croisière", "fm-crs"),
107 ("mode de vol acro", "fm-acr"),
108 ("mode de vol course", "fm-rce"),
109 ("mode de vol lancé", "fm-lch"),
110 ("mode de vol ping", "fm-png"),
111 ("mode de vol thermique", "fm-thm"),
112 ("mode de vol thermique gauche", "fm-thl"),
113 ("mode de vol thermique droit", "fm-thr"),
115 sounds.append((s, filename(f, PROMPT_CUSTOM_BASE + i)))