You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace `${PLATFORM}` with the platform you are running the demo on (e.g. `linux`, `mac`, or `windows`). The microphone
338
-
demo opens an audio stream from the microphone, detects utterances of a given wake phrase, and infers intent from the
339
-
follow-on spoken command. Once the demo initializes, it prints `Listening ...` to the console. Then say:
340
-
341
-
> Porcupine, set the lights in the kitchen to orange.
342
-
343
-
Upon success the following it printed into the terminal:
344
-
345
-
```text
346
-
[wake word]
347
-
{
348
-
intent : 'changeColor'
349
-
slots : {
350
-
location : 'kitchen'
351
-
color : 'orange'
352
-
}
353
-
}
354
-
```
355
-
356
-
For more information about the Go demos go to [demo/go](demo/go/README.md).
357
-
358
322
### Unity Demos
359
323
360
324
To run the Picovoice Unity demo, import the latest [Picovoice Unity package](sdk/unity) 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.
@@ -878,76 +842,6 @@ Once you're done with Picovoice, ensure you release its resources explicitly:
878
842
handle.delete();
879
843
```
880
844
881
-
### Go
882
-
883
-
To install the Picovoice Go module to your project, use the command:
884
-
```console
885
-
go get github.com/Picovoice/picovoice/sdk/go
886
-
```
887
-
888
-
To create an instance of the engine with default parameters, use the `NewPicovoice` function. You must provide a Porcupine keyword file, a wake word detection callback function, a Rhino context file and an inference callback function. You must then make a call to `Init()`.
889
-
890
-
```go
891
-
. "github.com/Picovoice/picovoice/sdk/go/v2"
892
-
rhn "github.com/Picovoice/rhino/binding/go/v2"
893
-
894
-
const accessKey string = "${ACCESS_KEY}"// obtained from Picovoice Console (https://console.picovoice.ai/)
0 commit comments