react-nativePicovoice Platform — React Native Quick Start

  • Wake Word Detection
  • Local Voice Commands
  • Offline Keyword Spotting
  • Always Listening
  • Voice Activation
  • React Native
  • JavaScript
  • Mobile
  • Android
  • iOS

Requirements

  • Node
  • yarn or npm
  • CocoaPods
  • Android SDK 16+
  • JDK 8+
  • Xcode 9+

Refer to React Native's environment setup page for specifics on how to prepare your machine for React Native development.

Compatibility

  • React Native 0.62.2+
  • Android 4.1+ (API 16+)
  • iOS 9.0+

Cloning the Picovoice Repository

If using SSH, clone the Picovoice repository with:

git clone --recurse-submodules [email protected]:Picovoice/picovoice.git

If using HTTPS, then type:

git clone --recurse-submodules https://github.com/Picovoice/picovoice.git

Usage

Running on Android

cd demo/react-native
yarn android-install # sets up environment
yarn android-run # builds and deploys to Android

Running on iOS

cd demo/react-native
yarn ios-install # sets up environment
yarn ios-run # builds and deploys to iOS

The demo application listens for you to way the wake word "Porcupine" and then listens for follow-on commands from the "SmartLighting" Rhino context. For instance, you can say:

Porcupine, turn on the kitchen lights.

The full list of supported commands are available here.


Issue with this doc? Please let us know.