Convert EPUB books into chapter WAV audio with Chatterbox Multilingual TTS.
Project description
chatterbook
Convert EPUB books into M4B audiobooks with Chatterbox Multilingual TTS.
from chatterbook import convert_epub
convert_epub(
"book.epub",
language="ko",
voice_path="voices/narrator.wav",
style="warm",
max_chars=300,
)
By default, the output filename is read from the EPUB title metadata and written
as Title.m4b in the current directory. You can also pass a path:
convert_epub("book.epub", "audiobooks/book.m4b", language="ko")
voice_path is an optional short WAV reference clip for voice cloning. If it is
omitted, Chatterbox's bundled default conditionals are used.
Long chapters are split on EPUB paragraph boundaries and adjacent short
paragraphs are grouped up to max_chars, then assembled into one chapterized
M4B.
M4B output requires ffmpeg on your PATH. During conversion, chatterbook shows
colored tqdm progress bars for chapters and text chunks. Pass
show_progress=False to disable them.
To export chapter WAV files instead of one M4B:
convert_epub(
"book.epub",
"audio",
language="ko",
output_format="wav",
)
Styles
neutral: balanced defaultwarm: slightly softer narrationdramatic: more expressive narration
You can override a style with explicit generation values:
convert_epub(
"book.epub",
language="ko",
exaggeration=0.7,
cfg_weight=0.3,
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chatterbook-0.2.0.tar.gz.
File metadata
- Download URL: chatterbook-0.2.0.tar.gz
- Upload date:
- Size: 225.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f3292d8fac1a684ec304acba29c6c2dfc4c6351946c8a3f0c90e2cb38c90da0
|
|
| MD5 |
1f4930c21bad2c728051bad08d94991c
|
|
| BLAKE2b-256 |
86b66215fb177b7b0d6f10ad3598f43ab497116163c988b4629398890d8a537e
|
Provenance
The following attestation bundles were made for chatterbook-0.2.0.tar.gz:
Publisher:
workflow.yml on smturtle2/chatterbook
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chatterbook-0.2.0.tar.gz -
Subject digest:
0f3292d8fac1a684ec304acba29c6c2dfc4c6351946c8a3f0c90e2cb38c90da0 - Sigstore transparency entry: 1449648680
- Sigstore integration time:
-
Permalink:
smturtle2/chatterbook@e109b23db5efeb2a8babea9eed8ce1dff9d266d6 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/smturtle2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@e109b23db5efeb2a8babea9eed8ce1dff9d266d6 -
Trigger Event:
release
-
Statement type:
File details
Details for the file chatterbook-0.2.0-py3-none-any.whl.
File metadata
- Download URL: chatterbook-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0365a00b5edd1e1f3e9547f596990171e8927c6ef7f6d52498c64c43a5af8317
|
|
| MD5 |
0a4873a5515451d5b743b9052d39968b
|
|
| BLAKE2b-256 |
13cda93156b4ef9cc2b40a1ef16f171c667831508ecefb2c69158849e11d2c95
|
Provenance
The following attestation bundles were made for chatterbook-0.2.0-py3-none-any.whl:
Publisher:
workflow.yml on smturtle2/chatterbook
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chatterbook-0.2.0-py3-none-any.whl -
Subject digest:
0365a00b5edd1e1f3e9547f596990171e8927c6ef7f6d52498c64c43a5af8317 - Sigstore transparency entry: 1449648681
- Sigstore integration time:
-
Permalink:
smturtle2/chatterbook@e109b23db5efeb2a8babea9eed8ce1dff9d266d6 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/smturtle2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@e109b23db5efeb2a8babea9eed8ce1dff9d266d6 -
Trigger Event:
release
-
Statement type: