Skip to content
Inho Oh edited this page Sep 30, 2022 · 6 revisions

Install

Install packages at once using dependencies

It can take a long time.

brew install nugulinux/sdk/libnugu-examples

Install packages step by step

Install dependency packages

brew install glib curl jsoncpp openssl gstreamer \
             gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly

Add NUGU SDK Tap

brew tap nugulinux/sdk

Install KWD/EPD libraries

brew install libnugu-kwd libnugu-epd

Install NUGU SDK

brew install libnugu libnugu-plugins libnugu-examples

Setup

GStreamer plugin

$ export GST_PLUGIN_SYSTEM_PATH=/opt/homebrew/lib/gstreamer-1.0
or
$ export GST_PLUGIN_SYSTEM_PATH=$HOMEBREW_PREFIX/lib/gstreamer-1.0

# Add to your .zshrc
echo "export GST_PLUGIN_SYSTEM_PATH=$HOMEBREW_PREFIX/lib/gstreamer-1.0" >> ~/.zshrc

NUGU server setting

export NUGU_REGISTRY_SERVER=https://stg-reg-http.sktnugu.com/

# Add to your .zshrc
echo "export NUGU_REGISTRY_SERVER=https://stg-reg-http.sktnugu.com/" >> ~/.zshrc

NUGU token(OAuth2 token) setting

export NUGU_TOKEN=...

Run

When running for the first time, it may take some time to initialize the plugin in gstreamer.

$ nugu_sample
=======================================================
NUGU SDK Command (Disconnected)
=======================================================
[ i] : initialize
[ d] : deinitialize
[ q] : quit
-------------------------------------------------------
Select Command >

With debug log

$ nugu_sample -d

Uninstall

brew uninstall libnugu libnugu-plugins libnugu-examples libnugu-kwd libnugu-epd
brew untap nugulinux/sdk
Clone this wiki locally