Voice Prompt Runner

Demo UI which parses and then runs audio prompts

About This Project

Voice-Prompt-Runner is a demo project that turns spoken input into structured AI-generated output. It implements a three-stage pipeline: audio is first transcribed and lightly cleaned of filler words, the transcript is then reorganized into a Markdown-formatted prompt with headers and sections while correcting likely transcription errors through contextual inference, and the optimized prompt is finally executed to produce a result. Each stage uses Google's Gemini 2.5 Flash Lite model, with stage-specific system prompts stored in the repository, and all intermediate and final artifacts are saved with timestamps for review.

The project is written in Python and provides two interfaces. A command-line tool supports batch processing and automation, while a Streamlit web app offers in-browser audio recording, file upload for MP3, WAV, OGG, M4A, and FLAC files, and a tabbed viewer for transcripts, optimized prompts, and results, with download options for each. The GUI is designed for deployment to Hugging Face Spaces. The repository includes a complete worked example with input audio and outputs at each stage.

The project may be of interest to developers and researchers exploring voice-driven LLM workflows, particularly for rapid prototyping, drafting documentation, generating code from spoken descriptions, or summarizing meeting recordings. It requires a Google Gemini API key and Python 3.8 or later.

Project Details

Tags

ai-workflowsdemosvoice-prompting

Explore More Projects