---
title: "How Together AI built the world’s fastest speech-to-text stack"
description: "Speech-to-text serving is a full-path systems problem, because ASR models are small while audio inputs are large and need heavy CPU preprocessing."
url: "https://swe.quest/articles/how-together-ai-built-the-world-s-fastest-speech-to-text-stack-b5ccd6ddea6a414d"
canonical: "https://www.together.ai/blog/how-together-ai-built-the-worlds-fastest-speech-to-text-stack"
source: "Together AI"
published: "2026-05-29"
difficulty: "hard"
kind: "Case study"
reading_minutes: 7
tags: ["inference","speech-audio","performance","python","linux"]
---

# How Together AI built the world’s fastest speech-to-text stack

A post on [Together AI](https://swe.quest/sources/together.md), published 2026-05-29, 7 min read, Case study. Original: [https://www.together.ai/blog/how-together-ai-built-the-worlds-fastest-speech-to-text-stack](https://www.together.ai/blog/how-together-ai-built-the-worlds-fastest-speech-to-text-stack)

## Summary

Speech-to-text serving is a full-path systems problem, because ASR models are small while audio inputs are large and need heavy CPU preprocessing. Together optimized Parakeet-TDT 0.6B v3 and Whisper Large v3 at each layer of that path. Multi-profile TensorRT engines tune the encoder for real audio shapes instead of padding short chunks. Conditional CUDA graph nodes move the decoder's BLANK-token branch onto the GPU, making the decoder 2-3x faster. Persistent Unix domain sockets, shared memory and fewer process hops cut copy overhead, epoll replaces thread-per-connection streaming to tame GIL contention, and gc.freeze() after startup preallocation removed periodic ~200 ms p95 spikes caused by full Python GC passes.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Speech & audio](https://swe.quest/tags/speech-audio.md) (AI & ML)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Python](https://swe.quest/tags/python.md) (Languages)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)

## Prerequisites

- CUDA graphs
- Python GIL and garbage collection ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))
- encoder-decoder ASR models ([easy posts on Speech & audio](https://swe.quest/tags/speech-audio.md?difficulty=easy))
- Linux IPC and epoll ([easy posts on Linux](https://swe.quest/tags/linux.md?difficulty=easy))

## Keywords

Parakeet-TDT, Whisper Large v3, TensorRT, CUDA graphs, epoll, gc.freeze, Together AI

## Related posts

- [Transcribe speech 100x faster and 100x cheaper with open models](https://swe.quest/articles/transcribe-speech-100x-faster-and-100x-cheaper-with-open-models-c3de3ba8f557cf48.md): Modal · 2025-07-23 · Medium · 11 min read · Speech & audio, Inference & serving, Cost optimization, Performance engineering, Serverless
  Open-weights ASR models such as NVIDIA's parakeet-tdt-0.6b-v2 and canary-1b-flash, deployed as a batch transcription service on Modal GPUs, transcribed about a week of ESB benchmark audio in roughly a minute for about $1.
- [Optimizing Bark using 🤗 Transformers](https://swe.quest/articles/optimizing-bark-using-transformers-8cf8d4b8561c07e2.md): Hugging Face · 2023-08-09 · Medium · 11 min read · Inference & serving, Speech & audio, Performance engineering, Python
  Bark, Suno's four-stage transformer text-to-speech model, can be made much cheaper to run in 🤗 Transformers with three one-line optimizations: Better Transformer (Flash Attention kernel fusion), fp16 half-precision, and CPU offload of idle sub-models via Accelerate.
- [Speech Synthesis, Recognition, and More With SpeechT5](https://swe.quest/articles/speech-synthesis-recognition-and-more-with-speecht5-f8b2cd78391a59c0.md): Hugging Face · 2023-02-08 · Medium · 9 min read · Speech & audio, Machine learning, Python
  SpeechT5, Microsoft Research Asia's unified speech model, is now in 🤗 Transformers.
- [Blazingly fast whisper transcriptions with Inference Endpoints](https://swe.quest/articles/blazingly-fast-whisper-transcriptions-with-inference-endpoints-d93b7d262c3a1210.md): Hugging Face · 2025-05-13 · Easy · 6 min read · Inference & serving, Speech & audio, Performance engineering
  Hugging Face Inference Endpoints now offers a Whisper deployment built on vLLM that delivers up to roughly 8x higher real-time factor (RTFx) than the Transformers implementation, with comparable word error rate.
- [Powerful ASR + diarization + speculative decoding with Hugging Face Inference Endpoints](https://swe.quest/articles/powerful-asr-diarization-speculative-decoding-with-hugging-face-inference-ed388c1f3bfe4f4b.md): Hugging Face · 2024-05-01 · Medium · 7 min read · Speech & audio, Inference & serving, Python
  A custom inference handler on Hugging Face Inference Endpoints serves Whisper ASR, Pyannote speaker diarization and speculative decoding behind a single API endpoint.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
