Skip to the content.

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:

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

Installation

From a copy of this repository, or just its linux folder:

cd linux
./install.sh

The installer:

If the installer could not set it, set the launch option by hand:

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:

  1. 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
  2. The mod’s own route, Speech Dispatcher (direct), described below
  3. 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:

  1. 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 for inet_socket.
  2. An nvda2speechd server on ws://127.0.0.1:3457 (or NVDA2SPEECHD_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.
  3. 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.
  4. If that fails too, one spd-say call per announcement. The MelonLoader log (MelonLoader/Latest.log in the game folder) says what speaks, in a [Speech] line containing ready: for example normal backend = Orca, or Speech 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%:

Example for Steam: AA_SPEECHD_RATE=40 AA_SPEECHD_LANGUAGE=pl WINEDLLOVERRIDES="version=n,b" %command%

Other variables:

These variables only affect Speech Dispatcher (direct).

Troubleshooting

No speech at all:

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.