11 November 2026 · Practical AI builds
How do I run a speech-to-text model on my own server?
By the end of this you will have an open-source speech-to-text model running on your own Linux server. You give it a recording and it gives you back a text transcript, and the audio never leaves the machine. It suits anyone who handles interviews, client calls or voice notes and would rather not upload them to an outside transcription service.
I learn my automation tips in the AI Profit Boardroom. Have a look here. Affiliate link.
What you need
- A Linux server or VPS running Ubuntu, with SSH access. Two CPU cores and a few GB of free RAM are enough for the smaller models. A graphics card speeds things up but you do not need one.
- Python 3, which Ubuntu already includes, plus the
python3-venvpackage. - faster-whisper, a free, open-source and fast version of the Whisper speech-to-text model.
- A few GB of disk space for the model files.
- Basic comfort with typing commands into a terminal.
Step by step
- Log in to your server over SSH and install the Python tools:
sudo apt update && sudo apt install python3-venv python3-pip. - Make a folder for the tool and a virtual environment inside it, so the model's packages stay separate from everything else on the server:
mkdir ~/transcribe && cd ~/transcribe && python3 -m venv venv. - Switch the environment on and install faster-whisper:
source venv/bin/activate, thenpip install faster-whisper. It brings its own audio decoder, so common formats like MP3, M4A and WAV usually work without anything extra. - Create a file called
transcribe.pywith the short script below. It loads the model, reads the audio file you name, and prints each piece of speech with its start time.
import sys
from faster_whisper import WhisperModel
model = WhisperModel('small', device='cpu', compute_type='int8')
segments, info = model.transcribe(sys.argv[1], vad_filter=True)
print('Language:', info.language)
for s in segments:
print(f'[{s.start:.0f}s] {s.text.strip()}')
- Copy a recording to the server (for example with
scp recording.m4a user@host:~/transcribe/) and runpython transcribe.py recording.m4a > recording.txt. - The first run downloads the model files from the internet, which can take a few minutes. That is the only download. After that the model is stored on the server, and your audio is processed locally every time.
- Open
recording.txtand read it through. If the words are not accurate enough, change'small'to'medium'. If it is too slow, change it to'base'. Bigger models are usually more accurate but slower, and they need more memory. - For long recordings, run the command so it keeps going after you disconnect, or set a folder to be checked on a schedule so new files get transcribed automatically.
What good looks like
You run the script and get back a text file with a timestamp on each line, in the right language, and it reads close to what was said. You can check that nothing was uploaded by unplugging the network for a test: once the model has downloaded, the transcript still comes out. On a modest server without a graphics card, the small model often takes about as long as the recording itself, sometimes less. Speed depends a lot on the server, so time one of your own files to get a real figure.
Watch out for
Speech-to-text models make mistakes. They mishear names, technical words and people talking over each other, and on long silences or background noise they can sometimes write sentences nobody said. The vad_filter=True setting skips silent parts and helps, but it does not fix this completely. Read the transcript before you rely on it for anything that matters, such as a quote, a medical note or a legal record. Also remember that the transcripts are now private data on your server, so lock the folder down and back it up like anything else sensitive. If you are thinking about where else that data travels, keeping private data out of AI tools covers the wider picture.
Questions people ask
Does it work for languages other than English?
Yes. The standard Whisper models handle many languages and work out which one is spoken by themselves. Accuracy varies by language, and is usually best for widely spoken ones.
Can it tell who is speaking?
Not on its own. Whisper writes down the words but does not label speakers. That needs a separate tool, or you can add the names by hand. If you want a summary and action points afterwards, see how to transcribe a meeting and get the action points with AI.
That is all it takes: a free open-source model, a short Python script and a server you control, so recordings become text without the audio going anywhere else. You can get the same kind of VPS with 20% off at https://asksteves.co.uk/vps. Affiliate link.
Want more automation tips? The AI Profit Boardroom on Skool is where I get mine. Have a look here. Affiliate link.
Everything on this blog runs on one Hostinger KVM 8. This link takes 20% off the same box.
Affiliate link.