Convert HTML and text to mp3s
Project description
html2mp3
Generate
mp3s from html text.
A tiny cli I made on a fling.
CLI
Basic use:
# CLI docs
html2mp3
# Generate from a file
html2mp3 file examples/test1.html test1.mp3
# Download from URL
html2mp3 url https://text.npr.org/985359064
# Download from URL, only generate voice from the text in the selector .paragraphs-container
html2mp3 url https://text.npr.org/985359064 --select ".paragraphs-container"
Multiple files at once can be done (though the CLI could be improved to make this less verbose):
html2mp3 url https://text.npr.org/985359064 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/985347984 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/985524494 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/985032748 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/985498425 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/985336036 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/976385244 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/985470204 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/985365621 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/985296354 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/985594759 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/985125653 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/985290016 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/985400141 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/984387402 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/984614649 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/985143101 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/982223967 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/985421813 --select ".paragraphs-container" & html2mp3 url https://text.npr.org/984870694 --select ".paragraphs-container"
Running the above example (20 examples in total) took about 48s on my personal computer (47.72s user 0.74s system 480% cpu 10.094 total)
You can do your own tests via:
time sh -c 'html2mp3 url https://text.npr.org/985359064 & html2mp3 url https://text.npr.org/985347984'
TODO
- Testing
- Multiple files/urls at once
- Voice generation settings
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 html-to-mp3-0.2.0.tar.gz.
File metadata
- Download URL: html-to-mp3-0.2.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.2 Linux/5.9.16-1-MANJARO
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a22f55211cd9cb4e739f7ea8eab0fcfd0bce6bb53d845b5c6227d170422aaee
|
|
| MD5 |
702a9020042a9fbf85f570642b4ef942
|
|
| BLAKE2b-256 |
d380a45e68e8f84fd50a5c343a43573e0754939d10686b87ac84ab01cfa8bb07
|
File details
Details for the file html_to_mp3-0.2.0-py3-none-any.whl.
File metadata
- Download URL: html_to_mp3-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.2 Linux/5.9.16-1-MANJARO
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00afaffacf65e2900e344b2659b347e2c0341f285db06654293f036315f62dcb
|
|
| MD5 |
aab86a57268cf80ea3cf1733a3060b1f
|
|
| BLAKE2b-256 |
3c4d9c1a2e8f67072ca2064bdc973e76e7c10d40235d29c45d61e0ecfd4e1a2a
|