---
title: "Build a Speech-to-Text App with AssemblyAI on Replit"
description: "A Next.js app on Replit transcribes uploaded audio files with AssemblyAI's speech-to-text API."
url: "https://swe.quest/articles/build-a-speech-to-text-app-with-assemblyai-on-replit-b259386c71ff4ae2"
canonical: "https://replit.com/blog/build-a-speech-to-text-app-with-assemblyai-on-replit"
source: "Replit"
published: "2022-03-29"
difficulty: "medium"
kind: "How-to"
reading_minutes: 9
tags: ["speech-audio","react","javascript","api-design"]
---

# Build a Speech-to-Text App with AssemblyAI on Replit

A post on [Replit](https://swe.quest/sources/replit.md), published 2022-03-29, 9 min read, How-to. Original: [https://replit.com/blog/build-a-speech-to-text-app-with-assemblyai-on-replit](https://replit.com/blog/build-a-speech-to-text-app-with-assemblyai-on-replit)

## Summary

A Next.js app on Replit transcribes uploaded audio files with AssemblyAI's speech-to-text API. It uses three API routes: one that parses multipart uploads with multiparty and forwards the file to AssemblyAI's /upload endpoint, one that submits the returned private URL to /transcript, and one that fetches results by ID. A React frontend polls the result route once per second until the status is "completed" or "error". Setup covers Tailwind, Axios, keeping the API key in Replit Secrets, and disabling Next.js's bodyParser so multiparty can parse uploads.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Speech & audio](https://swe.quest/tags/speech-audio.md) (AI & ML)
- [React](https://swe.quest/tags/react.md) (Web & mobile)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)

## Prerequisites

- React basics ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- Next.js API routes ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- HTTP APIs ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))

## Keywords

AssemblyAI, Next.js, Replit, React, Tailwind CSS, Axios, multiparty

## 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.
- [AssemblyAI: A voice agent can fail without throwing an error](https://swe.quest/articles/assemblyai-a-voice-agent-can-fail-without-throwing-an-error-754d94c60f639ab7.md): Render · 2026-08-02 · Medium · 5 min read · Speech & audio, Evaluation, Observability, Scheduling, AI agents
  A post-hoc quality pipeline for production voice agents re-transcribes each recorded call with AssemblyAI's async Universal 3 Pro model, summarizes it and scores it against a failure rubric via LLM Gateway, then synthesizes fleet-wide findings against deployment history.
- [AI Speech Recognition in Unity](https://swe.quest/articles/ai-speech-recognition-in-unity-c468b32989ceef77.md): Hugging Face · 2023-06-02 · Medium · 6 min read · Speech & audio, Games, .NET
  Speech recognition can be added to a Unity game with the Hugging Face Unity API by recording microphone input, encoding it as WAV and sending it for transcription.
- [Experiments with AI video content strategy | Mux](https://swe.quest/articles/experiments-with-ai-video-content-strategy-mux-66132e9bff2fe4d4.md): Mux · 2023-04-17 · Medium · 13 min read · LLMs, Video & media, JavaScript
  A Node.js pipeline turns an uploaded video into promotional content automatically.
- [Building a Playlist Generator with Sentence Transformers](https://swe.quest/articles/building-a-playlist-generator-with-sentence-transformers-68c1a8d1b6166405.md): Hugging Face · 2022-07-13 · Medium · 8 min read · Search, Machine learning, Python
  A playlist generator embeds song lyrics with Sentence Transformers and runs semantic search against a text prompt, wrapped in a multi-step Gradio Blocks app on Hugging Face Spaces.

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)
