Skip to content

Instantly share code, notes, and snippets.

@echo off
setlocal enabledelayedexpansion
:: Check if arguments are passed
if "%~1"=="" (
echo Drag and drop Word files onto this script or provide file paths as arguments.
pause
exit /b
)
#!/usr/bin/env python3
"""
$ pip install piper-tts loguru typed-argparse bs4 ebooklib mutagen
$ apt install ffmpeg
Assuming both piper and ffmpeg are in your path, this script will convert an epub file to an audiobook.
"""
import math
import os
import queue