For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connecting the Windows worker

Windows worker for local transcription: installing the service from the MSI or ZIP, connecting it to MikoPBX, checking that it works, updating and removing it.

The Windows worker is a Windows service that recognizes call recordings locally on your computer or server. It takes jobs from the queue of the Local Transcription module, downloads the recording, recognizes it with the model selected in MikoPBX, and sends timestamped segments and technical diagnostics back to the PBX. Recordings never leave your network.

The worker has no graphical interface: it runs as the MikoPBX Local STT Worker service and is configured and controlled with LocalSTTWorker.exe from an administrator command prompt.

The Windows worker runs at the same time as Local STT Worker for macOS and the Docker worker: every platform has its own model selected on the Model marketplace tab, and every worker receives jobs with the model of its platform.

Requirements

Component
Minimum

OS

Windows 10/11 or Windows Server 2019 or newer, 64-bit (x64)

Memory

8 GB

Disk

about 0.3 GB for the program plus space for the selected model (up to 2.5 GB)

Summarization

if turned on in the module: 4 GB more free RAM and 3 GB more disk space

MikoPBX

2025.1.1 or newer, with a Local Transcription module that offers the Windows platform in the model marketplace

Network

outbound HTTPS to MikoPBX and huggingface.co (for the first model download)

Recognition runs on the CPU; no graphics card is needed.

Models

The model is selected in MikoPBX: Modules → Local Transcription → Model marketplace tab, Windows platform. The worker downloads the model on the first job and keeps it locally. Every model is pinned to a specific version, and the worker checks the SHA-256 of every file.

Model
Languages
When to choose
Size

GigaAM v3 (default)

Russian

Russian calls: best accuracy, punctuation, numbers

0.9 GB

Parakeet TDT 0.6B v3

25 European

European languages, detected automatically

2.5 GB

GigaAM Multilingual

Kazakh, Kyrgyz, Uzbek, Russian, English

Central Asian languages, no punctuation

0.9 GB

Whisper Large V3 Turbo (whisper.cpp)

about 99 languages

Any language and mixed calls; the slowest on the CPU

1.6 GB

GigaAM v3 recognizes Russian speech only: keep the module's default language at automatic or Russian. Vocabulary terms from MikoPBX are applied only by the Whisper model for now.

Step 1. Prepare MikoPBX

  1. Open Modules → Local Transcription → Model marketplace tab.

  2. Switch the platform to Windows, select a model, for example GigaAM v3, and click Save model.

  3. Go to the Workers tab and select the Windows platform.

  4. Click Create API key and copy the key: it is shown once and is not available after the page is reloaded.

Step 2. Download the worker

On the Workers tab, with the Windows platform selected, click Download for Windows. A menu opens with two packages; each one shows its file name and size:

Package
File
When to choose

MSI

MikoPBX-LocalSTTWorker-<version>-x64.msi

Recommended: installs and starts the service automatically

ZIP

MikoPBX-LocalSTTWorker-<version>-win-x64.zip

Manual installation to a folder of your choice; the install command registers the service

MikoPBX downloads the latest worker version from the MIKO release server with the PBX license. If the download is unavailable, check that the MikoPBX license is active. The MSI installer and the program are digitally signed.

Step 3. Install

Run all commands in a command prompt or PowerShell as administrator.

Extract the archive, for example to C:\Program Files\MikoPBX\LocalSTTWorker. Do not change the files in the Tools folder: the worker checks their checksums and does not start if they differ.

The service is registered after setup, in step 4.

Step 4. Connect to MikoPBX (setup)

Go to the program folder and run the setup wizard:

The wizard asks for:

  1. MikoPBX address - https://<mikopbx-address>, with a port if needed, without a path.

  2. Whether to accept a self-signed MikoPBX certificate - no by default (see the TLS section).

  3. Worker UID - windows-<computer-name> by default; a key is bound to one UID.

  4. Worker name - how it is shown on the Workers tab, Windows STT Worker (<computer-name>) by default.

  5. Worker key - the key from step 1; the input is hidden.

The wizard then checks the connection and registers the worker. A successful result looks like this:

The service is already running and picks up the settings within 30 seconds; no restart is needed.

Register and start the service:

To change the address, key or name, run setup again. Press Enter to keep the current value; an empty key keeps the stored one. The running service picks up the changes within 30 seconds.

Setup without typing the key (for scripts)

The wizard can read its answers from standard input, one line per question in the same order: address, self-signed certificate, UID, name, key. An empty line keeps the default value. With the --token-stdin flag the key is read from standard input as well. The key is never passed on the command line.

Create an answers.txt file:

and pass it to the wizard:

Step 5. Check that it works

On the first job the worker downloads the model (GigaAM v3 is about 0.9 GB) and checks its checksums, then starts recognizing. That is why the first job takes a few minutes longer than the others.

  1. In MikoPBX, the Workers tab shows the worker as Online, with the Windows platform, its IP and model.

  2. status shows the service and worker state and a growing job counter:

  1. The worker log C:\ProgramData\MikoPBX\LocalSTTWorker\Logs\worker-yyyyMMdd.log shows every job:

  1. The call card shows the transcript, and its technical information shows the model, the processing time and the RTF.

RTF is the ratio of processing time to recording length. For example, an RTF of 0.1 means a 10-minute call is recognized in one minute. For reference: GigaAM v3 on an Intel Xeon E5-2670 (from 2012, without AVX2) runs at an RTF of about 0.34, so a 10-minute call takes about 3.5 minutes.

State (Worker state)

Meaning

not_configured

The worker is not configured: run setup.

negotiating, registering, loading_settings

Connecting to MikoPBX and loading the settings.

polling

The worker is waiting for jobs in the queue.

processing

A job is running.

waiting_for_windows_model

MikoPBX does not serve a Windows model: update the module (see Troubleshooting).

unsupported_model

The selected model is not supported by this worker version.

stopped, failed

The service is stopped or ended with an error; see Last error and the log.

Management

Task
Command

State

.\LocalSTTWorker.exe status

Check the connection and key

.\LocalSTTWorker.exe check

Stop the service

.\LocalSTTWorker.exe stop

Start the service

.\LocalSTTWorker.exe start

Change the settings

.\LocalSTTWorker.exe setup

Run in the console

.\LocalSTTWorker.exe run (with the service stopped)

Run the commands in the program folder as administrator. The service can also be controlled in the Services snap-in (services.msc). It starts automatically (delayed start) as LocalSystem and restarts after a failure: after one minute the first two times, then after five minutes. When it stops, the current job finishes or returns to the MikoPBX queue; new calls wait in the queue.

Updating

Download the new version on the Workers tab and run the installer the same way as for the installation. The old version is removed and the new one installed and started. Settings, the key, models and logs are kept.

Installing an older version over a newer one is refused: remove the worker first.

Replace the files in the program folder with the contents of the new archive and start the service:

Removing

Remove MikoPBX Local STT Worker in Settings → Apps, or from an administrator command prompt:

Do not remove an MSI-installed service with LocalSTTWorker.exe uninstall.

Then delete the program folder.

The C:\ProgramData\MikoPBX\LocalSTTWorker folder with the settings, key, models and logs is kept on purpose, so a reinstall does not download the model again. Delete this folder to remove everything. Then delete this worker's API key on the Workers tab in MikoPBX.

Summarization

If Get call summarization is on in the module settings, the worker also writes the topic and a short summary of every new call. The Gemma 3 4B model runs right on this computer, using a runtime that ships with the worker.

  • The model, about 2.5 GB, is downloaded in the background into the Models\ folder; transcription keeps working meanwhile.

  • Summaries are written only when there are no recordings to transcribe.

  • Summarization needs about 4 GB of free RAM while it runs. If there is not enough memory, turn summarization off or connect a worker on a more powerful computer.

  • status shows the summarization state: off, downloading_model, ready, summarizing, or error (see the log for details).

TLS

Certificate verification is on by default: the worker connects only to a MikoPBX with a trusted certificate. If the PBX has a self-signed certificate or you connect to it by IP address, answer y to the self-signed certificate question in setup. The traffic is still encrypted. Do this only on a trusted network.

To make the worker trust your own certificate authority, install its root certificate into the computer's Trusted Root Certification Authorities store.

Troubleshooting

To check the worker, run .\LocalSTTWorker.exe check: it checks the program files, settings, key, module compatibility, registration and the selected model.

Symptom
Cause and solution

'setup' needs administrator rights

The command prompt runs without administrator rights. Open it with Run as administrator.

The MSI installer reports that Visual C++ is missing

Install the Visual C++ 2015-2022 x64 runtime and run the installer again.

status: not_configured

The worker is not configured. Run setup.

PBX rejected the worker API token or PBX refused the worker credentials

The key was deleted, mistyped or is already bound to another worker. Create a new key on the Workers tab and run setup.

update ModuleLocalSpeechToText or status: waiting_for_windows_model

The module version does not support the Windows platform. Update Local Transcription.

status: unsupported_model

The selected model is not supported by this worker version. Update the worker or select another model.

TLS error when connecting

The MikoPBX certificate is not trusted. Allow a self-signed certificate in setup or install your CA (see the TLS section).

The model is not downloaded

No access to huggingface.co. Allow outbound HTTPS for the computer or the proxy.

The status is stale: the service is not running or is hung

The service has not updated its state for more than 10 minutes. Check the service in services.msc and the worker log.

Worker warnings and errors are also written to the Windows Application log with the MikoPBX Local STT Worker source (Event Viewer, eventvwr.msc).

Data and security

All data is kept in C:\ProgramData\MikoPBX\LocalSTTWorker. Only SYSTEM and administrators can access the folder.

Data
Where it is kept

Program

C:\Program Files\MikoPBX\LocalSTTWorker

Settings

settings.json: MikoPBX address, worker UID and name

Key

secrets\worker-token.bin, encrypted with machine-scope DPAPI

Models

Models\, one folder per model and version

Logs

Logs\worker-yyyyMMdd.log, kept for 14 days

State

status.json, rewritten at least once a minute

Temporary audio

Temporary\, deleted after the job

The worker connects to MikoPBX only with outbound HTTPS requests, receives recordings only for jobs assigned to it and does not keep them after processing. The worker key grants access only to the transcription module API and is never passed on the command line.

Last updated

Was this helpful?