Skip to content

Latest commit

 

History

History

unity

Porcupine Unity Demo

The Porcupine demo for Unity is a multi-platform demo that runs on:

  • Desktop Standalone (Windows, macOS and Linux x86_64)
  • iOS 13.0+
  • Android 5.0+

Additionally, you will need a version of Unity that is 2017.4 or higher.

Usage

The easiest way to run the demo is to simply import the Porcupine Unity package into your project, open the PorcupineDemo scene and hit play. To run on other platforms or in the player, go to File > Build Settings, choose your platform and hit the Build and Run button.

Once the demo launches, press the Start Listening button and try out any of the listed wake words.

AccessKey

All demos require a valid Picovoice AccessKey at initialization. AccessKeys act as your credentials when using Porcupine SDKs. You can create your AccessKey for free. Make sure to keep your AccessKey secret.

To obtain your AccessKey:

  1. Login or Signup for a free account on the Picovoice Console.
  2. Once logged in, go to the AccessKey tab to create one or use an existing AccessKey.

Replace the AccessKey in PorcupineDemo.cs with the AccessKey obtained above:

private const string ACCESS_KEY = "${YOUR_ACCESS_KEY_HERE}"; // AccessKey obtained from Picovoice Console (https://console.picovoice.ai/)