VoiceRec
Windows Voice Assistant
Spoken commands, spoken answers
VoiceRec is a voice-controlled assistant for Windows that I built and extended between 2013 and 2017, several years before voice assistants such as Alexa were common in homes: speech recognition software, first Microsoft's and later Dragon NaturallySpeaking, turned my spoken commands into text, and VoiceRec answered with synthesised speech. It controls music and video playback, answers questions from Wikipedia and keeps the answers between sessions, posts to Twitter and Facebook, and switches the general-purpose input/output (GPIO) pins of a Raspberry Pi over SSH. Building it was my first experience of coordinating several external services and background threads in one application, which is the same problem that integrating language models and their APIs presents today.
voice.py (1,341 lines): application, interface and command handling ConfigFile.py (159 lines): first-run setup and saved settings musicPlayer.py (147 lines): music playback and playlists vlcmovie.py (118 lines): video playback through VLC ai.py (88 lines): Wikipedia answers with a saved cache MoppleMods.py (1,756 lines): the shared utility library