Accessible Arena on Linux
MTG Arena has no Linux version, but it runs well under Steam’s Proton, Lutris or plain Wine, and MelonLoader runs with it. The one thing that does not carry over by itself is speech: NVDA and JAWS do not exist on a Linux desktop, and Orca cannot read the game window. The mod’s speech library, Prism, reaches the Linux side through its Wine bridges, so you can choose what speaks, the same way Windows players choose their screen reader:
- Orca: speaks through your screen reader, with your Orca voice and rate. The automatic choice when Orca runs
- Speech Dispatcher: the speech service Orca and most desktops use, with its own voice settings
- Spiel: the newer speech service, where installed
- Speech Dispatcher (direct): the mod’s own route to speech-dispatcher. Needs none of Prism’s bridge files and also speaks to an nvda2speechd server; the fallback when the bridges cannot load
- SAPI and the other Windows backends, if your Wine or Proton provides them
Everything else (keyboard navigation, announcements, settings, updates) is the same code as on Windows.
Tested with the Wizards build of MTG Arena 0.1.14589 under Wine 9.0 and MelonLoader 0.7.3: install.sh built the mod against the game files, the mod started the bridge itself, and speech-dispatcher spoke the launch message, the loading and download progress and the first screen.
Requirements
- MTG Arena installed through Steam (Proton), Lutris or Wine
- speech-dispatcher (package
speech-dispatcheron Debian, Ubuntu, Fedora and Arch) - Python 3 (used by the installer and the small speech bridge described below)
- Orca is optional. Without it the mod speaks through speech-dispatcher
Installation
From a copy of this repository, or just its linux folder:
cd linux
./install.sh
The installer:
- finds MTGA in your Steam libraries (native, Flatpak or Snap Steam; the default Steam location is
~/.local/share/Steam/steamapps/common/MTGA), in a Lutris prefix, or in~/.wine; pass--game-dir "/path/to/MTGA"if it does not - installs MelonLoader, unless it is already there
- builds
AccessibleArena.dllfrom the source folder it sits in, against your own game files, and installs it withprism.dll. If no .NET SDK (6.0 or newer) is installed, it first downloads a private one into~/.local/share/accessible-arena/dotnet, without root. The build log goes to~/.local/share/accessible-arena/build.log --dll path/to/AccessibleArena.dllinstalls a DLL you built yourself instead;--releaseinstalls the latest release DLL (only useful once releases include Linux support)- installs Prism’s Wine bridges: the placeholder files
prism_orca_bridge.dll,prism_speech_dispatcher_bridge.dllandprism_spiel_bridge.dllnext toprism.dllin the game folder, and their Linux halves (*.dll.so) in the game folder’sprism-winesubfolder. They come from the same Prism release asprism.dll(kept inthird_party/prism/wine) - installs the mod’s own speech bridge as a systemd user service (skip with
--no-service) - creates a shortcut “MTG Arena (Accessible Arena)” on the desktop and in the applications menu (skip with
--no-shortcut). It runs~/.local/share/accessible-arena/launch-mtga.sh, which starts the speech bridge when nothing answers on its port and then starts the game through Steam, or through Wine with the right prefix and DLL override.--uninstallremoves it - sets the launch options the mod needs: MelonLoader loads through
version.dll, which Wine replaces with its own copy unless told otherwise, and Wine finds Prism’s bridges only throughWINEDLLPATH. For Steam it addsWINEDLLOVERRIDES="version=n,b"andWINEDLLPATH="<game folder>/prism-wine:$WINEDLLPATH"to MTG Arena’s launch options in Steam’suserdata/<account>/config/localconfig.vdf, keeping any options you already had, and leaves a backup next to it (localconfig.vdf.accessible-arena-backup). Steam must be fully closed for this, because it rewrites that file when it exits; if it is running, the installer says so and you can close Steam and run it again. For Lutris and plain Wine the desktop shortcut starts the game with both
If the installer could not set it, set the launch option by hand:
- Steam: MTG Arena’s Properties, General, Launch options:
WINEDLLOVERRIDES="version=n,b" WINEDLLPATH="/path/to/MTGA/prism-wine:$WINEDLLPATH" %command% - Lutris: Configure, Runner options, DLL overrides, add
versionwith valuen,b; System options, Environment variables, addWINEDLLPATHwith value/path/to/MTGA/prism-wine - Plain Wine:
WINEDLLOVERRIDES="version=n,b" WINEDLLPATH=/path/to/MTGA/prism-wine wine MTGA.exe
Without WINEDLLPATH the mod still speaks, through its own route (Speech Dispatcher (direct)); only Orca, Prism’s Speech Dispatcher and Spiel are missing.
To update, download the new source and run ./install.sh again. The in-game update (F5) does not replace a build made by the installer, because a release DLL might lack the Linux speech code; it tells you to run the installer instead.
To remove the mod: ./install.sh --uninstall. MelonLoader stays in place; the private .NET SDK is removed.
How speech works under Wine
Automatic selection (the default “Speech output” setting) tries, in order:
- Prism’s Wine bridges: Orca, then Speech Dispatcher, then Spiel, the first whose Linux service is reachable. Each bridge is a Linux library loaded into Wine (found through
WINEDLLPATH) that talks to the service directly - The mod’s own route, Speech Dispatcher (direct), described below
- Any other Prism backend, such as SAPI under Proton
A backend picked by name in F2 is tried first; if it is not available, the same order runs, so the mod never stays silent when anything can speak.
The mod’s own route: Speech Dispatcher (direct)
Windows code inside Wine cannot open speech-dispatcher’s Unix socket, but its TCP sockets are ordinary Linux sockets, and Wine can start native Linux programs. This route tries, in order:
- SSIP (speech-dispatcher’s protocol) over TCP on
127.0.0.1:6560. Something answers there when the bridge service is running, or when speech-dispatcher itself is configured forinet_socket. - An nvda2speechd server on
ws://127.0.0.1:3457(orNVDA2SPEECHD_HOST). If you already run it for other Windows games, the mod uses it as it is; nvda2speechd’s client DLL is not needed, the mod speaks its protocol itself. - If nothing answers, the mod writes the bridge (
UserData/AccessibleArena-speechd-bridge.py) and starts it with the system Python, then connects to it. The bridge exits 30 seconds after the game closes. - If that fails too, one
spd-saycall per announcement. The MelonLoader log (MelonLoader/Latest.login the game folder) says what speaks, in a[Speech]line containingready: for examplenormal backend = Orca, orSpeech Dispatcher (direct) (SSIP over TCP 127.0.0.1:6560).
Steam runs Proton games inside a container (pressure-vessel) that may not see the host’s speech-dispatcher socket or programs. The bridge service runs outside the container and only shares a TCP port with the game, which works either way. That is why the installer sets it up as a service.
The bridge listens on 127.0.0.1 only. Any program of any user on the same computer can send it text to speak, the same as with speech-dispatcher’s own inet_socket mode.
Settings
“Speech output” in the mod settings (F2) lists Speech Dispatcher (direct) first under Wine, then Prism’s backends: Orca, Speech Dispatcher, Spiel and the Windows ones. The Windows ones (NVDA, JAWS and so on) cannot speak under Wine and fall back to the automatic order.
Under Wine, urgent announcements go through the same backend as the rest; an urgent one cancels what the mod is saying. The urgent volume setting only applies to the SAPI channel on Windows.
Ctrl stops speech, as it does in NVDA. Under Windows the screen reader does this itself; under Wine the mod does it, whichever backend speaks. Ctrl still works as a modifier for the mod’s shortcuts.
“Speech rate” in the mod settings (F2, right after “Speech output”, only under Wine) sets how fast the mod speaks: Left and Right arrows change it in steps of 10 from -100 to +100, Enter steps faster and wraps around to the slowest. “Default” (0) keeps the service’s own rate. It applies to Speech Dispatcher (direct) and to Prism’s Speech Dispatcher and Spiel; Orca keeps the rate set in Orca. With an nvda2speechd server the rate cannot be changed from the mod; set it in nvda2speechd or with spd-conf.
The direct route’s speech-dispatcher connection is separate from Orca’s, so Orca’s rate and voice do not apply to it; speech-dispatcher’s defaults do (set them with spd-conf). To set them for the mod only, add environment variables to the launch options, before %command%:
AA_SPEECHD_RATE: -100 to 100. Used only while the “Speech rate” setting is at DefaultAA_SPEECHD_PITCH: -100 to 100AA_SPEECHD_VOLUME: -100 to 100AA_SPEECHD_LANGUAGE: language code, for exampleplordeAA_SPEECHD_MODULE: output module, for exampleespeak-ngorrhvoiceAA_SPEECHD_VOICE: synthesis voice name of that module
Example for Steam: AA_SPEECHD_RATE=40 AA_SPEECHD_LANGUAGE=pl WINEDLLOVERRIDES="version=n,b" %command%
Other variables:
AA_SPEECHD_PORT: TCP port of the bridge (default 6560). Change it in the service file tooSPEECHD_ADDRESS=inet_socket:host:port: connect to a speech-dispatcher at that addressAA_FORCE_LINUX_SPEECH=1or0: override Wine detection
These variables only affect Speech Dispatcher (direct).
Troubleshooting
No speech at all:
- Look in
MelonLoader/Latest.logfor[Speech]lines.no Prism Wine bridge is livemeans Orca, Prism’s Speech Dispatcher and Spiel were not reachable: check that the launch options containWINEDLLPATHand that the game folder has aprism-winefolder - Check the bridge service:
systemctl --user status accessible-arena-speech - Check speech-dispatcher outside the game:
spd-say "test" - If the log has no MelonLoader lines at all, the
version=n,blaunch option is missing
Speech is in the wrong language: set AA_SPEECHD_LANGUAGE as above, or change the default language with spd-conf.
Orca reads things while you play: the game window has no accessibility tree under Wine, so Orca stays mostly quiet. If it speaks over the mod, choose Orca as the speech output in F2, so the mod’s speech and Orca’s share one voice.
Building on Linux
install.sh does all of this for you. To build by hand: the mod builds with the .NET SDK on Linux. The project looks for MTGA in the default Steam library paths; for another location create src/local.props:
<Project>
<PropertyGroup>
<MtgaPath>/home/me/Games/MTGA</MtgaPath>
</PropertyGroup>
</Project>
Then dotnet build src/AccessibleArena.csproj builds and copies the DLL into the game’s Mods folder.