Giter VIP home page Giter VIP logo

snowboy-seasalt's Introduction

Snowboy Personal Wake Word Recorder

Docker-based web interface for generating .pmdl files from audio examples for snowboy.

Credit to seasalt-ai

Docker Image

To get started, run the pre-built Docker image:

$ docker run -it -p 8000:8000 rhasspy/snowboy-seasalt

The web interface will now be available at http://localhost:8000

If you'd like to build the Docker image yourself, see scripts/build-docker.sh

Web Interface

Examples can be recorded and submitted directly in a web browser. Once you've enabled your microphone (required by Chrome), each example can be recorded by:

  1. Clicking the "Record" button and waiting until it's ready
  2. Speaking the wake word and then quietly waiting until it's done

The timeouts here are used to avoid needing to trim out button clicks from the audio.

Once you have 3 examples, click "Submit" and you should see a "Save Model" button appear. Save the .pmdl file somewhere and enjoy your new wake word!

Screen shot of web interface

Audio visualization is provided by wavesurfer-js

HTTP API

You can also POST your audio examples to the web server directly and get a .pmdl file back!

The /generate endpoint expects form data with:

  • A modelName field with your wake word name
  • At least 3 files with audio samples
    • These will be converted to the appropriate format with ffmpeg
    • Unless ?noTrim=true is given, silence is automatically trimmed from the beginning and end of each example
$ curl \
    -X POST \
    -F modelName=okay-rhasspy \
    -F [email protected] \
    -F [email protected] \
    -F [email protected] \
    --output okay-rhasspy.pmdl \
    localhost:8000/generate

snowboy-seasalt's People

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.