Skip to main content

Speech Recognition Capacitor plugin

Natural, low-latency speech recognition with streaming partial results and cross-platform parity

Install

bun add @capgo/capacitor-speech-recognition bunx cap sync
npm, pnpm or yarn
  • npm install @capgo/capacitor-speech-recognition
  • pnpm add @capgo/capacitor-speech-recognition
  • yarn add @capgo/capacitor-speech-recognition

Guide

How to use Speech Recognition in Capacitor

Test on device

Download the Capgo app, then scan the QR code.

Speech Recognition plugin preview QR code

Using @capgo/capacitor-speech-recognition

Capacitor plugin for comprehensive on-device speech recognition with live partial results.

Install

bun add @capgo/capacitor-speech-recognition
bunx cap sync

What This Plugin Exposes

  • available - Checks whether the native speech recognition service is usable on the current device.
  • isOnDeviceRecognitionAvailable - Checks whether the platform's newer on-device recognition path is available for the selected locale.
  • start - Begins capturing audio and transcribing speech.
  • stop - Stops listening and tears down native resources.

Example Usage

available

Checks whether the native speech recognition service is usable on the current device.

import { SpeechRecognition } from '@capgo/capacitor-speech-recognition';

const result = await SpeechRecognition.available();
console.log(result);

isOnDeviceRecognitionAvailable

Checks whether the platform's newer on-device recognition path is available for the selected locale.

import { SpeechRecognition } from '@capgo/capacitor-speech-recognition';

const result = await SpeechRecognition.isOnDeviceRecognitionAvailable();
console.log(result);

start

Begins capturing audio and transcribing speech.

import { SpeechRecognition } from '@capgo/capacitor-speech-recognition';

const result = await SpeechRecognition.start();
console.log(result);

stop

Stops listening and tears down native resources.

import { SpeechRecognition } from '@capgo/capacitor-speech-recognition';

await SpeechRecognition.stop();

Full Reference

Keep going from Using @capgo/capacitor-speech-recognition

If you are using Using @capgo/capacitor-speech-recognition to plan dashboard and API operations, connect it with @capgo/capacitor-speech-recognition for the implementation detail in @capgo/capacitor-speech-recognition, Getting Started for the implementation detail in Getting Started, API Overview for the implementation detail in API Overview, Introduction for the implementation detail in Introduction, and API Keys for the implementation detail in API Keys.

FAQ

Speech Recognition plugin FAQ

How do I install the Speech Recognition plugin in a Capacitor app?

Run "bun add @capgo/capacitor-speech-recognition" (or "npm install @capgo/capacitor-speech-recognition"), then run "bunx cap sync" so the iOS and Android projects pick up the native code. Import it from "@capgo/capacitor-speech-recognition" in your app code.

Does @capgo/capacitor-speech-recognition work with React, Vue and Angular?

Yes. Speech Recognition is a Capacitor package, so it works with any web framework that runs inside Capacitor, including Ionic, React, Vue, Angular, Svelte and plain JavaScript.

Which Capacitor version does @capgo/capacitor-speech-recognition support?

Capgo plugins follow Capacitor's major version: use the plugin major version that matches your Capacitor major version (for example plugin v8 with Capacitor 8). The compatibility table in the GitHub README lists the maintained versions.

Is @capgo/capacitor-speech-recognition free and open source?

Yes. The source code is public on GitHub at https://github.com/Cap-go/capacitor-speech-recognition/ and the package is free to install from npm. Bug reports and pull requests are welcome.

Can I update code that uses Speech Recognition without an App Store review?

Installing or upgrading the plugin changes native code, so it needs a new store build. After that, JavaScript, HTML and CSS changes that call the plugin can ship instantly with Capgo live updates.

Ship Speech Recognition changes without waiting for app review

Once the plugin is in your store build, Capgo live updates push your JavaScript, HTML and CSS changes to users in minutes.

Start with Capgo