whatisgithub

What is motion-aware-voice-chat-bot?

sphillips1337/motion-aware-voice-chat-bot — explained in plain English

Analysis updated 2026-05-18

0HTMLAudience · vibe coderComplexity · 2/5LicenseSetup · moderate

In one sentence

A webcam AI assistant that notices when you walk into view, greets you by voice, and answers spoken questions about what it sees.

Mindmap

mindmap
  root((Motion Aware Voice Chat Bot))
    What it does
      Motion detection
      Voice greeting
      Visual Q&A
      State machine
    Tech stack
      Python FastAPI
      WebSocket
      Web Speech API
      Vanilla JS
    Use cases
      Greet visitors automatically
      Ask visual questions aloud
      Prototype a webcam voice assistant
    Audience
      Vibe coders
      Hobbyist developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build a webcam bot that greets people as soon as it detects motion.

USE CASE 2

Ask spoken visual questions about what the camera sees and get a voice reply.

USE CASE 3

Prototype a voice-driven assistant without needing a separate speech-to-text service.

USE CASE 4

Swap in any OpenAI-compatible vision model for the visual question answering.

What is it built with?

PythonFastAPIWebSocketHTMLJavaScript

How does it compare?

sphillips1337/motion-aware-voice-chat-botamureki/sweatbucksanikchand461/ragbucket
Stars00
LanguageHTMLHTMLHTML
Last pushed2025-08-15
MaintenanceQuiet
Setup difficultymoderateeasyeasy
Complexity2/51/52/5
Audiencevibe codergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Needs a camera-capable browser and a Vision API key (e.g. an OpenAI key) to run.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

Motion Aware Voice Chat Bot is a webcam-connected AI assistant that reacts when someone walks into view. Using the browser's own camera access, it continuously monitors the video feed for movement by comparing pixel changes between frames. When motion is detected, the bot greets the person by voice, and if they stay silent too long, it will prompt them to interact. You can have a spoken conversation with it, ask it visual questions like "how many fingers am I holding up?", and it will reply out loud. The interaction follows a simple four-state cycle: idle (waiting), detected (someone appeared), engaged (active conversation), and nudged (reminding the user to talk). This state machine runs on the backend, while motion detection and speech happen entirely in the browser without any server-side processing for audio. Voice works through the browser's built-in Web Speech API, meaning no separate speech service is needed. Visual questions are sent to an AI vision model, by default GPT-4o-mini, but any OpenAI-compatible endpoint can be configured. The backend is built with Python 3.12 and FastAPI, handling real-time messaging via WebSocket. The frontend is plain HTML, CSS, and JavaScript with no build tools required. Settings like motion sensitivity, voice speed, pitch, and model selection can be adjusted and are saved in browser storage. The project requires a camera-capable browser (Chrome, Firefox, Safari, or Edge) and a Vision API key to run. It is released under the MIT license.

Copy-paste prompts

Prompt 1
Walk me through setting up motion-aware-voice-chat-bot locally, including the VISION_API_KEY in .env.
Prompt 2
Explain the bot's four-state cycle: idle, detected, engaged, and nudged.
Prompt 3
How does the browser detect motion using pixel-difference analysis without a server?
Prompt 4
Show me how to swap the default GPT-4o-mini vision model for a different OpenAI-compatible endpoint.
Prompt 5
What does app/state.py do, and how does it drive the bot's conversation flow?

Frequently asked questions

What is motion-aware-voice-chat-bot?

A webcam AI assistant that notices when you walk into view, greets you by voice, and answers spoken questions about what it sees.

What language is motion-aware-voice-chat-bot written in?

Mainly HTML. The stack also includes Python, FastAPI, WebSocket.

What license does motion-aware-voice-chat-bot use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is motion-aware-voice-chat-bot to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is motion-aware-voice-chat-bot for?

Mainly vibe coder.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.