mirror of
https://github.com/Shubhamsaboo/awesome-llm-apps.git
synced 2026-07-22 03:39:01 -05:00
[PR #875] [CLOSED] Refactor: migrate core stack from OpenAI to Groq and Edge-TTS #13284
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/Shubhamsaboo/awesome-llm-apps/pull/875
Author: @tmvalijib24
Created: 6/10/2026
Status: ❌ Closed
Base:
main← Head:refactor/migrate-to-groq-edgetts📝 Commits (1)
6f0a2a3refactor: migrate core stack from OpenAI to Groq and Edge-TTS📊 Changes
5 files changed (+654 additions, -421 deletions)
View changed files
📝
voice_ai_agents/voice_rag_groq_edgetts/README.md(+12 -11)➕
voice_ai_agents/voice_rag_groq_edgetts/rag_voice.py(+623 -0)➕
voice_ai_agents/voice_rag_groq_edgetts/requirements.txt(+19 -0)➖
voice_ai_agents/voice_rag_openaisdk/rag_voice.py(+0 -401)➖
voice_ai_agents/voice_rag_openaisdk/requirements.txt(+0 -9)📄 Description
📝 Summary
This PR completely refactors the Voice RAG Agent to remove all dependencies on the paid OpenAI API, transitioning the project to a 100% free and lightning-fast stack.
The text generation "brain" is now powered by Groq (using the
llama-3.1-8b-instantmodel), and the audio generation "voice" is now handled by edge-tts (Microsoft Edge's free Neural TTS API). Additionally, this refactor simplifies the application architecture by removing the reliance on the custom localagentsmodule, handling the API logic directly within the main script for better stability and readability.🛠️ Key Changes
openaiSDK with thegroqPython client.llama-3.1-8b-instantfor high-speed, large-context RAG generation.edge-ttsfor asynchronous, high-quality audio generation without requiring API keys.agents.py(Agent/Runnerclasses), integrating the prompting logic directly intoprocess_query().Groq API Keyinstead of an OpenAI key. Voice selection options have been updated to matchedge-ttsformats (e.g.,en-US-ChristopherNeural).README.mdto accurately reflect the zero-cost architecture, updated environment variables, and new setup instructions.⚠️ Breaking Changes
OPENAI_API_KEYis no longer used. Users must generate a free API key from the Groq Console and update their.envfile to useGROQ_API_KEY.agentsmodule is deprecated in this branch.✅ Testing / Verification
pip install groq edge-tts).edge-ttssuccessfully generated and streamed the.mp3audio response in the Streamlit UI.Images
rag_voice.webm
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.