GPU-Accelerated Speech-to-Text Worker for Voice Assistants

A lightweight FastAPI microservice running Faster-Whisper and CUDA on an external desktop GPU to offload voice transcription from low-power home servers, reducing latency to under 300 milliseconds with automatic CPU fallback.

Illustration for: GPU-Accelerated Speech-to-Text Worker for Voice Assistants
AI-generated illustration
WorkingIntermediateFor: homelab

About this project

Running speech recognition models on low-power, CPU-only home servers can introduce latency of two to three seconds and cause system sluggishness. This project offloads the transcription workload to an external workstation equipped with a dedicated NVIDIA GPU using Faster-Whisper, CTranslate2, and FastAPI with CUDA acceleration. The service loads an optimized Whisper speech model (such as large-v3-turbo) into VRAM and exposes HTTP health-check and transcription endpoints. The home server queries this worker as its primary transcription engine while maintaining an automatic fallback to local CPU inference if the GPU machine is offline. Operating system task scheduling manages unattended auto-start on boot, delivering sub-300ms transcription for responsive voice assistant interactions without server GPU hardware.

What you need

  • Computer with dedicated NVIDIA GPU
  • Home server running voice assistant software
  • Python 3
  • Local network connection

Highlights

  • Reduces speech transcription latency from 2–3 seconds on CPU to 0.2–0.3 seconds using desktop GPU CUDA acceleration.
  • Utilizes Faster-Whisper and CTranslate2 running large-v3-turbo with model caching for fast initialization and low memory usage.
  • Configured with automatic fallback to local CPU transcription if the remote GPU worker is offline or unavailable.
  • Exposes FastAPI HTTP health check and transcription endpoints with Windows Task Scheduler auto-start on boot.

Built with

PythonFastAPIfaster-whisperCTranslate2CUDAWhisperWindows Task Scheduler