Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Docker 6 min read Case study mediumAdept

Mr. Bones: A Pirate-Voiced Halloween Chatbot Powered by Docker Model Runner

A Home Depot animatronic skeleton becomes a pirate-voiced Halloween chatbot. A Raspberry Pi 5 captures speech and transcribes it with Vosk, then sends it to LLaMA 3.1 8B (Q4) served by Docker Model Runner on a gaming PC with an RTX 5070. ElevenLabs Flash speaks the reply, and Bluetooth audio drives the skeleton's jaw. The local model cut response time from about 4.5s with the ChatGPT API to 1.5s, and chunking the LLM output to the TTS service reduced perceived lag. A detailed system prompt keeps answers in character, kid-safe and short, and the post notes the remaining weak spots: dependence on the network and the multi-tier setup.

Related posts

  • Develop and deploy voice AI apps using Docker

    Docker mediumAdept

    EchoKit is an open-source voice AI stack pairing an ESP32 client device with a WebSocket server that chains VAD, ASR, LLM and TTS models. The server runs as a Docker image configured through a mounted config.toml. A VAD-enabled image bundles Silero VAD to filter non-speech and detect conversation turns, trading more CPU for better recognition. Tool calling works through the Docker MCP gateway, shown with a DuckDuckGo search server and a spoken hold message to cover tool latency. Docker Model Runner can replace the cloud LLM with a local OpenAI-compatible gpt-oss endpoint, though ASR and TTS still need cloud services or LlamaEdge.

  • One-second voice-to-voice latency with Modal, Pipecat, and open models

    Modal mediumAdept

    A conversational voice bot on Modal reaches roughly one-second voice-to-voice latency. It uses Pipecat to orchestrate an STT → RAG → LLM → TTS pipeline with Parakeet-tdt-v3, Qwen3-4B-Instruct on vLLM, Kokoro TTS, and ChromaDB with all-MiniLM-L6-v2 retrieval. The main latency levers are running the stateful Pipecat bot on CPU while GPU services autoscale independently, using Pipecat's local VAD and SmartTurn to segment audio instead of streaming STT, and tuning vLLM for time-to-first-token. On the network side, the bot talks to services over WebSockets through Modal Tunnels that bypass the input plane, with a spawned FunctionCall session restoring autoscaling, and services are pinned to clustered regions near the user. Latency was measured by recording real conversations and diarizing them with Pyannote across region and tunnel configurations.

  • Deploying Speech-to-Speech on Hugging Face

    Hugging Face mediumAdept

    Hugging Face's Speech-to-Speech pipeline (VAD, speech-to-text, LLM, text-to-speech) can be deployed to Inference Endpoints by forking the huggingface-inference-toolkit into a custom Docker image. Code and data ship as git submodules and requirements are installed at build time, which cuts endpoint startup time. The endpoint runs on an AWS L4 GPU at about $0.80/hour and is configured through either the GUI or the huggingface_hub API, with container port 80 and an HF_TOKEN secret for gated models. A small Starlette WebSocket webservice keeps latency low, and a Python client records audio, streams it to the server and plays back the queued responses.

  • Reachy Mini goes fully local

    Hugging Face mediumAdept

    Reachy Mini's conversation app can now run entirely on local hardware using the speech-to-speech library, a cascaded VAD → STT → LLM → TTS pipeline that exposes a Realtime API-compatible /v1/realtime WebSocket. The recommended stack is Silero VAD, Parakeet-TDT 0.6B v3 for STT, Qwen3-TTS, and Gemma 4 served by llama.cpp. The LLM can also run in-process via MLX or Transformers, or behind any Responses API server such as vLLM (≥0.21.0 for tool-call streaming), HF Inference Endpoints or OpenAI. LLM inference is the main latency bottleneck, so the guide recommends disabling thinking tokens and enabling multi-token prediction where the model supports it.

  • Local LLM Messenger: Chat with GenAI on Your iPhone

    Docker mediumAdept

    Local LLM Messenger (LoLLMM), an honorable-mention project from Docker's AI/ML Hackathon by Justin Garrison, lets you send iMessages to LLMs running on your own machine. A FastAPI Python app receives Sendblue webhooks, routes prompts to local Ollama models (defaulting to llama2) or optionally OpenAI's GPT-3.5 Turbo and DALL-E 2, keeps conversation context in a file, and supports slash commands for switching models. Docker Compose runs the app, an ngrok tunnel exposing port 8000, and an Ollama container with optional NVIDIA GPU access. A setup walkthrough covers cloning the repo, configuring API keys in .env, and adding the ngrok authtoken.

The quest for software engineering knowledge.

Look:
Layout: