This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |