A Streamlit app that crawls an article URL with a Tensorlake crawler, turns it into a podcast-style script with Gemini, and voices it with ElevenLabs. Download the result as an MP3.
Tensorlake docs · Tensorlake · More examples · studio1hq.com
This project turns an online article into a podcast. Tensorlake crawls the URL and extracts readable text, Gemini rewrites it as a conversational script, and ElevenLabs reads the script aloud. A Streamlit app runs the full pipeline from URL to audio and lets you play or download the MP3.
- Crawling with Tensorlake:
main.pydefines a Tensorlake crawler that renders pages in headless Chromium through PyDoll and follows same-domain links up to a depth you choose. - Script writing with Gemini: The article text, trimmed to 6,000 characters, becomes a short podcast-style script.
- Voice with ElevenLabs: The script is converted to speech and saved as MP3.
- One-click Streamlit app: Enter a URL, set crawl depth (0 to 3), click Generate Podcast Audio, then listen or download.
- Step-by-step scripts:
summarize.pyandaudio.pyrun the Gemini and ElevenLabs stages on their own, using saved text files.
| Layer | Tool |
|---|---|
| Crawling | Tensorlake applications, PyDoll with Chromium |
| Summarisation | Google Gemini (google-genai) |
| Text to speech | ElevenLabs |
| UI | Streamlit |
- Python 3.10 or later
- A Gemini API key
- An ElevenLabs API key
git clone https://github.com/Studio1HQ/PodcastGenerator.git
cd PodcastGenerator
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txtCreate a .env file in the project root. You can also enter both keys in the Streamlit sidebar.
| Variable | Description |
|---|---|
GEMINI_API_KEY |
Google Gemini key, from Google AI Studio. |
ELEVENLABS_API_KEY |
ElevenLabs key, from the ElevenLabs dashboard. |
streamlit run app.pyOpen http://localhost:8501, then:
- Enter an article URL.
- Add your API keys in the sidebar, or rely on
.env. - Adjust the crawl depth if needed.
- Click Generate Podcast Audio.
- Listen in the browser or download the MP3.
- Crawl and extract: Tensorlake fetches the article and strips navigation and clutter, returning page text.
- Summarise: Gemini turns the text into a conversational script.
- Synthesise: ElevenLabs converts the script to audio.
- Download: The MP3 plays in the browser and can be saved.
| File | Description |
|---|---|
app.py |
Streamlit app that runs the whole pipeline from URL to audio. |
main.py |
Tensorlake web crawler and text extraction. |
summarize.py |
Gemini summarisation module. |
audio.py |
ElevenLabs text-to-speech conversion. |
.env |
API keys for Gemini and ElevenLabs. |
- Tensorlake docs: applications and functions.
- Tensorlake: the platform used here.
- Gemini API docs: models and SDK.
- ElevenLabs docs: text-to-speech API.
- PyDoll: headless browser library.
Built by Studio1, the technical content and DevRel partner for devtool teams. Made with Tensorlake.
Browse more open-source examples at github.com/Studio1HQ.
studio1hq.com · Technical content, docs, video and DevRel for devtools
