SabaKore

Home / Articles / AI guides

Running Speech Transcription on a VPS

Realistic processing times and setups when running on a CPU alone. It also covers the limits of accuracy, post-processing, and how to avoid piling up the audio data you handle.

Ren, a junior infrastructure engineer

Ren

I want to transcribe meeting recordings, but I hesitate to upload the audio to an outside service...
Procura, a cloud AI robot who explains

Procura

That concern is reasonable. Speech recognition models can run on your own server too, so you can process audio without sending it out. If you handle internal conversations or calls with customers, there's good reason to make that choice.

Does it run on a CPU alone?

It does, but depending on the model size and the CPU's performance, processing can take longer than the audio itself. That's fine if you run it in bulk after meetings, but it doesn't suit turning speech into text as people talk. Here too, "who will wait, and how long" is what decides it.

Ren, a junior infrastructure engineer

Ren

Slow would be a problem...
Procura, a cloud AI robot who explains

Procura

It isn't suited to showing live captions. But if you can "submit a recording and receive the result later", it's quite practical. You can also have it process overnight.

Key points of the setup

  • Always make the processing asynchronous. If you process inside a web request, it will time out while waiting for the response
  • Set up a mechanism (a queue) to hold audio waiting to be processed
  • You can choose the model size. Smaller is faster, larger is more accurate
  • Memory depends on the model you choose. Smaller models need less
  • Don't run several jobs at the same time. They fight over the CPU and everything slows down

Actual accuracy and post-processing

Procura, a cloud AI robot who explains

Procura

Transcription isn't all-powerful. It struggles with proper nouns, technical terms, and scenes where several people talk at once. Don't expect it to be usable as meeting minutes as is. Use it assuming you'll check and correct it.
  • Recording quality greatly affects the result. Microphone position matters
  • Proper nouns are easy to get wrong. Having a mechanism that replaces frequently appearing words in bulk makes it easier
  • Separating speakers needs a different mechanism
  • If you have it summarize, have a person check the transcription first

Build the time estimate into operations

Procura, a cloud AI robot who explains

Procura

How long processing takes varies a lot with the model size and CPU. First measure one recording in your own environment, and build your operations around that time. If you make it "notify when done", the waiting time isn't a problem.
  • When a job is accepted, first reply "received"
  • Put the processing into a waiting line and move through it one at a time
  • Notify when it's done (by email or chat)
  • Notify on failure too. Silently disappearing is the worst

Care with the data you handle

Audio includes conversations you had no plan to transcribe. Small talk before and after the meeting and remarks by others in the room are recorded too. Once it's turned into text, it becomes searchable, so decide the retention period and who may view it more carefully than you would for the recording itself.

Wilson, the security guard

Wilson

...Audio files and their transcripts. The content of meetings, customers' voices, sometimes personal information itself. Left on a server and forgotten, they're fine prey for me.
Procura, a cloud AI robot who explains

Procura

Build a mechanism to delete audio files once they've been processed, instead of leaving them there. It defeats the purpose if you process it yourself because you don't want it to go out, and then pile it up on your own server.
Ren, a junior infrastructure engineer

Ren

It's usable if I can wait. And I build a mechanism to delete audio once it's done.

This article is translated from the Japanese original. If the two differ, the Japanese version is the one we keep up to date.