# Audio to Text

> Transcribe voice messages, interviews and lectures automatically, as text or subtitles (SRT). It all runs on your device.

- Open in browser: https://pockettoolbox.org/en/audio-transcriber
- Runs entirely in your browser; files and input are never uploaded.

## How it works

Turns spoken language from audio and video files into text.

Drop a file or record right away, the text appears sentence by sentence while recognition runs. The language is detected automatically, about 20 languages can also be picked directly. If you like, the tool translates to English at the same time. Every sentence has a time, one click plays that spot. Export as text, with or without timestamps, or as subtitles in SRT and VTT format.

Whisper small and base by OpenAI (MIT) as ONNX with int8 weights from sherpa-onnx, run with ONNX Runtime Web in a Web Worker, with several threads where the browser allows it. The audio is converted to 16 kHz mono in the browser, computed as a log-Mel spectrogram in 30-second windows and decoded with timestamp tokens. Silence and stuck repetitions are detected and dropped. The models stay in Cache Storage after the first download.

## FAQ

### How long does it take?

In our test “Fast” needed about 45 seconds for one minute of speech, “Accurate” about two minutes. A fast computer does better, a phone takes longer. The text appears piece by piece while the recognition runs.

### How good is the recognition?

Very good for clear speech, punctuation and capitalization included. Names, technical terms and strong accents go wrong more often. Read the text once before passing it on.

### Are speakers told apart?

No. The text comes as continuous sentences with times, the tool does not detect who is speaking.

## Popular tasks

- [Convert Audio to Text](https://pockettoolbox.org/en/audio-to-text)
- [Turn a Voice Message into Text](https://pockettoolbox.org/en/voice-message-to-text)
- [Generate Subtitles Automatically](https://pockettoolbox.org/en/generate-subtitles)

---
PocketToolbox (https://pockettoolbox.org/en)
