fenrir/README.md

139 lines
4.4 KiB
Markdown
Raw Permalink Normal View History

2017-01-30 10:45:01 -05:00
# Fenrir
2022-11-20 11:07:04 -05:00
2018-06-04 18:28:30 -04:00
A modern, modular, flexible and fast console screenreader.
2018-06-04 18:26:56 -04:00
It should run on any operating system. If you want to help, or write drivers to make it work on other systems, just let me know.
This software is licensed under the LGPL v3.
2016-07-05 05:16:34 -04:00
2022-11-20 11:07:04 -05:00
2024-12-10 12:32:09 -05:00
## OS Requirements
2022-11-20 11:07:04 -05:00
2018-06-04 18:26:56 -04:00
- Linux (ptyDriver, vcsaDriver, evdevDriver)
- macOS (ptyDriver)
- BSD (ptyDriver)
- Windows (ptyDriver)
2022-11-20 11:07:04 -05:00
2024-12-10 12:32:09 -05:00
## Core Requirements
2022-11-20 11:07:04 -05:00
2017-01-30 10:45:01 -05:00
- python3 >= 3.3
- screen, input, speech, sound drivers dependencies see "Features, Drivers, Extras".
2016-07-07 08:37:10 -04:00
2022-11-20 11:07:04 -05:00
2024-12-10 12:32:09 -05:00
## Features, Drivers, Extras, Dependencies
2022-11-20 11:07:04 -05:00
2024-12-10 12:32:09 -05:00
### Input Drivers:
2017-02-23 05:33:08 -05:00
1. "evdevDriver" input driver for linux evdev
2018-09-15 14:03:00 -04:00
- python-evdev >=0.6.3 (This is commonly referred to as python3-evdev by your distribution)
2017-07-07 15:44:49 -04:00
- python-pyudev
2017-01-30 10:45:01 -05:00
- loaded uinput kernel module
- ReadWrite permission
- /dev/input
- /dev/uinput
2018-09-15 14:03:00 -04:00
2. "ptyDriver" terminal emulation input driver
2018-04-09 07:44:54 -04:00
- python-pyte
2017-01-30 10:47:13 -05:00
2022-11-20 11:07:04 -05:00
2024-12-10 12:32:09 -05:00
### Screen Drivers:
2022-11-20 11:07:04 -05:00
2017-02-23 05:33:08 -05:00
1. "vcsaDriver" screen driver for linux VCSA devices
- python-dbus
2017-02-23 05:43:31 -05:00
- Read permission to the following files and services:
2017-01-30 10:45:01 -05:00
- /sys/devices/virtual/tty/tty0/active
2017-07-23 15:25:00 -04:00
- /dev/tty[1-64]
2017-01-30 10:45:01 -05:00
- /dev/vcsa[1-64]
2017-08-03 17:13:43 -04:00
- read logind DBUS
2018-04-09 07:47:13 -04:00
2. "ptyDriver" terminal emulation driver
2018-04-09 07:44:54 -04:00
- python-pyte
2022-11-20 11:07:04 -05:00
2024-12-10 12:32:09 -05:00
### Speech Drivers:
2022-11-20 11:07:04 -05:00
2018-06-08 04:41:32 -04:00
1. "genericDriver" (default) speech driver for sound as subprocess:
2018-04-09 07:44:54 -04:00
- espeak or espeak-ng
2024-12-10 12:32:09 -05:00
2. "speechdDriver" speech driver for Speech-dispatcher:
- Speech-dispatcher
2016-11-16 05:59:16 -05:00
- python-speechd
2024-12-10 12:32:09 -05:00
3. "emacspeakDriver" speech driver for emacspeak
2018-09-25 09:58:35 -04:00
- emacspeak
2017-01-30 10:47:13 -05:00
2022-11-20 11:07:04 -05:00
2024-12-10 12:32:09 -05:00
### Sound Drivers:
2022-11-20 11:07:04 -05:00
2018-04-09 07:47:13 -04:00
1. "genericDriver" (default) sound driver for sound as subprocess:
- Sox
2017-02-23 05:33:08 -05:00
2. "gstreamerDriver" sound driver for gstreamer
- gstreamer >=1.0
2016-11-16 05:59:16 -05:00
- GLib
2017-01-30 10:47:13 -05:00
2022-11-20 11:07:04 -05:00
2024-12-10 12:32:09 -05:00
## Extras:
2022-11-20 11:07:04 -05:00
2017-02-23 05:43:31 -05:00
1. spellchecker
2016-11-16 05:59:16 -05:00
- python-pyenchant
- aspell-YourLanguageCode (example aspell-en for us English)
2. Unix daemon (also needed for Systemd):
2016-11-16 05:59:16 -05:00
- python-daemonize
2017-02-26 19:39:19 -05:00
3. Modify system volume:
- pyalsaaudio (needs libasound2's headers).
2016-09-16 05:50:53 -04:00
2022-11-20 11:07:04 -05:00
2024-12-10 12:32:09 -05:00
## installation
2022-11-20 11:07:04 -05:00
If there is a package for your distrobution of choice, please let us know so we can add it here.
2024-12-10 12:32:09 -05:00
- Archlinux: PKGBUILD in AUR
- fenrir: stable release
- fenrir-git: Bleeding edge release
2019-01-26 04:46:05 -05:00
- Manual:
2024-12-10 12:32:09 -05:00
- install "espeak" and "sox" with your package manager
- sudo pip install -r requirements.txt
- run install.sh or uninstall.sh as root
- You can also just run it from Git without installing:
Requires root privileges
2022-11-20 11:07:04 -05:00
cd src/fenrir/
sudo ./fenrir
Settings "settings.conf" is located in the "config" directory or after installation in /etc/fenrir/settings.
Take care to use drivers from the config matching your installed drivers.
2016-11-16 05:59:16 -05:00
By default it uses:
2017-01-30 10:45:01 -05:00
- sound driver: genericDriver (via sox, could configured in settings.conf)
2018-04-09 07:47:13 -04:00
- speech driver: genericDriver (via espeak or espeak-ng, could configured in settings.conf)
2017-01-30 10:45:01 -05:00
- input driver: evdevDriver
2022-11-20 11:07:04 -05:00
2024-12-10 12:32:09 -05:00
## Configure pulseaudio
2017-07-25 07:36:46 -04:00
2022-11-20 11:07:04 -05:00
Pulseaudio by default only plays sound for the user its currently running for. As fenrir is running as root, your local user does not hear the sound and speech produced by fenrir.
for this fenrir provides a script to configure pulseaudio to stream the sound played as root to your local user. This is not a issue of fenrir but this is how pulseaudio works.
just run the configuration script twice (once as user, once as root):
2020-04-21 08:17:12 -04:00
2022-11-20 11:07:04 -05:00
/usr/share/fenrirscreenreader/tools/configure_pulse.sh
sudo /usr/share/fenrirscreenreader/tools/configure_pulse.sh
2020-04-21 08:17:12 -04:00
2022-11-20 11:07:04 -05:00
The script is also located in the tools directory in git
2024-12-10 12:32:09 -05:00
## Configure pipewire
2022-11-20 11:07:04 -05:00
Pipewire by default only plays sound for the user its currently running for. As fenrir is running as root, your local user does not hear the sound and speech produced by fenrir.
for this fenrir provides a script to configure pipewire to stream the sound played as root to your local user. This is not a issue of fenrir but this is how pipewire works.
just run the configuration script twice (once as user, once as root):
/usr/share/fenrirscreenreader/tools/configure_pipewire.sh
sudo /usr/share/fenrirscreenreader/tools/configure_pipewire.sh
The script is also located in the tools directory in git
2020-04-21 08:17:12 -04:00
2024-12-10 12:32:09 -05:00
## localization
2020-04-22 14:31:14 -04:00
copy fenrir.mo translations file from fenrir/locale/your_language/LC_MESSAGES/fenrir.mo to /usr/share/locale/your_language/LC_MESSAGES/fenrir.mo
2022-11-20 11:07:04 -05:00
2020-04-22 14:31:14 -04:00
2024-12-10 12:32:09 -05:00
## Documentation and Support
2022-11-20 11:07:04 -05:00
2024-12-10 12:32:09 -05:00
- Email list: [stormux+subscribe@groups.io](mailto:stormux+subscribe@groups.io?subject=subscribe) with the subject subscribe.
- [Fenrir Wiki](https://git.stormux.org/storm/fenrir/wiki)
- IRC: irc.stormux.org #stormux