LLMfeed generates daily short-form video content (TikTok, Reels, Shorts) explaining the latest AI news.
- News Fetching: Automatically fetches recent AI news articles.
- Content Selection: Scores news relevance and selects the top story.
- Script Generation: Uses the OpenRouter API (Mistral-7B) to generate a video script.
- Text-to-Speech (TTS): Creates narration using an unofficial TikTok TTS API (
en_us_010voice). - Visual Generation: Generates relevant background visuals using the Stable Diffusion A1111 API.
- Audio Processing: Splits TTS into sections and combines them into a single audio file (
full_post.mp3). - Web Interface: A Flask backend provides a UI to trigger generation and review results.
- Python
- Flask
- pydub
- tiktok-voice (unofficial API)
- OpenRouter API
- Stable Diffusion A1111 API
-
Install Dependencies:
pip install -r requirements.txt
(Note: Ensure
requirements.txtexists and is up-to-date.) -
Configure APIs: Ensure API keys/endpoints for OpenRouter and A1111 are correctly set (e.g., via environment variables or configuration files).
-
Run the Flask App:
flask run --host=0.0.0.0 --port=5001
- Implement caption generation.
- Automate video export.
- Set up a daily automated workflow.