langreader
Generate interactive language-learning HTML readers from Markdown using LLMs.
👀 Demo
Before reading further, check out what this tool generates:
👉 Live Demo: French Reader (Alsace)
md-llm-lang-reader (CLI command: langreader) converts standard Markdown text into a bilingual HTML reader. It uses Large Language Models (via multiai) to intelligently split paragraphs into natural sentences and provide translations, while adding Text-to-Speech (TTS) capabilities to every sentence.
Features
- 🤖 AI-Powered Translation: Automatically splits paragraphs into natural sentences and translates them line-by-line.
- 🔊 Text-to-Speech: Built-in audio buttons for every source sentence (uses browser Web Speech API).
- ⏯️ Resumable Generation: Hit an API rate limit? Use
--continueto resume generation exactly where it stopped. - 📝 Markdown Support: Preserves headings, code blocks, and basic formatting.
- 🌍 Wikipedia Helper: Includes a script to easily fetch and format Wikipedia articles for learning.
📚 Documentation
For detailed installation instructions, CLI options, and tutorials, please visit the official documentation:
👉 https://sekika.github.io/langreader/
- Usage Guide: Options for styling, resuming, and metadata.
- Tutorial: Step-by-step guide to creating a reader from a Wikipedia article.
- TTS Setup: How to configure high-quality voices on your device.
Installation
pip install md-llm-lang-reader
Note: This tool requires multiai configuration to access LLM providers (OpenAI, Anthropic, etc.).
Quick Start
-
Create a Markdown file (
input.md):# Bonjour Ceci est un exemple de phrase pour l'apprentissage. -
Run the generator:
langreader -i input.md -o output.html --src fr --tgt en --provider openai --model gpt-4o-mini
-
Open
output.htmlin your browser to start reading and listening!
License
MIT
Metadata
Release files for md-llm-lang-reader 0.2.0
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 | Actions |
|---|---|---|---|---|
| md_llm_lang_reader-0.2.0.tar.gz | 10.4 kB | Without provenance | Details for md_llm_lang_reader-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| md_llm_lang_reader-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for md_llm_lang_reader-0.2.0-py3-none-any.whl |
Total release size: 19.9 kB
Release files / md_llm_lang_reader-0.2.0.tar.gz
| Download URL | md_llm_lang_reader-0.2.0.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6525db484d6da28c539a0b01e6c6f87ff12e43a52a5f1671fcd3cd5c8360cc0e
|
|
BLAKE2b-256 checksum How to use checksums |
9355c3c735aec4ad9b3e86c5715b9de526fa4ce5d255c6f82389b0ae51a5a5e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / md_llm_lang_reader-0.2.0-py3-none-any.whl
| Download URL | md_llm_lang_reader-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2a93db8b264c0485e25387d1298a235c07f52c4f1bdd328ffc7d27b576c7865
|
|
BLAKE2b-256 checksum How to use checksums |
6a6037c76db10e051c49e24bf18fb9ad67c3e1b13469ae9fc4b7cca2c5f9b932
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for md-llm-lang-reader 0.2.0
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.