Giter Site home page Giter Site logo

patlachance / opensnips Goto Github PK

View Code? Open in Web Editor NEW

This project forked from syntithenai/opensnips

0.0 2.0 0.0 64.18 MB

Open source projects related to Snips https://snips.ai/.

Dockerfile 0.08% Shell 0.20% Python 0.98% Makefile 0.12% JavaScript 94.64% HTML 1.32% CSS 0.09% TypeScript 2.27% CoffeeScript 0.26% Roff 0.05% Emacs Lisp 0.01% AppleScript 0.01%

opensnips's Introduction

OpenSnips

Overview

This project is home to a number of open source projects related to the Snips voice platform.

  • Hermod, a BSD-2 licenced full voice stack with a dialog manager optimised for a multi user (web hosted) environment.

  • snips-react-satellite - React component to add a microphone button to a web page that streams mqtt audio to Snips. Implements hotword,audioserver,tts and skill-server components of the Snips mqtt hermes protocol.

  • collection of assistants including meekahome music player

  • docker images for snips, nodejs, mosquitto

  • docker-compose suite to run example

Quickstart

Install docker

curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
apt-get install docker-compose

Run the example

git clone https://github.com/syntithenai/opensnips.git
docker-compose up &

Open http://localhost:3000/ in your browser to see the microphone demo.

The opensnips repository includes a snips assistant for meekahome that supports the example AppServer intents.

"what is the time"
"what is the date"
"search for <search_topic>"

Web Browser Audioserver

More info

PulseAudio

If you are developing on Linux it is useful to have multiple access to the sound card by using pulse audio.

The docker compose file shows a container can use pulseaudio on the Linux host.

To enable

  • Run paprefs and enable network server.
  • Possibly also update volume mount in docker-compose.yml to point at cookie file (if not anon access) and PULSE_HOST to Linux IP address.

The snips image is built with alsa and pulse config compatible with the environment variables from the docker-compose file. - a custom alsa config file sets sink and source as pulseaudio - a custom pulse client config file uses settings to disable auto start of the pulse server on the client (because this setup talks directly to the host pulse server)

!! If you have a (playstation eye) microphone plugged into a always on usb power port, it may not reset on reboot and end up jammed. Switch usb ports (and reboot) to fix.

Pulseaudio Links

opensnips's People

Contributors

syntithenai avatar

Watchers

 avatar  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.