# Enabling the MD380 software vocoder on Windows

**Short version:** darthvader can decode/encode DMR/YSF/NXDN voice *without any
hardware* by emulating an MD380 radio's AMBE firmware. That firmware is Tytera's
and cannot ship inside darthvader, so you add it once with a separate installer.
Takes about a minute.

You only need this if you do **not** have an AMBE dongle (DV3000 / ThumbDV /
DVstick-30) and are **not** using a remote AMBEserver. With any of those, skip
this page — the software vocoder is just the fallback.

---

## "Why do I even see this?"

When you start darthvader and it says something like:

> **MD380 software vocoder — firmware not found.**
> Put `md380fw.img` and `md380ram.img` in …\share\darthvader\vocoder_fw

…it means the voice engine has nothing to run yet. Fixing it = putting two small
files in one folder. Pick **Option A** (easiest) or **Option B** (manual).

---

## Option A — run the add-on installer (recommended)

1. Download **`darthvader-md380-firmware-<version>-win64.msi`** from the same
   place you got darthvader.
2. Double-click it. Click through **Next → Install** (Windows may ask for
   permission — that is normal for an installer).
3. Start darthvader. Go to **Settings → AMBE**. The **Software** row is now
   active. Done.

> If you installed darthvader to a custom folder (not
> `C:\Program Files\darthvader`), the MSI still targets the default folder — use
> **Option B** with the ZIP instead.

---

## Option B — copy the files yourself (ZIP)

1. Download **`darthvader-md380-firmware-<version>-win64.zip`** and open it.
2. Inside you'll see a `share` folder. You need to copy it **into your
   darthvader folder** — the folder that contains `bin\darthvader.exe`.
   The default is:

   ```
   C:\Program Files\darthvader
   ```

3. Copy the `share` folder from the ZIP into that folder. When you're done, this
   file must exist:

   ```
   C:\Program Files\darthvader\share\darthvader\vocoder_fw\md380fw.img
   C:\Program Files\darthvader\share\darthvader\vocoder_fw\md380ram.img
   ```

   (If Windows asks to **Replace/Merge**, say yes — you're only adding two
   files. Copying into `Program Files` needs an admin "Continue" click.)

4. Start darthvader → **Settings → AMBE** → the **Software** row now works.

---

## Option C — point darthvader at the files wherever they are

If you can't (or don't want to) write into `Program Files`, drop the two `.img`
files anywhere you like — e.g. `C:\Users\<you>\md380fw` — and tell darthvader
where they are:

1. Close darthvader.
2. Open its config file:
   `C:\Users\<you>\AppData\Local\darthvader\config.json`
3. Add a `hardware` section pointing at your folder (use double backslashes):

   ```json
   {
     "hardware": {
       "md380_fw_dir": "C:\\Users\\<you>\\md380fw"
     }
   }
   ```

4. Save, start darthvader.

---

## Where do the firmware files come from?

`md380fw.img` and `md380ram.img` are extracted from Tytera MD380/MD390 radio
firmware (this is what the md380tools / md380_vocoder projects do). darthvader
does not distribute Tytera's firmware as part of the application itself; install
it only where you are entitled to.

## Still not working?

* Make sure the files are named **exactly** `md380fw.img` and `md380ram.img`
  (not `md380fw.img.img`, not zipped-inside-zipped).
* Check the log — newest file in
  `C:\Users\<you>\AppData\Local\darthvader\logs\` — for a line mentioning
  `md380` or `vocoder`. "firmware from …" means it loaded; "firmware not found"
  means the folder is still wrong.
* In **Settings → AMBE**, confirm the **Software** row is **enabled**.
