Picovoice Platform — Unity Quick Start
Requirements
- Unity 2017.4+
To deploy to iOS or Android, ensure you install the relevant Unity build support modules using Unity Hub.
Compatibility
- Android 4.1+ (API 16+) (ARM only)
- iOS 9.0+
- Windows (x86_64)
- macOS (x86_64)
- Linux (x86_64)
Usage
The easiest way to run the demo is to simply import the Picovoice Unity package into your project, open the PicovoiceDemo 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, you can say "Picovoice" and then give it any command within the smart lighting context:
context:expressions:changeColor:- "[turn, make] (all, the) lights $color:color"- "[change, set, switch] (all, the) lights to $color:color"- "[turn, make] (the) $location:location (color, light, lights) $color:color"- "[change, set, switch] (the) $location:location (color, light, lights) to $color:color"- "[turn, make] (the) [color, light, lights] [at, in] (the) $location:location $color:color"- "[change, set, switch] (the) [color, light, lights] [at, in] (the) $location:location to $color:color"- "[turn, make] (the) [color, light, lights] $color:color [at, in] (the) $location:location"- "[change, set, switch] (the) [color, light, lights] to $color:color [at, in] (the) $location:location"changeLightState:- "[switch, turn] $state:state (all, the) lights"- "[switch, turn] (all, the) lights $state:state"- "[switch, turn] $state:state (the) $location:location (light, lights)"- "[switch, turn] (the) $location:location [light, lights] $state:state"- "[switch, turn] $state:state (the) [light, lights] [at, in] (the) $location:location"- "[switch, turn] (the) [light, lights] [in, at] the $location:location $state:state"changeLightStateOff:- "shut off (all, the) lights"- "shut (all, the) lights off"- "shut off (the) $location:location (light, lights)"- "shut (the) $location:location (light, lights) off"- "shut off (the) [light, lights] [at, in] (the) $location:location"- "shut (the) [light, lights] off [at, in] (the) $location:location"- "shut (the) [light, lights] [at, in] (the) $location:location off"slots:color:- "blue"- "green"- "orange"- "pink"- "purple"- "red"- "white"- "yellow"state:- "off"- "on"location:- "bathroom"- "bedroom"- "closet"- "hallway"- "kitchen"- "living room"- "pantry"