androidPicovoice Platform — Android Quick Start

Cloning the Repository

If using SSH, clone the 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

Running Demo Applications

There are two demo applications in the repository. The Activity demo is intended for applications that need to perform voice recognition when in focus. The Service demo is intended for applications that need to do voice recognition and for an extended period of time.

Both applications listen to the wake phrase "Porcupine" and have the "SmartLighting" Rhino context loaded. You can say

Porcupine, turn on the kitchen lights.

The full list of supported commands are available here.

Activity Demo

  • From Android studio open the project under Activity.
  • Build the project.
  • Debug on your Android device.
  • After the application is loaded, press the start button.
  • Press the stop button when done.

Service Demo

  • From Android studio open the project under Service.
  • Build the project.
  • Debug on your Android device.
  • After the application is loaded press the start button. Now you may navigate away from the application or even lock your android device. The application keeps listening.
  • Press the stop button when done.

Custom Wake Word & Context

You can create custom Porcupine wake word and Rhino context models using Picovoice Console.