How mekalakarthik05/voiceflow-ai works
VoiceFlow AI is a Streamlit voice assistant: a user records speech, the app transcribes it, uses the transcript and session conversation history to generate a response, then synthesizes and plays audio. The app also exposes model, personality, language and voice settings, conversation exports, health indicators and session analytics. The sampled source confirms service calls and fallback behavior; additional README capabilities are included only where the app excerpt supports them. No persistent database is shown: conversation memory and statistics are session state.
Main entry points: app.py Streamlit App · deepgram_service.py Speech Recognition · tts_service.py Speech Synthesis · llm_service.py Response Generation
Components 14
User Experience
- Streamlit App
app.py - Conversation Export
utils/utils.py - Health and Analytics
app.py - Interface Styling
utils/utils.py
Conversation Flow
- Session Memory
app.py
Speech Services
- Speech Recognition
services/deepgram_service.py - Deepgram STT
- Whisper Fallback
- Speech Synthesis
services/tts_service.py - Piper TTS
- TTS Fallback
Reasoning and Export
- Response Generation
services/llm_service.py - Ollama Runtime
Other components
- Voice User
Connections 14
- Voice User → Streamlit App: records speech
README.md - Streamlit App → Speech Recognition: transcribes audio
app.py - Speech Recognition → Deepgram STT: tries transcription
services/deepgram_service.py - Speech Recognition → Whisper Fallback: falls back
services/deepgram_service.py - Streamlit App → Session Memory: updates history
app.py - Streamlit App → Response Generation: requests response
app.py - Response Generation → Ollama Runtime: calls chat
services/llm_service.py - Streamlit App → Speech Synthesis: generates audio
app.py - Speech Synthesis → Piper TTS: synthesizes speech
services/tts_service.py - Speech Synthesis → TTS Fallback: falls back
services/tts_service.py - Streamlit App → Conversation Export: exports conversation
app.py - Streamlit App → Health and Analytics: shows metrics
app.py - Streamlit App → Interface Styling: injects styles
app.py - Streamlit App → Voice User: plays response
app.py