npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-microsoft-speech

v0.0.3

Published

[![npm][npm]][npm-url] [![deps][deps]][deps-url]

Readme

[![npm][npm]][npm-url] [![deps][deps]][deps-url]

npm i react-native-microsoft-speech --save

Table of contents

react-native link react-native-microsoft-speech

Example

import Speech from 'react-native-microsoft-speech';
import React, {Component} from 'react';

class SpeechTest extends Component {
  constructor(props) {
    Speech.onSpeechStart = this.onSpeechStartHandler.bind(this);
    Speech.onSpeechEnd = this.onSpeechEndHandler.bind(this);
    Speech.onSpeechResults = this.onSpeechResultsHandler.bind(this);
  }
  onStartButtonPress(e){
    Speech.start('en-US');
  }
  ...
}

All methods now return a new Promise for async/await compatibility.

Method Name | Description | Platform --------------------------- | ----------------------------------------------------------------------------------- | -------- Speech.isAvailable() | Checks whether a speech recognition service is available on the system. | Android, iOS Speech.start(locale) | Starts listening for speech for a specific locale. Returns null if no error occurs. | Android, iOS Speech.stop() | Stops listening for speech. Returns null if no error occurs. | Android, iOS Speech.cancel() | Cancels the speech recognition. Returns null if no error occurs. | Android, iOS Speech.destroy() | Destroys the current SpeechRecognizer instance. Returns null if no error occurs. | Android, iOS Speech.removeAllListeners() | Cleans/nullifies overridden Speech static methods. | Android, iOS Speech.isRecognizing() | Return if the SpeechRecognizer is recognizing. | Android, iOS

Event Name | Description | Event | Platform ----------------------------------- | ------------------------------------------------------ | ----------------------------------------------- | -------- Speech.onSpeechStart(event) | Invoked when .start() is called without error. | { error: false } | Android, iOS Speech.onSpeechRecognized(event) | Invoked when speech is recognized. | { error: false } | Android, iOS Speech.onSpeechEnd(event) | Invoked when SpeechRecognizer stops recognition. | { error: false } | Android, iOS Speech.onSpeechError(event) | Invoked when an error occurs. | { error: Description of error as string } | Android, iOS Speech.onSpeechResults(event) | Invoked when SpeechRecognizer is finished recognizing. | { value: [..., 'Speech recognized'] } | Android, iOS Speech.onSpeechPartialResults(event) | Invoked when any results are computed. | { value: [..., 'Partial speech recognized'] } | Android, iOS Speech.onSpeechVolumeChanged(event) | Invoked when pitch that is recognized changed. | { value: pitch in dB } | Android

Android

While the included VoiceTest app works without explicit permissions checks and requests, it may be necessary to add a permission request for RECORD_AUDIO for some configurations. Since Android M (6.0), user need to grant permission at runtime (and not during app installation). By default, calling the startSpeech method will invoke RECORD AUDIO permission popup to the user. This can be disabled by passing REQUEST_PERMISSIONS_AUTO: true in the options argument.

iOS

Need to include permissions for NSMicrophoneUsageDescription and NSSpeechRecognitionUsageDescription inside Info.plist for iOS. See the included VoiceTest for how to handle these cases.

<dict>
  ...
  <key>NSMicrophoneUsageDescription</key>
  <string>Description of why you require the use of the microphone</string>
  <key>NSSpeechRecognitionUsageDescription</key>
  <string>Description of why you require the use of the speech recognition</string>
  ...
</dict>

Please see the documentation provided by ReactNative for this: PermissionsAndroid