An open API service indexing awesome lists of open source software.

https://github.com/tylerjdev/dialogue-to-anki

Process dialogue from games Bethesda games and export in multiple formats (.txt, .csv)! 📣
https://github.com/tylerjdev/dialogue-to-anki

anki audio dialogue fallout skyrim

Last synced: about 1 month ago
JSON representation

Process dialogue from games Bethesda games and export in multiple formats (.txt, .csv)! 📣

Awesome Lists containing this project

README

          

# Dialogue-To-Anki

**⚠️ Note - This project is not currently being maintained, but may be picked back up in the future!**

Dialogue-To-Anki (DtA) converts dialogue from Bethesda games into Anki-friendly formats.

### Formats Supported
DtA currently only supports `.txt` and `.csv` files.

### Games Supported
- [x] Skyrim (Vanilla) / Skyrim Special Edition (SE)
- [x] Fallout 4
- [x] Fallout New Vegas

### Unsupported (May work)
- [ ] Fallout 3

### Python Requirements
- openpyxl

### Game-specific Requirements
- **Skyrim/Skyrim SE, Fallout 4**
- Creation Kit
- **Fallout New Vegas**
- GECK


---

#### Optional Requirements
- B.A.E *(optional — If you want audio)*
- Unfuz *(optional — If you want audio)*
- TES5Edit
- *(optional — Needed if language contains special characters {non-latin})*
- i.e, Russian, Japanese, Chinese, etc

---

# Instructions

## Step 1

DtA needs the dialogue set from your game to work.

1. Go to your steamapps common folder (`..\Steam\SteamApps\common\GAME_NAME`)
2. Open Creation Kit/GECK and load in your game's main `.esm` file using `File > Data`
3. Export the dialogue through `Character > Export Dialogue`
4. Move exports to `Dialogue-To-Anki/dialogues`

Repeat step one for other languages that you need. (*I.e, Spanish > English*)
Be sure to *rename* each language file to a different name!

***Note:***
With Skyrim SE, you will have to create a file named `'CreationKitCustom.ini'` for Creation Kit to work.

Copy and paste the line below into the file:

```sh
sLanguage=LANGUAGE # English
# Replace 'LANGUAGE' with a language that's supported for your game
```

## Step 2
Generate the Anki file(s):
```sh
python core.py -g skyrim -l english spanish -t txt -f dialogues/export1.txt dialogues/export2.txt -a
```
- **g** = The games title
- **l** = Languages, be sure to put these in the same order as the -f argument!
- **t** = Format to give out (See [supported files](#supported-files))
- **f** = The dialogue export .txt files
- **a** = (optional) Process audio files **— Required for Audio**

After that, you're all set! You can import the generated file into Anki.

Any audio files (see below), will be exported to folder `GAMENAME_AUDIO_LANGUAGE1_LANGUAGE2`. Move this folder into Unfuz for audio to work. Aaudio in Anki should be placed within `collection.media`.

--

---

## Optional Step — Audio
**Skip this step if you don't want audio, or if have already done it previously**

Download [BAE](https://www.nexusmods.com/fallout4/mods/78/);

Once installed open it and you should see a screen like this:

--

Depending on the language you need, change your game's language in Steam by right clicking it and selecting properties and click the 'language' tab and set the language you want to get the audio from

--

After its done downloading go to your game's data folder `...\Steam\SteamApps\common\GAME_NAME\Data`.

You should see .bsa files, locate the 'Voices' .bsa file. Usually it'll have the languages prefix tagged along to it
- i.e, `'Skyrim- Voices_ru0.bsa'`

Open that file up in bae and extract it.
*Note, this may take a while. You can uncheck any characters you don't want to extract in BAE*

Place the folder within `Dialogue-To-Anki/dialogues/audio` and rename `sound` to the language you downloaded. (*Be sure to name it correctly!*)

Just like step 1, you'll have to repeat this if you want audio for other languages.