Giter Site home page Giter Site logo

hvalev / genie-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stanford-oval/genie-server

0.0 0.0 0.0 27.85 MB

The home server version of Almond

License: Apache License 2.0

JavaScript 51.75% CSS 5.27% Shell 0.88% Dockerfile 1.43% Pug 8.87% TypeScript 31.80%

genie-server's Introduction

Genie For Home Servers

Build Status Coverage Status Dependency Status Language grade: JavaScript

End User Programmable Virtual Assistants

This repository contains the standalone version of Genie, the end user programmable assistant. It is a single-user version, suitable for running on home servers and smart speakers.

Genie is a research project from the Stanford University Open Virtual Assistant Lab. You can find more information at https://oval.cs.stanford.edu.

Running Genie standalone

The recommended way to run Genie is through podman, a replacement for docker that allows the container to run as your regular user (and thus access PulseAudio from your normal session). You can find the installation instructions here. If you use regular docker rather than podman, audio support might not work.

To run, use the command:

podman run --name genie -p 3000:3000 \
    -v /dev/shm:/dev/shm \
    -v $XDG_RUNTIME_DIR/pulse:/run/pulse \
    -e PULSE_SERVER=unix:/run/pulse/native \
    -v $XDG_CONFIG_HOME/genie-server:/var/lib/genie-server \
    --security-opt label=disable \
    docker.io/stanfordoval/almond-server

You can now navigate to 127.0.0.1:3000 to access Genie, or use your voice with the hotword "computer".

To manage the container later, you can use:

podman start genie # start the container again
podman stop genie # stop the container
podman logs genie # look at the most recent logs of a running container

Development setup

To develop genie-server, you should clone this repository, then install the dependencies with:

dnf -y install nodejs gettext make gcc-c++ GraphicsMagick zip unzip pulseaudio-libs-devel # Fedora/RHEL
apt -y install nodejs gettext build-essential make g++ graphicsmagick zip unzip libpulse-dev # Ubuntu/Debian

You can then build the repository with:

npm ci

This will only install the minimal set of dependencies, and will not install any voice support. To enable voice, you must also install genie-client-cpp.

After installing the dependencies locally, the server can be started using npm start. The server is accessible on port 3000.

genie-server's People

Contributors

ad31c0 avatar almakantara avatar balloob avatar dependabot-preview[bot] avatar dependabot[bot] avatar echo-bravo-yahoo avatar euirim avatar gcampax avatar greenkeeper[bot] avatar hvalev avatar mehrad0711 avatar ryachen01 avatar sileix avatar spacegaier avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.