medium-to-speech
Medium posts to Speech.
A Python library for lazy people (like myself), who never finds time to read daily Medium posts and prefer to listen to them instead. It convert medium post to markdown using a Docker container/image then uses gTTs to interface with Google Translate's text-to-speech API which converts text to spoken MP3 files, thereafter plays the generated mp3 files with cvlc assuming it is installed.
Apt Requirements
You will need to install a few dependencies before you continue:
sudo apt install -y docker-ce mpg123 python3.6 python3.6-dev vlc
Installation
To install run:
python3 -m pip install -U medium-speech
Usage
Available arguments:
play_medium_post.py -h
usage: play_medium_post.py [-h] [--play] [--cleanup] [--speed N_SPEED]
[--loglevel LOG_LEVEL] [--url-post MEDIUM_URL]
[--file MARKDOWN_FILE]
optional arguments:
-h, --help show this help message and exit
--play, -p Play generated MP3 files.
--cleanup, -c Cleanup generated MP3 files.
--speed N_SPEED, -s N_SPEED
Play every n'th frame only ie Play speed.
--loglevel LOG_LEVEL log level to use, default [INFO], options [INFO,
DEBUG, ERROR]
--url-post MEDIUM_URL, -u MEDIUM_URL
Medium post URL.
--file MARKDOWN_FILE Specify a Markdown file.
Listen to a Medium post:
play_medium_post.py -ps 1 -u https://medium.com/@mmphego/how-i-managed-to-harness-imposter-syndrome-391fdb754820
Listen to Markdown file:
play_medium_post.py -ps 1 --file README.md
Oh, Thanks!
By the way... thank you! And if you'd like to say thanks... :)
✨🍰✨
Feedback
Feel free to fork it or send me PR to improve it.
Metadata
Release files for medium-speech 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| medium-speech-0.1.3.tar.gz | 8.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| medium_speech-0.1.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 15.9 kB
Release files / medium-speech-0.1.3.tar.gz
| Download URL | medium-speech-0.1.3.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5617e4a50427c5f0fc9f217c63eb9c794d5aa3fb094281cb11d4341cbce38c7
|
|
BLAKE2b-256 checksum How to use checksums |
5f58ff1477953bd73f9ea574dc6175087618b0e9a25a4a832b6612b605277059
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Release files / medium_speech-0.1.3-py2.py3-none-any.whl
| Download URL | medium_speech-0.1.3-py2.py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7c8fd45e54794a30a42faa0043cbc1c1759897cab4455e5df7925abb5419404f
|
|
BLAKE2b-256 checksum How to use checksums |
53fec7e5559d41993eebfde2319d1c1a089ae3342ca0538ff7e35c76d6d5e304
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Security for medium-speech 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.