Linking everything together
- Updated the project structure with more python scripts so that it now looks like this:
Tiny_Jarvis/
├── .venv/
├── piper_voices/
├── recordings/ # New
├── assets/ # New
├── ai.py
├── listener.py # New
├── main.py
├── OLED.py
├── speaker.py
├── transcriber.py # New
├── README.md
└── requirements.txt
- What’s new:
- Added an
assets/folder for the OLED screen visuals - Added a
recordings/folder for the audio captured by the mic when the user is speaking - Created
listener.py: actively listens for a button press; when pressed, records audio through the usb mic until the button is released, then that audio is sent totranscriber.py - Created
transcriber.py: takes that audio and passes it as input into faster-whisper to “translate” into text !
- Added an
- And finally, first time linking everything together in
main.py: there is still a lot to be done if we are talking speed/efficiency, but the core pipeline is done. - The user presses a button to talk, releases it when finished, the audio is captured and translated into text by
faster-whisper, then that text is given as prompt to the AI chatbot (like Qwen3-0.6B. The response is then turned into a voice using Piper TTS and outputted through the speaker!
Possible future implementation of the threading module to make it faster, even though I have no idea how it works.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.