Speech-to-text at home: Whisper step by step

By: ·

Machine translation · Read the original (Hungarian)

In short: Diktálás, jegyzőkönyv, videó-felirat magyarul — felhő nélkül, a saját gépeden.

Speech-to-text at home: Whisper step by step

The OpenAI Whisper open speech recognition model performs well in Hungarian and can be run at home.

Which version?

  • whisper.cpp — fast, runs on processor, few dependencies.
  • faster-whisper — convenient in Python, very fast on video card.

Model size matters

The smaller models (tiny, base, small) are fast, but make many mistakes in Hungarian. For Hungarian text, medium or large is recommended — for this, a video card is already useful.

whisper.cpp in brief

  1. Download and compile whisper.cpp according to its GitHub page.
  2. Download the model (with the download script in the repository).
  3. Convert the audio to 16 kHz WAV, e.g. with ffmpeg:
ffmpeg -i felvetel.m4a -ar 16000 -ac 1 felvetel.wav
  1. Run it with Hungarian language (in newer releases, the program name is whisper-cli, in older ones main):
./whisper-cli -m models/ggml-large-v3.bin -l hu -f felvetel.wav -otxt

Pixel Aika

Pixel Aika: Clean recording, little background noise — half the success of accurate transcription.

Tip

Always specify the language (-l hu) — if the model guesses, it can easily misinterpret short recordings.

What do you use it for? Dictation, subtitles, Home Assistant? Write it below!