Skip to content

Glossary

Windows Speech API (SAPI)

The Windows Speech API (SAPI) is Microsoft's interface that lets Windows apps use speech recognition and text-to-speech without building the speech engine themselves. Windows.Media.SpeechRecognition is a separate API for command and control in Windows Runtime apps.

Updated October 16, 20264 cited facts, each traced to its source

Also called SAPI, Windows.Media.SpeechRecognition.

The Windows Speech API (SAPI) is Microsoft's programming interface for speech recognition and text-to-speech on Windows. Microsoft says it "dramatically reduces the code overhead" an application needs to use both 1. An app calls SAPI to listen for speech or to speak text, and it does not have to build that machinery itself.

SAPI is a developer interface, not a feature you open. You do not start it from a keyboard shortcut. The dictation you use every day on Windows comes from features such as voice typing and Voice Access, which have their own commands.

SAPI gives apps a shared recognizer

Within SAPI, an app works with a recognizer. Microsoft recommends a particular kind for most apps: "A shared recognizer that could possibly be shared with other speech recognition applications is recommended for most speech applications" 2. The recognizer can be shared with other speech applications, which is the option Microsoft prefers for most apps.

Example: a note-taking app adds a dictate button. It asks SAPI for a recognizer, receives the recognized words as text, and inserts them into the note.

Windows.Media.SpeechRecognition is a separate API

The second name in the aka list, Windows.Media.SpeechRecognition, belongs to a different surface. Microsoft describes it as enabling "speech recognition for command and control within Windows Runtime app" 3. Choose it when you are building a Windows Runtime app that needs commands, such as "open settings", rather than free dictation. The SAPI overview sits in Microsoft's previous-versions documentation, so check the current namespace before you start a new project.

A newer on-device API arrived in 2026

In June 2026 heise reported that Microsoft's new Windows speech recognition API "processes speech directly on the device" and does not need an internet connection 4. This is a news report of a developer interface, so read Microsoft's current documentation before you build on it.

Why it matters for dictation and typing

For a person typing or dictating, SAPI is the layer underneath, and you rarely see it. For a developer, the choice of interface shapes what the app can do: whether recognition runs on the device or in the cloud, which languages are available, and whether the app gets commands or free text. Those choices affect how private and how offline a dictation feature can be. The guide to offline speech to text on Windows explains which Windows dictation works without a connection, and the Windows dictation privacy guide covers when audio goes online.

Related terms and guides

Related terms: Windows Speech Recognition (WSR), Voice Access (Windows), Number and grid overlays (Voice Access), Online speech recognition and Azure AI Speech.

Read Windows Speech Recognition: deprecation and replacement for the older feature that Voice Access replaces. For the wider picture, see our overview of dictation on Windows.

Evidence

Every number on this page, with where it comes from. Open a fact to see the exact words in its source.

  1. 1.
  2. 2.
  3. 3.
  4. 4.

Related terms

Pages that use this term