How smacy2017/interpilot works
InterPilot captures system audio, saves it as WAV, transcribes it locally, then streams an LLM response into a GUI; it also offers a simpler command-line workflow. The GUI coordinates recording, transcription, and prompting, while the recorder, transcriber, and LLM client implement those stages. The README documents Markdown-rendered replies and configurable API/model/device settings. Voice generation exists as a separate, not-yet-integrated capability. Relationships are based on the shown source and README; no unsampled implementation details are assumed.
Main entry points: main.py GUI workflow · main_cmd.py CLI workflow · audio_capture.py Loopback recorder · transcriber.py Speech transcriber
Components 14
User workflows
- GUI workflow
main.py - CLI workflow
main_cmd.py - Runtime settings
config.ini
Audio and transcription
- Loopback recorder
src/audio_capture.py - WAV recordings
output - Speech transcriber
src/transcriber.py - Whisper model
LLM answers
- LLM client
src/llm_client.py
Standalone voice
- Voice generator
src/voice_generator.py
Other components
- User
- Audio devices
- OpenAI-compatible API
- Edge TTS
- FFmpeg
Connections 18
- User → GUI workflow: operates
README.md - User → CLI workflow: operates
README.md - GUI workflow → Runtime settings: reads
main.py - GUI workflow → Loopback recorder: starts recording
main.py - Loopback recorder → Audio devices: captures audio
src/audio_capture.py - Loopback recorder → WAV recordings: writes
src/audio_capture.py - GUI workflow → Speech transcriber: requests transcription
main.py - Speech transcriber → WAV recordings: reads
src/transcriber.py - Speech transcriber → Whisper model: transcribes with
src/transcriber.py - GUI workflow → LLM client: sends prompt
main.py - LLM client → OpenAI-compatible API: streams request
src/llm_client.py - LLM client → Runtime settings: reads API settings
src/llm_client.py - CLI workflow → Loopback recorder: starts recording
main_cmd.py - CLI workflow → Speech transcriber: requests transcription
main_cmd.py - CLI workflow → LLM client: sends transcript
main_cmd.py - Voice generator → Edge TTS: requests speech
src/voice_generator.py - Voice generator → FFmpeg: converts audio
src/voice_generator.py - Voice generator → Audio devices: plays audio
src/voice_generator.py