Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
172 changes: 172 additions & 0 deletions docs/speech/nl.sample-files-list.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
# Turn-by-turn texts

"ga"
"rij"
"neem"
"verlaat"
"oprijden"
"rijden"

"nu"
"straks"
"dan"
"daarna"
"volgende"

"links"
"naar links"
"rechts"
"naar rechts"
"rechtdoor"

"na"
"naar"
"richting"
"andere richtingen"
"volg de weg gedurende"

"de"
"het"

"op"
"af"
"in"
"bij"
"tot"

"route"
"routepunt"
"weg"
"straat"
"afslag"
"oprit"
"bij knooppunt"
"rotonde"
"op de rotonde"
"de rotonde op"

"kilometer"
"meter"

"over"
"dag"
"dagen"
"uur"
"minuten"
"minuut"
"afstand"

"invoegen"
"uitvoegen"
"aanhouden"

"flauw"
"scherp"

"indien mogelijk omkeren"
"favoriet"
"geschatte reistijd"
"geschatte aankomsttijd"
"bestemming"
"bereikt"
"daarna heeft u uw bestemming bereikt"
"ingesteld op"
"ga terug naar de route"
"verminder snelheid"


# Texts used for roads
"A"
"B"
"C"
"D"
"E"
"I"
"L"
"M"
"N"
"P"
"R"
"S"
"U"
"V"
"X"

"Ring"
"Noord"
"Oost"
"Zuid"
"West"
"Centrum"


# Numbers

"nulde"
"eerste"
"tweede"
"derde"
"vierde"
"vijfde"
"zesde"

"punt"
"komma"
"puntkomma"

0
1
2
3
4
5
6
7
8
9

10
20
25
30
40
50
60
70
75
80
90
100
150
175
200
250
300
400
500
600
700
750
800
900


# Note:
# '12 kilometer' is spoken as 'one two kilometer' because there is no audio file for '12'.
# It is clear what is meant but you can create as many audio files with numbers as you like or need.

11 - 19
21 - 24
26 - 29
31 - 39
41 - 49
51 - 59
61 - 69
71 - 79
81 - 89
91 - 99

100 - 199
200 - 299
300 - 399

Original file line number Diff line number Diff line change
Expand Up @@ -2449,7 +2449,7 @@ tags.
+--------------+-------+--------------+--------------+--------------+
| sample_dir | | | For | ``sampl |
| | | | spe | e_dir="/path |
| | | | ech_cmdline, | /to/waves"`` |
| | | | ech_cmdline, | /to/files"`` |
| | | | defines path | |
| | | | where | |
| | | | pre-recorded | |
Expand Down
5 changes: 4 additions & 1 deletion docs/user/configuration/advanced/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ Note that Navit internally handles all text in UTF-8 encoding. If you use a file

''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.

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.
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.

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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think this is adequate. As doumented below, to make this feature useful, vocabulary_name_systematic needs to be set. Did that work for you?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it works for me.

How I understand the docs: vocabulary_name_systematic announces street names. Street names are names like "Main street" or "Elvis Presley road".
When I drive I don't need to hear the name of the street. All I want to hear is: "Turn right after 200 meter". The names of the current and next street are on my OSD.

Using #1259 you can set vocabulary_name_systematic="1" if you want. All the street names are spoken by TTS (if you don't have a sample file for that street name).
Never tested this but I will test this soon and let you know the result.

Even with vocabulary_name_systematic="0" there are names of town in the navigation instructions. These instructions are something like this: "Take the next exit towards Amsterdam". If you use the the trunk` branch and sample files then this instruction is not played. Navit stays silent.
Only because one word ("Amsterdam") is missing.

Using #1259 all the available samples are played. Text without sample files is spoken by TTS.
So taking the example above and you have a complete set of sample files: Samples are played for the first part, followed by TTS speaking "Amsterdam".

Instead of Navit staying silent the whole instruction is played.

A SOLUTION TO USE TEXT TO SPEECH FOR MISSING AUDIO FILES IS BEING TESTED.

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.

Expand Down
Loading