Debian Codegraph @

docs/user.txt

raw
1 ====== Fenrir User Manual ======
2
3 Fenrir is a modern command line screen reader written in Python3.
4
5 It has a modular structure, a flexible based driver model, is highly configurable and easy to customize and extend ([[fenrir_development_manual|see Developer Manual]]).
6
7 Please see the following pages for the [[fenrir_current_version|current]] and [[fenrir_git_version|Git]] version of Fenrir.
8
9
10 ====== Support and Requirements ======
11
12 Fenrir requires several drivers to interact with the operating system.
13
14 ===== Speech Drivers =====
15
16 A speech driver is for communication with the text to speech system like [[#SpeechDispatcher|Speech-Dispatcher]] or [[http://espeak.sourceforge.net|Espeak]]. \\
17 See section [[#Speech|Speech]] in ''settings.conf'' for more information.
18
19
20 ==== SpeechDispatcher ====
21
22 This driver is used by default.
23 It uses Speech-dispatcher as its backend.
24
25 Dependencies:
26
27 * Speech-dispatcher (installed and configured, [[https://devel.freebsoft.org/speechd#sec2|Documentation]])
28 * Python-speechd
29
30 ==== Espeak ====
31
32 Uses Espeak via Python bindings.
33
34 Dependencies:
35 * Espeak or Espeak-ng
36 * [[https://launchpad.net/python-espeak|python-espeak]]
37
38 ==== Generic ====
39
40 This invokes speech via a sub-process. This is almost the same as using the commandline. The performance depends on the overhead of the speech synthesis application but it is really flexible.
41
42 Dependencies:
43 * Espeak or Espeak-ng
44
45 The Requirements are flexible, they depend on the configuration in settings.conf.
46
47 ==== Dummy ====
48
49 this is just for debugging, logs are output to the screen and logged as well.
50
51 ===== Sound Drivers =====
52
53 To play sound icons and similar.\\
54 See section [[#Sound|Sound]] in ''settings.conf'' for more information.
55
56 ==== Generic ====
57
58 This driver is used by default.
59
60 Dependencies:
61
62 * [[http://sox.sourceforge.net/|Sox]] with opus support
63 The Requirements are flexible, they depend on the configuration in settings.conf.
64
65 ==== Gstreamer ====
66
67 if you prefer to use Gstreamer for sound output.
68
69 Dependencies:
70 * Gstreamer >= 1.x
71 * Glibc
72
73 ==== Dummy ====
74
75 this is just for debugging, logs are output to the screen and logged as well.
76
77 ===== Input Drivers =====
78
79 Input drivers are to capture keyboard shortcuts issued to the screen reader \
80 See section [[#Keyboard|Keyboard]] in ''settings.conf'' for more information.
81
82 ==== Evdev ====
83
84 This driver is used by default.
85
86 Evdev is the low level input device framework for Linux.
87
88 Dependencies:
89
90 * python-evdev >=0.6.3
91 * pyudev
92 * loaded uinput kernel module
93 * exclusive access to the input devices
94 Read permission to the following files and services:
95 * /dev/input
96 * /dev/uinput
97
98 ===== Screen Drivers =====
99
100 The job of a screen driver is to get the information of current screen content.\\
101 See section [[#Screen|Screen]] in ''settings.conf'' for more information.
102
103 ==== VCSA ====
104
105 This driver is used by default.
106 For Linux VCSA devices. These exist on any current standard installation of Linux.
107
108 Dependencie
109 s:
110
111 * python-dbus
112 Read permission to the following files and services (or run as root):
113 * /sys/devices/virtual/tty/tty0/active
114 * /dev/tty[1 - 64]
115 * /dev/vcsa[1 - 64] ([[https://linux.die.net/man/4/vcsa|VCSA manpage]])
116 * read Logind DBUS
117
118 ===== Braille Drivers =====
119 This is for Braille support.
120 Braille is currently a work in progress and is planned for the Fenrir 2.0 release.\\
121 See section [[#Braille|Braille]] in ''settings.conf'' for more information.
122
123
124 ==== BRLTTY ====
125
126 This driver is used by default.
127 It uses [[brltty|BrlTTY]] to communicate with with a Braille device.
128
129 Dependencies:
130
131 * BrlTTY (configured and running, [[http://mielke.cc/brltty/doc/Manual-BRLTTY/English/BRLTTY.html|Documentation]])
132 * python-brlapi (configured, [[http://mielke.cc/brltty/doc/Manual-BrlAPI/English/BrlAPI.html|Documentation]])
133 ===== Currently supported platforms =====
134
135 Currently Fenrir completely supports the following Platforms:
136 * Linux TTY
137 Support for further Systems are planned.
138
139 ====== Installation ======
140
141 Fenrir can run without installation. It just requires the dependencies are installed first.
142
143 We recommend to try it out before installation to be sure everything works and prevent yourself from experiencing a non-talking environment.
144
145 ===== Try Out =====
146 Fenrir does not require installation. You can try it and make sure everything works before you decide to install. In this way you can be sure that your system doesnt break or stop talking.
147 for that you can just grab the code and run as root ''src/fenrir/fenrir'' (in foreground) or ''src/fenrir/fenrir-daemon'' (in background, used by systemd for autostart)
148
149 ===== Install it =====
150
151 ==== Documented operating systems ====
152
153 ==== Arch Linux ====
154
155 For Arch there are PKGBUILDs in the AUR:
156 * [[https://aur.archlinux.org/packages/fenrir/|fenrir]]
157 * [[https://aur.archlinux.org/packages/fenrir-git/|fenrir-git]]
158
159 ==== Manual ====
160
161 - Download the latest stable version from the [[https://linux-a11y.org/index.php?page=fenrir-screenreader|Fenrir-Project]] site.
162 - Unpack the archive
163 - Check the needed Dependencys by running [[https://git.stormux.org/storm/fenrir/src/branch/master/check-dependencies.py|check-dependencys.py]] script
164 - install the missing dependencies an standard installation requires the following:
165 * python3 >= 3.3 (and all the following is needed for python3 )
166 * python3-speechd (screen)
167 * python3-dbus (screen)
168 * python3-evdev >= 0.6.4(input)
169 * python3-daemonize (background service)
170 * python3-brlapi (braille)
171 * python3-pyenchant (spellchecker)
172 * your language for aspell (aspell-<lang>) (spellchecker)
173 * sox (sound)
174 * For an individual installation see [[#Support and Requirements|Support and Requirements]] or consult the [[https://git.stormux.org/storm/fenrir/src/branch/master/README.md|Readme]])
175 - run "install.sh" as root
176
177 this installs Fenrir as the following
178 * Application:''/opt/fenrir''
179 * Settings:''/etc/fenrir''
180 * Sound Icons:''/usr/share/fenrirscreenreader/''
181
182 to remove Fenrir just run uninstall.sh as root
183
184 ==== Git ====
185
186 if you want to get the latest code you can use git to get a development snapshot:
187
188 git clone https://git.stormux.org/storm/fenrir.git
189
190 ===== Auto Start =====
191
192 To start Fenrir once:
193 systemctl start fenrir
194
195 To enable auto start on system boot:
196 systemctl enable fenrir
197
198 ====== First Steps ======
199
200 If you are using Fenrir for the first time you may want to take a look at these resources:
201 * [[#Keybindings|Keybindings]]
202 * [[#Tutorial Mode|Tutorial Mode]]
203
204 ====== Features ======
205
206 ===== Commands =====
207
208 ==== Keybindings ====
209
210 Normal commands can be invoked in two ways:
211 - Using a Metakey ([[#Fenrir Key|FenrirKey]])
212 - Shortcuts with a single key
213
214 See section [[#Keyboard|Keyboard]] in ''settings.conf'' for more information.
215 === Fenrir Key ===
216 The Fenrir Key is for invoking screen reader commands. Fenrir can utilize more than one FenrirKey at the same time.
217 By default the following keys are used:
218 - Insert
219 - KeyPad Insert
220 - Meta (Super, Windows)
221
222 === Script Key ===
223 To invoke "Scripts" the Script Key is mandatory. The shortcut is encoded in the filename of the script. See [[#Scripting|Scripting]]
224 === Desktop Layout ===
225 ^Shortcut ^Command ^
226 |FenrirKey + H|[[#Tutorial Mode|toggle tutorial mode]]|
227 |CTRL|[[#shut up|shut up (interrupts speech)]]|
228 |FenrirKey + KeyPad 9|[[#review bottom|reviews bottom]]|
229 |FenrirKey + KeyPad 7|[[#review top|reviews top]]|
230 |KeyPad 8|[[#review current line|reviews current line]]|
231 |KeyPad 7|[[#review previous line|reviews previous line]]|
232 |KeyPad 9|[[#review next line|reviews next line]]|
233 |FenrirKey + KeyPad 4|[[#review line beginning|reviews line beginning]]|
234 |FenrirKey + KeyPad 6|[[#review line ending|reviews line ending]]|
235 |FenrirKey + KeyPad 1|[[#review line first character|reviews line first character]]|
236 |FenrirKey + KeyPad 3|[[#review line last character|reviews line last character]]|
237 |FenrirKey + Alt + 1|[[#present first line|presents first line]]|
238 |FenrirKey + Alt + 2|[[#present last line|presents last line]]|
239 |KeyPad 5|[[#review current word|reviews current word]]|
240 |KeyPad 4|[[#review previous word|reviews previous word]]|
241 |KeyPad 6|[[#review next word|reviews next word]]|
242 |FenrirKey + Shift + KeyPad 5|[[#review current word phonetic|reviews current word phonetic]]|
243 |FenrirKey + Shift + KeyPad 4|[[#review previous word phonetic|reviews previous word phonetic]]|
244 |FenrirKey + Shift + KeyPad 6|[[#review next word phonetic|reviews next word phonetic]]|
245 |KeyPad 2|[[#review current character|reviews current char]]|
246 |KeyPad 1|[[#review previous character|reviews previous char]]|
247 |KeyPad 3|[[#review next character|reviews next char]]|
248 |FenrirKey + Shift + KeyPad 2|[[#review current character phonetic|reviews current character phonetic]]|
249 |FenrirKey + Shift + KeyPad 1|[[#review previous character phonetic|reviews previous character phonetic]]|
250 |FenrirKey + Shift + KeyPad 3|[[#review next character phonetic|reviews next character phonetic]]|
251 |FenrirKey + CTRL + KeyPad 8|[[#review up|reviews up]]|
252 |FenrirKey + CTRL + KeyPad 2|[[#review down|reviews down]]|
253 |FenrirKey + KeyPad dot|[[#exit review|exit review]]|
254 |KeyPad dot|[[#cursor position|cursor position]]|
255 |FenrirKey + I|[[#indent current line|indent curr line]]|
256 |FenrirKey + KeyPad 5|[[#current screen|current screen]]|
257 |FenrirKey + KeyPad 8|[[#current screen before cursor|current screen before cursor]]|
258 |FenrirKey + KeyPad 2|[[#current screen after cursor|current screen after cursor]]|
259 |<Unbound>|[[#cursor read to end of line|cursor read to end of line]]|
260 |<Unbound>|[[#cursor column|cursor column]]|
261 |<Unbound>|[[#cursor line number|cursor line number]]|
262 |<Unbound>|[[#braille flush|Braille flush]]|
263 |<Unbound>|[[#braille pan left|Braille pan left]]|
264 |<Unbound>|[[#braille pan right|Braille pan right]]|
265 |<Unbound>|[[#braille return to cursor|Braille return to cursor]]|
266 |FenrirKey + CTRL + 1|[[#clear Bookmark X|clear bookmark 1]]|
267 |FenrirKey + Shift + 1|[[#set Bookmark X|set bookmark 1]]|
268 |FenrirKey + 1|[[#read Bookmark X|bookmark 1]]|
269 |FenrirKey + CTRL + 2|[[#clear Bookmark X|clear bookmark 2]]|
270 |FenrirKey + Shift + 2|[[#set Bookmark X|set bookmark 2]]|
271 |FenrirKey + 2|[[#read Bookmark X|bookmark 2]]|
272 |FenrirKey + CTRL + 3|[[#clear Bookmark X|clear bookmark 3]]|
273 |FenrirKey + Shift + 3|[[#set Bookmark X|set bookmark 3]]|
274 |FenrirKey + 3|[[#read Bookmark X|bookmark 3]]|
275 |FenrirKey + CTRL + 4|[[#clear Bookmark X|clear bookmark 4]]|
276 |FenrirKey + Shift + 4|[[#set Bookmark X|set bookmark 4]]|
277 |FenrirKey + 4|[[#read Bookmark X|bookmark 4]]|
278 |FenrirKey + CTRL + 5|[[#clear Bookmark X|clear bookmark 5]]|
279 |FenrirKey + Shift + 5|[[#set Bookmark X|set bookmark 5]]|
280 |FenrirKey + 5|[[#read Bookmark X|bookmark 5]]|
281 |FenrirKey + CTRL + 6|[[#clear Bookmark X|clear bookmark 6]]|
282 |FenrirKey + Shift + 6|[[#set Bookmark X|set bookmark 6]]|
283 |FenrirKey + 6|[[#read Bookmark X|bookmark 6]]|
284 |FenrirKey + CTRL + 7|[[#clear Bookmark X|clear bookmark 7]]|
285 |FenrirKey + Shift + 7|[[#set Bookmark X|set bookmark 7]]|
286 |FenrirKey + 7|[[#read Bookmark X|bookmark 7]]|
287 |FenrirKey + CTRL + 8|[[#clear Bookmark X|clear bookmark 8]]|
288 |FenrirKey + Shift + 8|[[#set Bookmark X|set bookmark 8]]|
289 |FenrirKey + 8|[[#read Bookmark X|bookmark 8]]|
290 |FenrirKey + CTRL + 9|[[#clear Bookmark X|clear bookmark 9]]|
291 |FenrirKey + Shift + 9|[[#set Bookmark X|set bookmark 9]]|
292 |FenrirKey + 9|[[#read Bookmark X|bookmark 9]]|
293 |FenrirKey + CTRL + 0|[[#clear Bookmark X|clear bookmark 10]]|
294 |FenrirKey + Shift + 0|[[#set Bookmark X|set bookmark 10]]|
295 |FenrirKey + 0|[[#read Bookmark X|bookmark 10]]|
296 |FenrirKey + KeyPad Slash|[[#Create Window|set window application]]|
297 |2 * FenrirKey + KeyPad Slash|[[#Remove Window|clear window application]]|
298 |KeyPad Plus|[[#last incoming|read last incoming]]|
299 |FenrirKey + F2|[[#toggle braille|toggles braille]]|
300 |FenrirKey + F3|[[#toggle sound|toggles sound]]|
301 |FenrirKey + F4|[[#toggle speech|toggles speech]]|
302 |KeyPad Enter|[[#disable speech temporarily|temporarily disables speech]]|
303 |FenrirKey + CTRL + P|[[#toggle punctuation level|toggles punctuation level]]|
304 |FenrirKey + RightBrace|[[#toggle auto spell check|toggle auto spell check]]|
305 |FenrirKey + Backslash|[[#toggle output|toggles output]]|
306 |FenrirKey + CTRL + E|[[#toggle emoticons|toggles emoticons]]|
307 |FenrirKey + KeyPad Enter|[[#toggle auto read|toggles auto read]]|
308 |FenrirKey + CTRL + T|[[#toggle auto time|toggles auto time]]|
309 |FenrirKey + KeyPad ASTERISK|[[#toggle highlight tracking|toggles highlight tracking]]|
310 |FenrirKey + Q|[[#quit Fenrir|quits fenrir]]|
311 |FenrirKey + T|[[#Time|Announce time]]|
312 |2 * FenrirKey + T|[[#Date|Announce date]]|
313 |FenrirKey + S|[[#spell check|spell check]]|
314 |2 * FenrirKey + S|[[#add word to spell check|add word to spell check]]|
315 |FenrirKey + Shift + S|[[#removes word from spell check|removes word from spell check]]|
316 |FenrirKey + Backspace|[[#forward keypress|forward keypress]]|
317 |FenrirKey + Up|[[#increase speech volume|increase speech volume]]|
318 |FenrirKey + Down|[[#decrease speech volume|decrease speech volume]]|
319 |FenrirKey + Right|[[#increase speech rate|increase speech rate]]|
320 |FenrirKey + Left|[[#decrease speech rate|decrease speech rate]]|
321 |FenrirKey + Alt + Right|[[#increase speech pitch|increase speech pitch]]|
322 |FenrirKey + Alt + Left|[[#decrease speech pitch|decrease speech pitch]]|
323 |FenrirKey + Alt + Up|[[#increase sound volume|increase sound volume]]|
324 |FenrirKey + Alt + Down|[[#decrease sound volume|decrease sound volume]]|
325 |FenrirKey + CTRL + Shift + C|[[#clear clipboard|clears clipboard]]|
326 |FenrirKey + Home|[[#first clipboard|first clipboard]]|
327 |FenrirKey + End|[[#last clipboard|last clipboard]]|
328 |FenrirKey + PageUp|[[#previous clipboard|previous clipboard]]|
329 |FenrirKey + PageDown|[[#next clipboard|next clipboard]]|
330 |FenrirKey + Shift + C|[[#read current clipboard|current clipboard]]|
331 |FenrirKey + C|[[#copy marked to clipboard|copy marked text to clipboard]]|
332 |FenrirKey + V|[[#paste clipboard|paste clipboard contents]]|
333 |FenrirKey + P|[[#import clipboard from file|import clipboard from file]]|
334 |FenrirKey + Alt + Shift +C|[[#export clipboard to file|export clipboard to file]]|
335 |FenrirKey + CTRL + Shift + X|[[#Remove Marks|remove marks]]|
336 |FenrirKey + X|[[#Set mark|set mark]]|
337 |FenrirKey + Shift + X|[[#Get text between marks|announce marked text]]|
338 ^Linux specific ^
339 |<Unbound>|export clipboard to X|
340 |FenrirKey + CTRL + Up|include Alsa volume|
341 |FenrirKey + CTRL + Down|decrease Alsa volume|
342
343 === Laptop Layout ===
344 ^Shortcut ^Command ^
345 |FenrirKey + H|[[#Tutorial Mode|toggle tutorial mode]]|
346 |CTRL|[[#shut up|shut up (interrupts speech)]]|
347 |FenrirKey + Shift + O|[[#review bottom|reviews bottom]]|
348 |FenrirKey + Shift + U|[[#review top|reviews top]]|
349 |FenrirKey + I|[[#review current line|reviews current line]]|
350 |FenrirKey + U|[[#review previous line|reviews previous line]]|
351 |FenrirKey + O|[[#review next line|reviews next line]]|
352 |FenrirKey + Shift + J|[[#review line beginning|reviews line beginning]]|
353 |FenrirKey + Shift + L|[[#review line ending|reviews line ending]]|
354 |FenrirKey + CTRL + J|[[#review line first character|reviews line first character]]|
355 |FenrirKey + CTRL + L|[[#review line last character|reviews line last character]]|
356 |FenrirKey + Alt + 1|[[#present first line|presents first line]]|
357 |FenrirKey + Alt + 2|[[#present last line|presents last line]]|
358 |FenrirKey + K|[[#review current word|reviews current word]]|
359 |FenrirKey + J|[[#review previous word|reviews previous word]]|
360 |FenrirKey + L|[[#review next word|reviews next word]]|
361 |FenrirKey + CTRL + ALT + K|[[#review current word phonetic|reviews current word phonetic]]|
362 |FenrirKey + CTRL + ALT + J|[[#review previous word phonetic|reviews previous word phonetic]]|
363 |FenrirKey + CTRL + ALT + L|[[#review next word phonetic|reviews next word phonetic]]|
364 |FenrirKey + comma|[[#review current character|reviews current character]]|
365 |FenrirKey + M|[[#review previous character|reviews previous character]]|
366 |FenrirKey + dot|[[#review next character|reviews next character]]|
367 |FenrirKey + CTRL + ALT + comma|[[#review current character phonetic|reviews current character phonetic]]|
368 |FenrirKey + CTRL + ALT + M|[[#review previous character phonetic|reviews previous character phonetic]]|
369 |FenrirKey + CTRL + ALT + dot|[[#review next character phonetic|reviews next character phonetic]]|
370 |FenrirKey + CTRL + I|[[#review up|reviews up]]|
371 |FenrirKey + CTRL + comma|[[#review down|reviews down]]|
372 |FenrirKey + Slash|[[#exit review|exit review]]|
373 |FenrirKey + Shift + dot|[[#cursor position|cursor position]]|
374 |2 * FenrirKey + I|[[#indent current line|indent curr line]]|
375 |FenrirKey + Shift + K|[[#current screen|current screen]]|
376 |FenrirKey + Shift + I|[[#current screen before cursor|current screen before cursor]]|
377 |FenrirKey + Shift + comma|[[#current screen after cursor|current screen after cursor]]|
378 |<Unbound>|[[#cursor read to end of line|cursor read to end of line]]|
379 |<Unbound>|[[#cursor column|cursor column]]|
380 |<Unbound>|[[#cursor line number|cursor line number]]|
381 |<Unbound>|[[#braille flush|Braille flush]]|
382 |<Unbound>|[[#braille pan left|Braille pan left]]|
383 |<Unbound>|[[#braille pan right|Braille pan right]]|
384 |<Unbound>|[[#braille return to cursor|Braille return to cursor]]|
385 |FenrirKey + CTRL + 1|[[#clear Bookmark X|clear bookmark 1]]|
386 |FenrirKey + Shift + 1|[[#set Bookmark X|set bookmark 1]]|
387 |FenrirKey + 1|[[#read Bookmark X|bookmark 1]]|
388 |FenrirKey + CTRL + 2|[[#clear Bookmark X|clear bookmark 2]]|
389 |FenrirKey + Shift + 2|[[#set Bookmark X|set bookmark 2]]|
390 |FenrirKey + 2|[[#read Bookmark X|bookmark 2]]|
391 |FenrirKey + CTRL + 3|[[#clear Bookmark X|clear bookmark 3]]|
392 |FenrirKey + Shift + 3|[[#set Bookmark X|set bookmark 3]]|
393 |FenrirKey + 3|[[#read Bookmark X|bookmark 3]]|
394 |FenrirKey + CTRL + 4|[[#clear Bookmark X|clear bookmark 4]]|
395 |FenrirKey + Shift + 4|[[#set Bookmark X|set bookmark 4]]|
396 |FenrirKey + 4|[[#read Bookmark X|bookmark 4]]|
397 |FenrirKey + CTRL + 5|[[#clear Bookmark X|clear bookmark 5]]|
398 |FenrirKey + Shift + 5|[[#set Bookmark X|set bookmark 5]]|
399 |FenrirKey + 5|[[#read Bookmark X|bookmark 5]]|
400 |FenrirKey + CTRL + 6|[[#clear Bookmark X|clear bookmark 6]]|
401 |FenrirKey + Shift + 6|[[#set Bookmark X|set bookmark 6]]|
402 |FenrirKey + 6|[[#read Bookmark X|bookmark 6]]|
403 |FenrirKey + CTRL + 7|[[#clear Bookmark X|clear bookmark 7]]|
404 |FenrirKey + Shift + 7|[[#set Bookmark X|set bookmark 7]]|
405 |FenrirKey + 7|[[#read Bookmark X|bookmark 7]]|
406 |FenrirKey + CTRL + 8|[[#clear Bookmark X|clear bookmark 8]]|
407 |FenrirKey + Shift + 8|[[#set Bookmark X|set bookmark 8]]|
408 |FenrirKey + 8|[[#read Bookmark X|bookmark 8]]|
409 |FenrirKey + CTRL + 9|[[#clear Bookmark X|clear bookmark 9]]|
410 |FenrirKey + Shift + 9|[[#set Bookmark X|set bookmark 9]]|
411 |FenrirKey + 9|[[#read Bookmark X|bookmark 9]]|
412 |FenrirKey + CTRL + 0|[[#clear Bookmark X|clear bookmark 10]]|
413 |FenrirKey + Shift + 0|[[#set Bookmark X|set bookmark 10]]|
414 |FenrirKey + 0|[[#read Bookmark X|bookmark 10]]|
415 |FenrirKey + CTRL + 8|[[#Create Window|set window application]]|
416 |2 * FenrirKey + CTRL + 8|[[#Remove Window|clear window application]]|
417 |FenrirKey + Semicolon|[[#last incoming|read last incoming]]|
418 |FenrirKey + F2|[[#toggle braille|toggles braille]]|
419 |FenrirKey + F3|[[#toggle sound|toggles sound]]|
420 |FenrirKey + F4|[[#toggle speech|toggles speech]]|
421 |FenrirKey + Enter|[[#disable speech temporarily|temporarily disables speech]]|
422 |FenrirKey + Shift + CTRL + P|[[#toggle punctuation level|toggles punctuation level]]|
423 |FenrirKey + RightBrace|[[#toggle auto spell check|toggle auto spell check]]|
424 |FenrirKey + Shift + Enter|[[#toggle output|toggles output]]|
425 |FenrirKey + Shift + E|[[#toggle emoticons|toggles emoticons]]|
426 |FenrirKey + Enter|[[#toggle auto read|toggles auto read]]|
427 |FenrirKey + CTRL + T|[[#toggle auto time|toggles auto time]]|
428 |FenrirKey + Y|[[#toggle highlight tracking|toggles highlight tracking]]|
429 |FenrirKey + Q|[[#quit Fenrir|quits fenrir]]|
430 |FenrirKey + T|[[#Time|Announce time]]|
431 |2 * FenrirKey + T|[[#Date|Announce date]]|
432 |FenrirKey + S|[[#spell check|spell check]]|
433 |2 * FenrirKey + S|[[#add word to spell check|add word to spell check]]|
434 |FenrirKey + Shift + S|[[#removes word from spell check|removes word from spell check]]|
435 |FenrirKey + Backspace|[[#forward keypress|forward keypress]]|
436 |FenrirKey + Up|[[#increase speech volume|increase speech volume]]|
437 |FenrirKey + Down|[[#decrease speech volume|decrease speech volume]]|
438 |FenrirKey + Right|[[#increase speech rate|increase speech rate]]|
439 |FenrirKey + Left|[[#decrease speech rate|decrease speech rate]]|
440 |FenrirKey + Alt + Right|[[#increase speech pitch|increase speech pitch]]|
441 |FenrirKey + Alt + Left|[[#decrease speech pitch|decrease speech pitch]]|
442 |FenrirKey + Alt + Up|[[#increase sound volume|increase sound volume]]|
443 |FenrirKey + Alt + Down|[[#decrease sound volume|decrease sound volume]]|
444 |FenrirKey + CTRL + Shift + C|[[#clear clipboard|clears clipboard]]|
445 |FenrirKey + Home|[[#first clipboard|first clipboard]]|
446 |FenrirKey + End|[[#last clipboard|last clipboard]]|
447 |FenrirKey + PageUp|[[#previous clipboard|previous clipboard]]|
448 |FenrirKey + PageDown|[[#next clipboard|next clipboard]]|
449 |FenrirKey + Shift + C|[[#read current clipboard|current clipboard]]|
450 |FenrirKey + C|[[#copy marked to clipboard|copy marked text to clipboard]]|
451 |FenrirKey + V|[[#paste clipboard|paste clipboard contents]]|
452 |FenrirKey + F5|[[#import clipboard from file|import clipboard from file]]|
453 |FenrirKey + Alt + Shift +C|[[#export clipboard to file|export clipboard to file]]|
454 |FenrirKey + CTRL + Shift + X|[[#Remove Marks|remove marks]]|
455 |FenrirKey + X|[[#Set mark|set mark]]|
456 |FenrirKey + Shift + X|[[#Get text between marks|announce marked text]]|
457 ^Linux specific ^
458 |<Unbound>|export clipboard to X|
459 |FenrirKey + CTRL + Up|increases Alsa volume|
460 |FenrirKey + CTRL + Down|decreases Alsa volume|
461 ==== General ====
462 === quit Fenrir ===
463 Just stops fenrir.
464 === shut up ===
465 Interrupt the current spoken.
466 ==== Review Modes ====
467 Fenrir provides a virtual cursor, with it you can navigate all over the screen without changing the text cursor.
468
469 Using the review feature will open the review mode automatically.
470
471 The review cursor always starts from the text cursor. Attention: after using the review mode, the review cursor will stay open until you use the ''exit review'' shortcut.
472
473 Think when using clipboard operations and similar. The review cursor is always prefered over the text cursor.
474
475 Fenrir sounds a bell sound if the used review command jumps to another line or end of screen.
476 === exit review ===
477 You can leave the review mode by pressing the ''exit review'' shortcut.
478 === review bottom ===
479 Set the review cursor to first column in the last line.
480 === review top ===
481 Set the review cursor to the first column in the first line
482 === review current line ===
483 Set the review cursor to the beginn of the the current line and review it.
484 === review previous line ===
485 Set the review cursor to the previous line and review it.
486 === review next line ===
487 Set the review cursor to the next line and review it.
488 === review line beginning ===
489 Set the review cursor to the begin of the current line
490 === review line ending ===
491 Set the review cursor to the end of the current line
492 === review line first character ===
493 Set the review cursor the first char (that is not space) in the current line and review it.
494 === review line last character ===
495 Set the review cursor the last char (that is not space) in the current line and review it.
496 === review current word ===
497 Sets the review cursor to the beginning of the current word and review it.
498 === review previous word ===
499 Sets the review cursor to the beginning of the previous word and review it.
500 === review next word ===
501 Sets the review cursor to the beginning of the next word and review it.
502 === review current word phonetic ===
503 Sets the review cursor to the beginning of the current word and spell it phonetic.
504 === review previous word phonetic ===
505 Sets the review cursor to the beginning of the previous word and spell it phonetic.
506 === review next word phonetic ===
507 Sets the review cursor to the beginning of the next word and spell it phonetic.
508 === review current character ===
509 Does not change the review cursor. Just announce the current char.
510 === review previous character ===
511 Sets review cursor to the previous column and review it
512 === review next character ===
513 Sets review cursor to the next column and review it
514 === review current character phonetic ===
515 Does not change the review cursor. Just announce the current char phonetic.
516 === review previous character phonetic ===
517 Sets review cursor to the previous column and announce the char phonetic.
518 === review next character phonetic ===
519 Sets review cursor to the next column and announce the char phonetic.
520 === review up ===
521 Set the review cursor in the same column one line above the current one and review it.
522 === review down ===
523 Set the review cursor in the same column one line below the current one and review it.
524 ==== Handling marking ====
525 A mark defines a point of origin or end to prepare to copy or paste a block of text.
526 \\
527 Examples where you need marks are:
528 * copy to clipboard
529 * set window application
530 * set bookmark 1 - X
531 === Set mark ===
532 How to set a mark:
533 - navigate with review or textcursor to the position you want to set the mark. Attention: if a review cursor is set, that is the prefered. If you want to use text cursor, be sure that you are not in review mode.
534 - press shortcut for ''set mark''
535 you can set two marks (begin and end). Some commands allow some simpler usecases just using the whole line if only one mark is set. you may want to try this out.
536 === Get text between marks ===
537 To get the text that is currently between your marks press shortcut for ''marked text''.\\
538 === Remove Marks ===
539 You can remove all current marks by pressing the shortcut for ''remove marks''.
540 Changing the screen also removes the marks.
541 ==== Screen Interaction ====
542 Fenrir provides several methods to interact with the current screen.
543 === forward keypress ===
544 This just forwards the next shortcut to the screen Fenrir shortcut or not. This is useful if the currently pressed shortcut is also in use by Fenrir.
545 === Clipboard ===
546 Fenrir provides a clipboard with multible items represented by a list. You navigate throught the list and paste the selected clipboard.
547 == copy marked to clipboard ==
548 To copy something to the clipboard you need to set one or two marks. if you set one mark, the text between the mark and your current cursor is copied to clipboard. Setting two marks just copies the text between the marks into the clipboard. If you copy something it is always placed as the first item on your clipboard.
549 == clear clipboard ==
550 You can remove all items from the current clipboard by ''clear clipboard'' functionality.
551 == first clipboard ==
552 This moves quick to the first item of the clipboard.
553 == last clipboard ==
554 This moves quick to the last item of the clipboard.
555 == previous clipboard ==
556 Go to previous item in the clipboard.
557 == next clipboard ==
558 Go to next item on the clipboard.
559 == read current clipboard ==
560 Read the content of the current item of the clipboard.
561 == paste clipboard ==
562 Pass whatever item is currently selected by first, last, prev or next clipboard commands.
563 if no special clipboard is selected the (last copied) is used.
564 == export clipboard to file ==
565 This allows you to export the current clipboard to a configurable filepath. This is useful to share the clipboard with a graphical desktop.
566 == import clipboard from file ==
567 Import a clipboard from a configurable file. This is useful to share the clipboard with a graphical desktop.
568 ==== Quick Settings ====
569 Fenrir provides shortcuts to change settings temporarily and on the fly without the need to permanently change the ''settings.conf'' file.
570 === toggle braille ===
571 Enables and disables Braille. This is not persistent stored in your ''settings.conf'' but during run time.
572 === toggle sound ===
573 Enables and disables sound. This is not persistent stored in your ''settings.conf'' but during run time.
574 === toggle speech ===
575 Enables and disables speech. This is not persistent stored in your ''settings.conf'' but during run time.
576 === disable speech temporarily ===
577 Disables the speech until next key press. it might be useful if you want to listen to music or similar. As soon as a key is pressed it is going to be enabled again.
578 === toggle punctuation level ===
579 Cycle between all available punctuation levels. This is not persistent stored in your ''settings.conf'' but during run time.
580 === toggle auto spell check ===
581 Enables and disables automatic spellchecker (when typing). This is not persistent stored in your ''settings.conf'' but during run time.
582 === toggle emoticons ===
583 Enables and disables emoticons. This is not persistent stored in your ''settings.conf'' but during runtime.
584 === toggle output ===
585 Enables and disables all output at once (sound, Braille, speech). This is not persistent stored in your ''settings.conf'' but during run time.
586 === toggle auto read ===
587 Enables and disables what is automatically spoken. This is not persistent stored in your ''settings.conf'' but during run time.
588 === toggle auto time ===
589 Enables and disables auto time functionality. This is not persistent stored in your ''settings.conf'' but during run time.
590 === toggle highlight tracking ===
591 Enables and disables highlight tracking. This is not persistent stored in your ''settings.conf'' but during run time.
592 === increase speech volume ===
593 Increase the volume of the speech. This is not persistent stored in your ''settings.conf'' but during runtime.
594 === decrease speech volume ===
595 Decrease the volume of the speech. This is not persistent stored in your ''settings.conf'' but during runtime.
596 === increase speech rate ===
597 Increase the rate of the speech. This is not persistent stored in your ''settings.conf'' but during runtime.
598 === decrease speech rate ===
599 Decrease the rate of the speech. This is not persistent stored in your ''settings.conf'' but during runtime.
600 === increase speech pitch ===
601 Increase the pitch of the speech. This is not persistent stored in your ''settings.conf'' but during runtime.
602 === decrease speech pitch ===
603 Decrease the pitch of the speech. This is not persistent stored in your ''settings.conf'' but during runtime.
604 === increase sound volume ===
605 Increase the volume of the sound. This is not persistent stored in your ''settings.conf'' but during runtime.
606 === decrease sound volume ===
607 Decrease the volume of the sound. This is not persistent stored in your ''settings.conf'' but during runtime.
608 ==== Window Mode ====
609 Fenrir supports window mode, a window is a partial area of the screen.
610 === Create Window ===
611 To create a window you need to do the following:
612 - set a beginning mark (as the start of the window)
613 - set an end mark (where the window should end)
614 - press ''set window application'' shortcut.
615 Now Fenrir ignores anything outside of the window.\\
616 === Remove Window ===
617 You can remove the window by pressing ''the clear window application'' shortcut.
618 Now Fenrir will read everything on the screen again.
619 ==== Tracking Modes ====
620 Different types of tracking are currently supported
621 See section [[#Focus|Focus]] in ''settings.conf'' for more information.
622 === Cursor Tracking ===
623 This follows the text cursor. This is the typical way an application works. This is used by:
624 * almost any shell such as (Bash, Zsh, sh)
625 * vim
626 * nano
627 * emacs
628 * mutt
629 * tintin++
630 === Highlight Tracking ===
631 In some applications there are no text cursors. In those applications cursor changes are represented by different colors or attributes (underlined or bold). This mode tracks and announces these changes for you. This is used by:
632 * wifi-menu
633 * dialog
634 * alpine
635 ==== Tutorial Mode ====
636 Fenrir provides a Tutorial mode.
637 When you enter tutorial mode, screen reader commands are intercepted and explained instead of executing them. ''Arrow up'' and ''Arrow Down'' let you navigate through a list of all available commands with shortcuts and description. Pressing escape leaves the tutorial mode.
638
639 ==== Information ====
640 === Time ===
641 Announces the current Time.
642 === Date ===
643 Announces the current Date.
644 === Bookmarks ===
645 Bookmarks provide quick access to part of the screen without the need to navigate to the area.
646 By default Fenrir provides 10 bookmarks. Those can be set and accessed via shortcut.
647 This is useful for status lines or other information where the position does not change.
648 == set Bookmark X ==
649 You need to set the bookmark first. For that you have to set one or two lines for use.
650 - Set marks (one or two)
651 - press shortcut for ''set bookmark X''. X represents the number 1 - 10.
652 == read Bookmark X ==
653 If a bookmark is set you can access the area just by pressing the ''bookmark X'' shortcut. X represents the number 1 - 10. Bookmarks are dynamic. That means the content changes with the screen.
654 == clear Bookmark X ==
655 to remove a bookmark just press the ''clear bookmark X'' shortcut. X represents the number 1 - 10.
656 Afterward the bookmark is no longer available.
657 === cursor position ===
658 You can get information about the current cursor and its position by using the "cursor position" functionality.
659 === indent current line ===
660 Announce the current indent level of the current line. It represents the number of trailing spaces of the line.
661 === current screen ===
662 Reads all the current screen from the beginning to the end.
663 === current screen before cursor ===
664 Reads current screen from the beginning of the screen to the current cursor position.
665 === current screen after cursor ===
666 Read anything after current cursor position to the end.
667 === cursor read to end of line ===
668 Read from the current cursor position to the end of the current line.
669 === cursor column ===
670 Read the current X position of a cursor (column of the current line).
671 === cursor line number ===
672 Read the current Y position of a cursor (line number).
673 === present first line ===
674 Reads just the first line. this is maybe useful for status information.
675 === present last line ===
676 Presets the last line. This is maybe useful for status information.
677 === last incoming ===
678 Repeat the last automatically incoming text.
679 ===== Input =====
680 ==== Echo ====
681 Fenrir provides different methods of echoing content:
682 * Word: Will speak each word after you push space
683 * Character: speak any letter you type on the screen
684 * Delete Character: speaks the character prior to the cursor when you push backspace
685 ==== Silence on Key press ====
686 ==== Spellchecker ====
687 Fenrir has a built-in spellchecker, it can invoke automatically while typing or be called by a shortcut.
688 Commands to add or remove the current word to the dictionary are included.
689 As using the spellchecker is enhanced usage. You will need dictionary aspell-<language>.
690 See section [[#General|General]] in ''settings.conf'' for more information.
691 === spell check ===
692 Invokes the spellcheck on the word that contains the Review or text cursor.
693 === add word to spell check ===
694 Adds the word under the Review or Text cursor to the dictionary.
695 === removes word from spell check ===
696 Removes the word under the Review or Text cursor from the dictionary.
697 ===== Announcements =====
698 ==== Emoticons ====
699 If you want to replace ":)" emoticons with "smile" in speech you can use this feature.
700 It can be toggled on or off.
701 You can define emoticons in a dictionary, please see Emoticon Dictionary.
702 See section [[#General|General]] in ''settings.conf'' to see how to enable or disable this feature.
703
704 ==== Time ====
705 Announce the time at periodical increments, To track the time easily.
706 You can define 2 different ways of time announcements.
707 - periodic
708 - on fix minutes
709
710 Example periodic, every 20 minutes "delaySec=20":
711
712 [time]
713 enabled=True
714 presentTime=True
715 presentDate=True
716 delaySec=20
717 onMinutes=
718 announce=True
719 interrupt=False
720
721 Example on fix minutes in an hour. example every quarter "delaySec=0" and "onMinutes=00,15,30,45":
722
723 [time]
724 enabled=True
725 presentTime=True
726 presentDate=True
727 #delaySec is repected bevore onMinutes so it need to be set to 0
728 delaySec=0
729 onMinutes=00,15,30,45
730 announce=True
731 interrupt=False
732 ==== Punctuation ====
733 Fenrir handles punctuation levels and names for you with several provided dictionaries.
734
735 See levelDict
736 See punctuationDict
737 ===== Braille =====
738 Fenrir provides Braille support in Version >= 2.0.
739 See section [[#Braille|Braille]] in ''settings.conf'' for more information.
740 ==== braille flush ====
741 If a message appears on the Braille device you can flush it to get back to the review- or system cursor
742 ==== Braille pan left ====
743 If a line is longer than your Braille devices you can move the view (called panning) to the left.
744 So you can read stuff without the need to move the review- or system cursor.
745 ==== Braille pan right ====
746 If a line is longer than your Braille devices you can move the view (called panning) to the right.
747 So you can read stuff without the need to move the review- or system cursor.
748 ==== braille return to cursor ====
749 When you have finished reading the line on the Braille device using panning, the focus can be returned to the current used cursor by using "return to cursor" command.
750 ===== Dictionary =====
751 You can make use of different kinds of built-in dictionary's.
752 A dictionary has a name and list of keys and values separated by :===:
753 Example:
754 [customDict]
755 Chrys:===:Chrys is cool
756 lollipop:===:lolli
757 that means that every instance "chrys" is displayed, speech will say Chrys is cool.
758 "lollipop" is spoken as "lolli".
759 Before making changes to a dictionary we recommend making a backup of your current dictionary in case future updates overwrite your local changes.
760 ==== Punctuation ====
761 === Level ===
762 The punctuation level dict contains lists with "what punctuation is spoken in what level".
763 the default one looks like this:
764 [levelDict]
765 none:===:
766 some:===:.-$~+*-/\@
767 most:===:.,:-$~+*-/\@!#%^&*()[]}{<>;
768 all:===:!"#$%& \'()*+,-./:;<=>?@[\\]^_`{|}~
769 the level "none" has no values. so it should not speak any punctuation (sadly this is not respected by every TTS system)
770 if "some" is the current level the following are spoken: dot dash dollar tilde plus star slash backslash at.
771 same for most and all, you can add new levels. if you cycle punctuation levels they are recognized. the default punctuation level is set in settings.conf. The default is "some".
772 === Punctuation ===
773 The punctuation dictionary "[punctDict]" contains how the punctuation is spoken.
774 Example:
775 [punctDict]
776 _:===:line
777 speaks an _ as "line".
778 [punctDict]
779 _:===:underscore
780 speaks an _ as underscore.
781 for question mark an ? is appended to the word that the TTS system can announce the question correctly.
782 ==== Custom ====
783 The dict "[customDict]" is just for your own use, it just replace the key with the value without any special functionality. This might be used to fix incorrectly spoken words, make words more common, shorter or just for fun. :)
784 ==== Emoticons ====
785 The Emoticons dictionary "[emoticonDict]" by default contains some emoticons. it can replace ":)" with "smile" or "XD" with "loool" Making chat more colorful.
786 A nice feature with this dictionary is that you can toggle the substitution on or off during run time or in settings.conf. This is useful because while doing programming or other serious work you want to hear colons and perryns not smiles.
787 ====== Configuration ======
788 You can configure Fenrir in the following places (ordered by priority):
789 - Commandline Parameters ''-o'' see [[#Set settings coption|Set settings coption]]
790 - /etc/fenrir/settings/settings.conf see [[#Settings|Settigns]]
791 - <sourceTree>/config/settings/settings.conf see [[#Settings|Settigns]]
792 - hard coded defaults
793 ===== Commandline Arguments =====
794 ==== Set settings option ====
795 You can specify options that overwrite the setting.conf.
796 This is done with ''-o <list of options>'' parameter.
797 The list of options have the following syntax
798 fenrir -o "section#setting=value;section#setting=value"
799
800 For example changing the sound driver to gstreamer and disabling Braille
801 fenrir -o "sound#driver=gstreamerDriver;braille#enabled=False=False"
802 or change the debug level to verbose
803 fenrir -o "general#debugLevel=3"
804 You can find the available sections and variables here [[#Settings]]
805 See Syntax [[#settings.conf syntax]]
806 ==== settings.conf syntax ====
807 the syntax of the [[#Settings|settings.conf]] is quite simple and similar to a "*.ini" file, there are 4 different elements.
808 - Sections
809 - Settings
810 - Values
811 - Comments
812
813 A comment starts with a # and is ignored by Fenrir.
814 # this is a comment
815 To group settings we have sections.
816 A section can look like this:
817 [Section]
818 A setting looks like this:
819 settingName=Value
820
821 Example:
822 [sound]
823 # Turn sound on or off:
824 enabled=True
825 # Select the driver used to play sounds, choices are genericDriver and gstreamerDriver.
826 # Sox is default.
827 driver=genericDriver
828
829 ===== Settings =====
830 ==== Sound ====
831 The sound is configured in section ''[sound]''.
832
833 Turn sound on or off:
834 enabled=True
835 Values: on=''True'', off=''False''
836
837 Select the driver used to play sounds.
838 The genericDriver using Sox is the default.
839
840 driver=genericDriver
841
842 Available Drivers:
843 * ''genericDriver'' using the generic driver, for Fenrir <1.5 just use ''generic''
844 * ''gstreamerDriver'' using the gstreamer, for Fenrir <1.5 just use ''gstreamer''
845
846 These are the pack of sounds used for sound icons.
847 theme=default
848 By default we ship two sound packs.
849 - ''default'' opus encoded, for newer Sox versions
850 - ''default-wav'' wav encoded, just for compatibility
851 Sound packs are located at /usr/share/sounds/fenrirscreenreader/
852
853 Sound volume controls how loud the sounds for your selected sound pack are.
854 volume=1.0
855 Values: ''0.0'' is quietest, ''1.0'' is loudest.
856
857 === Generic Driver ===
858 The generic sound driver uses shell commands for play sound and frequencies.
859
860 ''generic_play_file_command'' defines the command that is used to play a sound file.
861 generic_play_file_command=<your command for playing a file>
862 ''generic_frequency_command'' defines the command that is used playing frequencies.
863 generic_frequency_command=<your command for playing a frequence>
864
865 The following variables are substituted in ''generic_play_file_command'' and ''generic_frequency_command'':
866 * ''fenrir_volume'' = the current volume setting
867 * ''fenrir_sound_file'' = the sound file for an sound icon
868 * ''fenrir_frequency'' = the frequency to play
869 * ''fenrir_duration'' = the duration of the frequency
870
871 Example generic_play_file_command (default)
872 generic_play_file_command=play -q -v fenrir_volume fenrir_sound_file
873 Example generic_frequency_command (default)
874 generic_frequency_command=play -q -v fenrir_volume -n -c1 synth fenrir_duration sine fenrir_frequency
875 ==== Speech ====
876 Speech is configured in section ''[speech]''.
877 Turn speech on or off:
878 enabled=True
879 Values: on=''True'', off=''False''
880
881 # Select speech driver, options are speechdDriver (default), genericDriver, dectalkDriver, dectalkUsbDriver, litetalkDriver, doubletalkDriver or tripletalkDriver:
882 driver=speechdDriver
883 #driver=genericDriver
884 #driver=dectalkDriver
885 #driver=dectalkUsbDriver
886 #driver=litetalkDriver
887 #driver=doubletalkDriver
888 #driver=tripletalkDriver
889
890 Select the driver used to generate speech output.
891
892 driver=speechdDriver
893
894 Available Drivers:
895 * ''genericDriver'' using the generic driver, for Fenrir <1.5 this is not available
896 * ''speechdDriver'' using speech-dispatcher, for Fenrir <1.5 just use ''speechd''
897 * ''dectalkDriver'' using DECtalk-compatible serial hardware or RPITalk
898 * ''dectalkUsbDriver'' using the native Access Solutions DECtalk USB
899 * ''litetalkDriver'' using LiteTalk-compatible serial hardware or RPITalk
900 * ''doubletalkDriver'' using DoubleTalk LT-compatible serial hardware
901 * ''tripletalkDriver'' using TripleTalk-compatible serial hardware
902
903 The rate selects how fast Fenrir will speak.
904 rate=0.65
905 Values: Range Minimum:''0.0'' is slowest, Maximum:''1.0'' is fastest.
906
907 Pitch controls the pitch of the voice.
908 pitch=0.5
909 Values: Range Minimum:''0.0'' is lowest, Maximum:''1.0'' is highest.
910
911 A Pitch for capital letters can be set.
912 capital_pitch=0.9
913 Values: Range Minimum:''0.0'' is lowest, Maximum:''1.0'' is highest.
914
915 The Volume controls the loudness of the voice.
916 volume=1.0
917 Values: Range Minimum:''0.0'' is quietest, Maximum:''1.0'' is loudest.
918
919 Some speech drivers like speechdDriver can support various modules. these can be set here.
920 module=espeak
921 Values: Text, Consult speech-dispatcher's configuration to see what modules are available.
922
923 Voice selects the varient you want to use, for example, f5 will use the female voice #5 in Espeak,
924 or if using the Espeak module in Speech-dispatcher. To find out which voices are available, consult the documentation provided with your selected synthesizer.
925 voice=
926 Values: Text, see your TTS synths documentation what is available.
927
928 Select the language you want Fenrir to use.
929 language=english-us
930 Values: Text, see your TTS synths documentation what is available.
931
932 Serial hardware speech drivers use a serial device. Set an explicit path.
933 hardware_device=/dev/ttyACM0
934 hardware_device=/dev/ttyUSB0
935 hardware_device=/dev/ttyS0
936
937 Hardware speech drivers use 9600 baud by default.
938 hardware_baud_rate=9600
939
940 The doubletalkDriver targets DoubleTalk LT-style serial devices. It does not support the internal DoubleTalk PC ISA card.
941 The dectalkUsbDriver autodetects the native Access Solutions DECtalk USB, USB ID 0dd0:2001. It requires PyUSB and a libusb backend and ignores the serial device and baud-rate settings. Other USB hardware speech synthesizers are supported only when Linux exposes them as a serial tty such as /dev/ttyACM0 or /dev/ttyUSB0.
942
943 Read new text as it occurs
944 auto_read_incoming=True
945 Values: on=''True'', off=''False''
946
947 === Generic Driver ===
948 The generic speech driver uses shell commands for speech synthisus.
949
950 ''generic_speech_command'' defines the command that is executed for creating speech
951 The following variables are substituted in ''generic_speech_command'':
952 * ''fenrir_text'' = is the text that should be spoken
953 * ''fenrir_module'' = may be the speech module like used in speech-dispatcher, not every TTY needs this
954 * ''fenrir_language'' = the language to speak in
955 * ''fenrir_voice'' = is the current voice that should be used
956 * ''fenrir_volume'' = is replaced with the current volume
957 * ''fenrir_pitch'' = is replaced with the current pitch
958 * ''fenrir_rate'' = is replaced with the current speed (speech rate)
959
960 Example generic_speech_command (default):
961 generic_speech_command=espeak -a fenrir_volume -s fenrir_rate -p fenrir_pitch -v fenrir_voice "fenrir_text"
962
963 These are the minimum and maximum values of the TTS system used in generic_speech_command. They are needed to calculate the abstract range in volume, rate and pitch 0.0 - 1.0.
964
965 fenrir_min_volume=0
966 fenrir_max_volume=200
967 fenrir_min_pitch=0
968 fenrir_max_pitch=99
969 fenrir_min_rate=80
970 fenrir_max_rate=450
971
972 The current volume, pitch and rate is calculated like this
973 value = min + [volume,pitch,rate] * (min - max )
974 ==== Braille ====
975 Braille is a WIP and not ready yet.
976 Braille support can be configured in section ''[braille]''.
977
978 Turn braille on or off:
979 enabled=False
980 Values: on=''True'', off=''False''
981
982 Select the driver used for communication with a braille device.
983 driver=brlapiDriver
984 Values: Text, available Driver
985 Available Drivers:
986 * ''brlttyDriver'' using brltty for braille communication, for Fenrir <1.5 just use ''brltty''
987
988 The Braille layout can be configured here
989 layout=en
990 Values: Text, see braille driver for layouts.
991
992 What should the flush timeout relate to
993 flushMode=word
994 Values: Text, an flushMode
995 Existing flushModes:
996 * ''word'' = flush after (number of words to display) * seconds
997 * ''char'' = flush after (number of chars to display) * seconds
998 * ''fix'' = flush after X seconds
999 * ''none'' = no automatic flush (manual via shortcut)
1000
1001 Seconds to flush (see flushMode)
1002 flushTimeout=3
1003 Values: Integer, in Seconds or ''-1'' = no automatic flush (manual via shortcut)
1004 The total flush time calculates in relation to flushMode.
1005
1006 How should the Braille cursor focus be tracked?
1007 cursorFocusMode=page
1008 Values: Text, an existing cursor focus mode
1009 Available cursor focus modes:
1010 * ''page'' = if the cursor crosses the border move to next page and start at begin
1011 * ''fixCell'' = ajust the cursor on a special cell where it is always placed. the display scroll here more smooth.
1012
1013
1014 Define the cell on the Braille device where Fenrir should scroll and keep the cursor
1015 fixCursorOnCell=-1
1016 Values: Integer
1017 * ''0'' = first cell on device,
1018 * ''-1'' = last cell on device
1019 * ''>0'' = fix cell number
1020
1021 What cursor should Fenrir show on the Braille device
1022 cursorFollowMode=review
1023 Values: Text, an exsiting cursor following mode.
1024 Existing cursor following mode:
1025 * ''none'' = no automatic toggle command used
1026 * ''review'' = priority to review
1027 * ''last'' = follow last used cursor
1028
1029 number of cells in panning (horizontal). How many cell should be panned on press the routing key?
1030 panSizeHorizontal=0
1031 Values: Integer,
1032 * ''0'' = display size
1033 * ''>0'' number of cells
1034 ==== Screen ====
1035 The settings for screen access are configured in the ''[screen]'' section.
1036 ''vcsaDriver'' is used for Linux TTYs, and ''ptyDriver'' is used by X11 terminal mode.
1037
1038 The driver to get the information from the screen:
1039 driver=vcsaDriver
1040 Available Drivers:
1041 * ''vcsaDriver'' using the VCSA driver (for TTYs), for Fenrir <1.5 just use ''vcsa''
1042 The encoding of the screen
1043 encoding=cp850
1044 Values:''cp850'' is used for Western languages like USA or Europe.
1045
1046 The driver updates Fenrir with changes on the screen.
1047 screen_update_delay=0.05
1048 Values: in Seconds
1049
1050 If you want Fenrir to not be active on any screen for various reasons. Maybe an X server or Wayland is running on that screen. You can make Fenrir ignore it or multiple screens seperated by '','' with:
1051 suspendingScreen=
1052 Values: Depends on driver:
1053 * VCSA: the number of the TTY. TTY6 is ''6''.
1054 Example ignore TTY1 and TTY2:
1055 suspendingScreen=1,2
1056
1057 There is also the ability to let Fenrir auto detect screens that are running an X server. So Screens running an GUI can be ignored.
1058 autodetectSuspendingScreen=True
1059 Values: on=''True'', off=''False''
1060
1061 ==== Keyboard ====
1062 The settings for keyboard and input related configuration is located in the section ''[keyboard]'' of the ''settings.conf'' file.
1063
1064 Select the driver used for grabbing keybord input and for recieving shortcuts.
1065 driver=evdevDriver
1066 Values: Text, available Driver
1067 Available Drivers:
1068 * ''evdevDriver'' uses the evdev input system of linux, for Fenrir <1.5 just use ''evdev''
1069
1070 You can let Fenrir know about what input devices are to be used.
1071 device=ALL
1072 Values:
1073 * ''ALL'' use all devices with key capabilities.
1074 * ''NOMICE'' Exclude mices from handling.
1075 * ''<Device Name>'' just use the device with the given name.
1076
1077 Gives Fenrir exclusive access to the keyboard and lets it control keystrokes. This is needed to intercept Fenrir related shortcuts.
1078 grab_devices=True
1079 Values: on=''True'', off=''False''
1080
1081 The following makes sense if you are using a second screenreader and want to have some hooked events. Fenrir ignores all shortcuts then.
1082 ignore_shortcuts=False
1083 Values: on=''True'', off=''False''
1084
1085 The current keyboard layout used for shortcuts.
1086 keyboard_layout=desktop
1087 Values: An absolute Path to a Keyboard definition file or a Filename without extension located in ''/etc/fenrir/keyboard''
1088
1089 Announce characters while typing.
1090 charEcho=False
1091 Values: on=''True'', off=''False''
1092
1093 Announce deleted characters
1094 char_delete_echo=True
1095 Values: on=''True'', off=''False''
1096
1097 Announce word after pressing space
1098 word_echo=False
1099 Values: on=''True'', off=''False''
1100
1101 Interrupt speech on any keypress
1102 interrupt_on_key_press=False
1103 Values: on=''True'', off=''False''
1104
1105 You can filter the keys that speech should interrupt
1106 interrupt_on_key_press_filter=
1107 Values: (List) empty = all keys, otherwise interrupt with specified keys
1108
1109 The timeout that is used for double tap shortcuts
1110 double_tap_timeout=0.2
1111 Values: Seconds
1112 ==== General ====
1113 Overall settings can be configured from the section ''[general]''.
1114
1115 Set the current debug level:
1116 debugLevel=1
1117 Values: off=0, error=1, warning=2, info=3
1118
1119 the current punctuation and dict file in use:
1120 punctuation_profile=default
1121 Values: Text, see available profiles in ''/etc/fenrir/punctuation'' or in ''sourceTree/config/punctuation''
1122
1123 The current punctuation level in use:
1124 punctuation_level=some
1125 Values: Text, See available levels in the used punctuation file.
1126
1127 Respect pause for punctuations:
1128 respect_punctuation_pause=True
1129 Values: on=''True'', off=''False''
1130
1131 Add a pause on Line break:
1132 new_line_pause=True
1133 Values: on=''True'', off=''False''
1134
1135 Specify the path where the clipboard should be exported to.
1136 See [[#export clipboard to file|export clipboard to file]].
1137 The variable ''$user'' is replaced by the current logged username.
1138 [clipboard]
1139 clipboard_export_path=/tmp/fenrirClipboard
1140 Values: Text, Systemfilepath
1141
1142 The number of available clipboards:
1143 [clipboard]
1144 number_of_clipboards=10
1145 Values: Integer, 1 - 999
1146
1147 Replace emoticons like :) or ;) with text insertions:
1148 emoticons=True
1149 Values: on=''True'', off=''False''
1150
1151 Define the current Fenrir keys:
1152 fenrir_keys=KEY_KP0,KEY_META,KEY_INSERT
1153 Values, Text list, separated by comma.
1154
1155 Define the current script keys:
1156 scriptKey=KEY_COMPOSE
1157 Values, Text list, separated by comma.
1158
1159 The time format to be used for (time command) output:
1160 timeFormat=%H:%M:%P
1161 Values: see python specification for [[https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior|datetime.strftime]]
1162
1163 The date format to be used for (date command) output:
1164 dateFormat=%A, %B %d, %Y
1165 Values: see python specification for [[https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior|datetime.strftime]]
1166
1167 Enable or Disable spellcheck whilst typing:
1168 auto_spell_check=True
1169 Values: on=''True'', off=''False''
1170
1171 The use of the dictionary with spellcheck:
1172 spell_check_language=en_US
1173 Values: Text, see aspell dictionary's.
1174
1175 Folder Path for your scripts "scriptKey" functionality:
1176 scriptPath=/usr/share/fenrirscreenreader/scripts
1177 Values: Text, Existing path on file system.
1178
1179 Override commands or create new ones without changing the Fenrir defaults:
1180 commandPath=/usr/share/fenrirscreenreader/commands
1181 Values: Text, Existing path on file system.
1182 Subfolders in commandPath are:
1183 * ''commands'' = to create shortcut commands
1184 * ''onInput'' = executed while typing
1185 * ''onScreenChange'' = executed on change the screen (change from TTY4 to TTY6)
1186 * ''onScreenUpdate'' = executed when the screen is captured
1187
1188 ==== Focus ====
1189 The configuration for basic focus is in the section ''[focus]''.
1190 Follow the text cursor:
1191 cursor=True
1192 Values: on=''True'', off=''False''
1193
1194 Follow highlighted text changes (Highlight Tracking):
1195 highlight=False
1196 Values: on=''True'', off=''False''
1197 ==== Review ====
1198 Configurations for the review mode are in the section ''[review]''.
1199
1200 If "next word/ char" or "prev word/char" create a linebreak, announce it:
1201 lineBreak=True
1202 Values: on=''True'', off=''False''
1203
1204 If "next word/ char" or "prev word/char" cannot be performed because you reached the end of the screen, announce it:
1205 endOfScreen=True
1206 Values: on=''True'', off=''False''
1207
1208 Leave the review mode when pressing a key:
1209 leaveReviewOnKeypress=False
1210 Values: on=''True'', off=''False''
1211
1212 Leave the review mode when changing the screen (From TTY3 to TTY4):
1213 leave_review_on_screen_change=True
1214 Values: on=''True'', off=''False''
1215 ==== Time ====
1216 The automated time announcement is configured in the section ''[time]''.
1217 Time announcement is disabled by default.
1218 Turn time announcement on or off:
1219 enabled=True
1220 Values: on=''True'', off=''False''
1221
1222 Should the time be announced:
1223 presentTime=True
1224 Values: on=''True'', off=''False''
1225
1226 Should the date be announced (just on date change):
1227 presentDate=True
1228 Values: on=''True'', off=''False''
1229
1230 Announce after a given period of seconds:
1231 delaySec=0
1232 Value: in Seconds, 0 = Deactivated
1233
1234 Announce after fixed minutes in an hour. if delaySec is >0 onMinutes is ignored:
1235 onMinutes=00,30
1236 Example every 15 minutes:
1237 onMinutes=00,15,30,45
1238
1239 Just play a soundicon, (not interrupting):
1240 announce=True
1241 Values: on=''True'', off=''False''
1242
1243 Interrupt current speech for time announcement:
1244 interrupt=False
1245 Values: on=''True'', off=''False''
1246 ====== Customization ======
1247 ===== Scripting =====
1248 Scripts can be in any language, bash, python, sh or others. Place your scripts in the directory /usr/share/fenrirscreenreader/scripts/ (the path is configurable in settings.conf).
1249 The script key is the applications key. Usually this key can be found on the keyboard located just left of the right most control key.
1250 When you name a script, the key name appears in the script seperated by the sequence __-__. So, for example, if you have a python weather script you want assigned to the script key plus the letter w you would name the script /usr/share/fenrirscreenreader/scripts/weather__-__key_w.py
1251 Then, to access the script, simply press the script key and the letter w.
1252 Scripts must be executable. So, make sure to chmod 755 your script when you place it in the scripts directory.
1253 The script gets some parameters from fenrir when it is executed. So that information is available in your script then.
1254
1255 ==== Parameterlist ====
1256 ^Parameter ^Content ^
1257 |$1|Username of the current logged in user|
1258
1259 ==== Examples ====
1260 Script that just speaks the current username when pressing ScriptKey + H.\\
1261 File: ''/usr/share/fenrirscreenreader/scripts/helloWorld__-__key_h.sh'':
1262 #!/bin/bash
1263 echo $1
1264
1265
1266 ===== Commands =====
1267 You can place your own commands in "/usr/share/fenrirscreenreader/commands" (path is configurable in settings.conf).
1268 Commands are python files with a special scheme. You can assign them to a shortcut using the filename without an extension or place them in a hook trigger like OnInput or OnScreenChange. For further information see developer guide.
1269 Good Examples: [[https://git.stormux.org/storm/fenrir/src/branch/master/src/fenrirscreenreader/commands/commands/date.py|"date.py"]] (announce the Date), [[https://git.stormux.org/storm/fenrir/src/branch/master/src/fenrirscreenreader/commands/commands/shut_up.py|"shut_up.py"]] (interrupt output)
1270 the basic scheme for a command is as follows:
1271
1272 from core import debug
1273
1274 class command():
1275 def __init__(self):
1276 pass
1277 def initialize(self, environment):
1278 self.env = environment
1279 def shutdown(self):
1280 pass
1281 def getDescription(self):
1282 return _('No description found')
1283 def run(self):
1284 pass
1285 def setCallback(self, callback):
1286 pass
1287
1288 * [[https://git.stormux.org/storm/fenrir/src/branch/master/src/fenrirscreenreader/commands/command_template.py|Template lives here]]
1289 * The class needs to have the name "command".
1290 * "initialize" is running once whilst loading the command.
1291 * "shutdown" is running on unload like the command (quit fenrir)
1292 * "getDescriptsion" just returns an string. That String is used in Tutorial Mode.
1293 * "run" is executed when the command is invoked. (shortcut is pressed, or trigger isn't running)
1294 * setCAllback is currently not used. and has no functionality yet.
1295
1296
1297 ====== Troubleshooting ======
1298 ===== Fenrir does not start =====
1299 - Have you installed all the dependencies [[#Support and Requirements|Support and Requirements]]
1300 - Try using master, a lot of changes take place there to make Fenrir compatible with more systems
1301 ===== Fenrir does not utilize the shortcuts =====
1302 - Make sure you have python3-evdev installed
1303 - Use the latest Fenrir version
1304 - Make sure that Fenrir has permission to /dev/input/* and /dev/uinput (or run it as root)
1305 ===== No sound at all =====
1306 - Run the script to configure Pulseaudio once as root and once as your user. This will setup Pulseaudio but require a restart of Pulseaudio. The script is located in ''tools/configure_pulse.sh''
1307 - Use ALSA
1308 - [[https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/|Configure Pulse system wide]] (Not recommended)
1309 - Use gstreamerDriver: change ''settings.conf'' in the section ''sound'' the line ''driver=genericDriver'' to ''driver=gstreamerDriver''
1310 - Use wave sound-icons: change ''settings.conf'' in the section ''sound'' the line ''theme=default'' to ''theme=default-wav''
1311 - Use most current version of [[http://sox.sourceforge.net/|sox]] with opus support
1312 - Try [[https://github.com/i-rinat/apulse|apulse]] (not tested by myself but might work). Please give me feedback if you try it out.
1313 ===== You get sound-icons but no speech =====
1314 - If you are using speech-dispatcher run "spd-conf" once as user and as root.
1315 - You can test if speech-dispatcher works by invoking it as root\\ ''sudo spd-say "hello world"''
1316 ===== Bugreports and feature requests =====
1317 Please report Bugs and feature requests to:
1318 [[https://git.stormux.org/storm/fenrir/issues|https://git.stormux.org/storm/fenrir/issues]]
1319
1320 for bugs please provide a [[#Howto create a debug file|debug]] file that shows the issue.
1321 ==== How-to create a debug file ====
1322 - Start fenrir in debug mode\\ ''sudo fenrir -d''
1323 - Do your stuff to reproduce the problem
1324 - Stop fenrir (''fenrirKey + q'')
1325 the debug file is located in ''/tmp/fenrir.log''. If another Fenrir debug
1326 instance is already using it, check ''/tmp/fenrir2.log'',
1327 ''/tmp/fenrir3.log'', etc.
1328
1329 Please be as precise as possible to make it easy to solve the problem.