Skip to content

Instantly share code, notes, and snippets.

@anotherdirtbag
anotherdirtbag / StellarList.py
Created April 14, 2020 04:17
python script that allows parsing, editing, and saving Stellaris by Paradox config .txt files
import os
import re
def main():
modpath = os.path.join(r'C:\Users\sokka\Documents\Paradox Interactive\Stellaris\mod\better_queue')
installpath = os.path.join(r'C:\Games\Stellaris')
scrfile = os.path.join(r'common\buildings', '01_pop_assembly_buildings.txt')
#scrfile = os.path.join(r'common\colony_automation', '00_capital_automation.txt')
@anotherdirtbag
anotherdirtbag / synthesize2.py
Created September 19, 2019 17:59
Working example of Mozilla TTS tacotron2+wavernn
#following instructions from https://github.com/mozilla/TTS/blob/master/notebooks/Benchmark.ipynb
#%load_ext autoreload
#%autoreload 2
import os
import sys
import io
import time
import numpy as np
#pip3 install --user numpy
@anotherdirtbag
anotherdirtbag / epub_to_tts.py
Last active September 26, 2023 02:28
A python 3 script to read the text from an epub file using either online(google wavenet) or offline (sapi) tts and save as a series of opus files.
import os
import sys
import zipfile
import time
import re
import urllib3
from dataclasses import dataclass
from bs4 import BeautifulSoup