Skip to content

Commit 1b954b3

Browse files
committed
Feat:docs:sample files list (nl) to use for speech
1 parent 0d2622b commit 1b954b3

3 files changed

Lines changed: 177 additions & 2 deletions

File tree

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
# Turn-by-turn texts
2+
3+
"ga"
4+
"rij"
5+
"neem"
6+
"verlaat"
7+
"oprijden"
8+
"rijden"
9+
10+
"nu"
11+
"straks"
12+
"dan"
13+
"daarna"
14+
"volgende"
15+
16+
"links"
17+
"naar links"
18+
"rechts"
19+
"naar rechts"
20+
"rechtdoor"
21+
22+
"na"
23+
"naar"
24+
"richting"
25+
"andere richtingen"
26+
"volg de weg gedurende"
27+
28+
"de"
29+
"het"
30+
31+
"op"
32+
"af"
33+
"in"
34+
"bij"
35+
"tot"
36+
37+
"route"
38+
"routepunt"
39+
"weg"
40+
"straat"
41+
"afslag"
42+
"oprit"
43+
"bij knooppunt"
44+
"rotonde"
45+
"op de rotonde"
46+
"de rotonde op"
47+
48+
"kilometer"
49+
"meter"
50+
51+
"over"
52+
"dag"
53+
"dagen"
54+
"uur"
55+
"minuten"
56+
"minuut"
57+
"afstand"
58+
59+
"invoegen"
60+
"uitvoegen"
61+
"aanhouden"
62+
63+
"flauw"
64+
"scherp"
65+
66+
"indien mogelijk omkeren"
67+
"favoriet"
68+
"geschatte reistijd"
69+
"geschatte aankomsttijd"
70+
"bestemming"
71+
"bereikt"
72+
"daarna heeft u uw bestemming bereikt"
73+
"ingesteld op"
74+
"ga terug naar de route"
75+
"verminder snelheid"
76+
77+
78+
# Texts used for roads
79+
"A"
80+
"B"
81+
"C"
82+
"D"
83+
"E"
84+
"I"
85+
"L"
86+
"M"
87+
"N"
88+
"P"
89+
"R"
90+
"S"
91+
"U"
92+
"V"
93+
"X"
94+
95+
"Ring"
96+
"Noord"
97+
"Oost"
98+
"Zuid"
99+
"West"
100+
"Centrum"
101+
102+
103+
# Numbers
104+
105+
"nulde"
106+
"eerste"
107+
"tweede"
108+
"derde"
109+
"vierde"
110+
"vijfde"
111+
"zesde"
112+
113+
"punt"
114+
"komma"
115+
"puntkomma"
116+
117+
0
118+
1
119+
2
120+
3
121+
4
122+
5
123+
6
124+
7
125+
8
126+
9
127+
128+
10
129+
20
130+
25
131+
30
132+
40
133+
50
134+
60
135+
70
136+
75
137+
80
138+
90
139+
100
140+
150
141+
175
142+
200
143+
250
144+
300
145+
400
146+
500
147+
600
148+
700
149+
750
150+
800
151+
900
152+
153+
154+
# Note:
155+
# '12 kilometer' is spoken as 'one two kilometer' because there is no audio file for '12'.
156+
# It is clear what is meant but you can create as many audio files with numbers as you like or need.
157+
158+
11 - 19
159+
21 - 24
160+
26 - 29
161+
31 - 39
162+
41 - 49
163+
51 - 59
164+
61 - 69
165+
71 - 79
166+
81 - 89
167+
91 - 99
168+
169+
100 - 199
170+
200 - 299
171+
300 - 399
172+

docs/user/configuration/Configuration_Full_list_of_options.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2449,7 +2449,7 @@ tags.
24492449
+--------------+-------+--------------+--------------+--------------+
24502450
| sample_dir | | | For | ``sampl |
24512451
| | | | spe | e_dir="/path |
2452-
| | | | ech_cmdline, | /to/waves"`` |
2452+
| | | | ech_cmdline, | /to/files"`` |
24532453
| | | | defines path | |
24542454
| | | | where | |
24552455
| | | | pre-recorded | |

docs/user/configuration/advanced/introduction.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ Note that Navit internally handles all text in UTF-8 encoding. If you use a file
2323

2424
''data'' is the program that can be used to play the sample files. You should specify the program name along with any necessary parameters. The placeholder "%s" will be replaced with the file(s) to be played. All files required for a text will be passed in one go, so the program will need to support playing multiple files. Note that the %s should ''not'' be quoted; the text is not passed through a shell.
2525

26-
Note that if any file that is needed to compose the complete phrase is missing then Navit will be silent. In that case a warning will be printed. Unfortunately, there is no complete list of the samples required. However, all the navigation text is contained in the translation files (.po files), so you can get a rough list.
26+
Note that if any file that is needed to compose the complete phrase is missing then Navit will be silent. In that case a warning will be printed. There is a list of the samples required for the Dutch language. Lists for other languages can be created by reading the log file. Look for lines containing "Cannot speak text" and create the missing audio files. The list for Dutch can be used as a starting point (the list for the numbers is the same in every language). Other texts are probably different because of the order of words in a sentence.
27+
28+
WARNING: THERE ARE ANNOUNCEMENTS THAT CONTAIN GEOGRAPHICAL NAMES. SO THERE IS NO PRACTICAL USE FOR THIS FEATURE AT THIS MOMENT SINCE IT IS IMPOSSIBLE TO CREATE AUDIO FILES FOR ALL THE NAMES.
29+
A SOLUTION TO USE TEXT TO SPEECH FOR MISSING AUDIO FILES IS BEING TESTED.
2730

2831
By default Navit is trying to announce street names. To disable this feature you can set ''vocabulary_name'' and ''vocabulary_name_systematic'' to 0 in the speech tag which will specify that the speech synthesizer isn't capable of speaking names. Also there is ''vocabulary_distances'' which you can set to 0 so only the minimum set of 1,2,3,4,5,10,25,50,75,100,150,200,250,300,400,500,750 as numbers is used.
2932

0 commit comments

Comments
 (0)