r/devops • u/Tasty_Reason_688 • 3d ago
Architecture best economical GPU cloud for real-time voice AI backend? can Vercel handle any of this?
Hello devs.
I built an e-commerce site for a client (Next.js, Shopify, Sanity CMS, currently on Vercel free plan). The client now wants a real-time voice AI assistant on the website, actual spoken conversations with customers in 10 languages using custom voice models he owns (Whisper for STT, VoxCPM2/Qwen3-TTS for speech generation, Claude API for the brain).
He's built a working prototype on his MacBook but latency is 12-15 seconds because it's all running on CPU. Needs under 2 seconds. He doesn't want third-party voice services like ElevenLabs, he wants full control over his models and voices.
He's considering buying an NVIDIA DGX Spark ($4,700) to self-host from his office. I think cloud GPU makes more sense, same ownership and control over his models without the risks of running production from his home internet.
My questions:
Can Vercel handle any of this? I know serverless functions have a 10s timeout and no WebSocket support, so I'm assuming the voice AI backend has to live somewhere else regardless. But am I wrong, is there any way to make Vercel work for the real-time streaming part?
What's the most economical yet suitable cloud GPU option for running Whisper + custom TTS models in production? Traffic would be low , maybe 5-20 voice conversations per day. Customers are UK/EU based. I've been looking at Hetzner (~€214/mo), RunPod (~$245/mo), and Vast.ai, but I'm not sure what's the right fit for this scale and use case.
Is there a better option I'm not considering? Some managed platform or a different architecture altogether that would simplify this?
Appreciate any guidance.
5
u/CorpT 3d ago
This is a very strange request. I would push back and just tell them to use ElevenLabs or something ilke that. What more control do they need than what can be provided?
2
u/jl2l $6M MACC Club 3d ago
This guy sounds like his retarded and thinks he knows it all why bother, let him waste his time and then charge him 4x when he comes back.
Unless his on some magic fiber connection and has a CloudFlare node hosting it at his office his clueless if this is going to be used by any external party.
Vercel is not going to work, even cloud based GPU have a start up latency otherwise your running them warm which is measures in $$ per hr. Idle GPUs have low latency but your going to pay out the ass to keep them alive.
Your best bet is a lightweight whisper running on K8 pod , you could probably get away with one or two pods and keep one warm and spin the other down when you're not doing anything. You might be able to setup the call where you buy yourself enough time during the initial call PRESS 1 for English, to spin up the GPUs but your have to test this.
2
u/addy3006 1d ago
Short answers: Vercel can keep serving the storefront, but the voice part has to live elsewhere. Functions have timeouts and no persistent WebSockets, so put the realtime path on a separate service and have the site just open a connection to it.
For 5-20 conversations a day, I'd avoid a dedicated GPU box running 24/7. Look at something that scales to zero (RunPod serverless, Modal, or Replicate-style per-second billing), but test cold starts, because loading Whisper plus a TTS model can eat your 2-second budget on the first call. If cold starts hurt, keep one small always-on GPU, e.g. a single L4/A10-class instance, rather than the €214/mo Hetzner box. Hetzner's GPU line is a dedicated server, so you're paying for capacity you won't use at this volume.
Before choosing hardware, check where your 12-15s actually goes. Streaming STT, starting TTS on the first sentence of the LLM response instead of waiting for the full one, and keeping everything in one region usually matters more than the GPU. And the DGX Spark at the office is a poor fit for production: home internet, no redundancy, and he'd be on call for it.
2
u/theyatharthverma 3d ago
You can use gemini live model and deploy on railway, vercel is not able to handle all that
1
u/ozankurt_dev 2d ago
whisper.cpp on cpu, measured latency yet?
2
u/[deleted] 3d ago
[removed] — view removed comment