Skip to main content

No project description provided

Project description

Rhasspy Raven Wakeword System

Wakeword detector based on the Snips Personal Wake Word Detector.

Dependencies

Installation

$ git clone https://github.com/rhasspy/rhasspy-wake-raven.git
$ cd rhasspy-wake-raven
$ ./configure
$ make
$ make install

Running

Record at least 3 WAV files with your wake word. Trim silence off the front and back manually, and export them as 16-bit 16Khz mono WAV files. Then, run:

$ arecord -r 16000 -f S16_LE -c 1 -t raw | \
    bin/rhasspy-wake-raven --distance-threshold D <WAV1> <WAV2> <WAV3> ...

where D is a threshold used to determine if a WAV template matches. A value of 38 for D seemed to work for the sample WAV files in etc/test. You can add --debug to the command line to see the distance values for each match attempt to get an idea for your wakeword.

Example

Using the example files for "okay rhasspy":

$ arecord -r 16000 -f S16_LE -c 1 -t raw | \
    bin/rhasspy-wake-raven --distance-threshold 38 --minimum-matches 2 etc/test/okay-rhasspy-*.wav

This requires at least 2 of the 3 WAV templates to match before output is printed:

{"keyword": "etc/test/okay-rhasspy-00.wav", "detect_seconds": 5.871257066726685, "detect_timestamp": 1594929004.2440836, "raven": {"distance": 35.00761344404474, "threshold": 38.0, "tick": 1, "matches": 3}}

Output

Raven outputs a line of JSON when the wake word is detected. Fields are:

  • keyword - path to WAV file template
  • detect_seconds - seconds after start of program when detection occurred
  • detect_timestamp - timestamp when detection occurred (using time.time())
  • raven
    • distance - normalized dynamic time warping distance
    • threshold - threshold used for comparison
    • matches - number of WAV templates that matched
    • tick - monotonic counter incremented for each detection

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rhasspy-wake-raven-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

File details

Details for the file rhasspy-wake-raven-0.1.0.tar.gz.

File metadata

  • Download URL: rhasspy-wake-raven-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for rhasspy-wake-raven-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d4ef51480ea40edcdb6df40ced9660b80776f6c240ceb54fed2eb6e8c9a0f02f
MD5 ef9ad842d3f078c63e4f310e45dc9e3f
BLAKE2b-256 171c0766a287b0f6103652fd4490480664a4b60311e7e998376a8911dd76757b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page