AudioBookMaker
AudioBookMaker is a command-line tool for converting a collection of MP3 files into a single M4B audiobook file. This tool is written in Python and uses FFmpeg for audio conversion and the Mutagen library for handling metadata.
Install / Use
/learn @k4pran/AudioBookMakerREADME
AudioBookMaker
AudioBookMaker is a command-line tool for converting a collection of MP3 files into a single M4B audiobook file. This tool is written in Python and uses FFmpeg for audio conversion and the Mutagen library for handling metadata.
Installation
- Install Python 3.11 or later.
- Install FFmpeg. Ensure that the
ffmpegexecutable is in your system's PATH. - Clone or download this repository.
- Install the required Python packages with pip:
pip install -r requirements.txt
Usage
Run main.py with the following arguments:
input_directory: The path to the directory containing the MP3 files you want to convert.output_file_path: The path to the output M4B file, including the desired filename.pattern(optional): A filename pattern to match specific MP3 files within the input directory.
Example:
python main.py "C:\Users\YourUsername\Downloads\MyAudiobook" "C:\Users\YourUsername\Audiobooks\MyAudiobook.m4b" "*.mp3"
This command will read all MP3 files from the MyAudiobook directory, convert and merge them into a single M4B file named MyAudiobook.m4b in the Audiobooks directory.
Credits
This project was created with the assistance of ChatGPT, an AI language model developed by OpenAI.
License
This project is licensed under the MIT License. See the LICENSE file for more information.
Related Skills
node-connect
352.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
