mycroft-precise/runner
Matthew Scholefield 8696ef80ba Extract TriggerDetector class to simplify PreciseRunner
This also makes it easier to perform similar functionality in an upcoming simulationn script
2018-07-12 13:38:39 -05:00
..
precise_runner Extract TriggerDetector class to simplify PreciseRunner 2018-07-12 13:38:39 -05:00
.gitignore Remove extra files 2018-04-16 16:27:06 -05:00
README.md Update runner README and improve Python 2 support 2018-03-29 10:25:07 -05:00
example.py activate: add a running directory independent noitfier 2018-06-20 16:49:50 -05:00
setup.py Add __version__ to runner 2018-03-29 10:25:07 -05:00

README.md

Precise Wrapper

A simple to use, lightweight Python module for using Mycroft Precise.

Usage:

First, download the precise binary from the precise-data repo. Next, extract the tar to the folder of your choice. The following commands will work for a desktop:

ARCH=x86_64
wget https://github.com/MycroftAI/precise-data/raw/dist/$ARCH/precise-engine.tar.gz
tar xvf precise-engine.tar.gz

Finally, you can create a program as follows, passing in the location of the executable as the first argument:

#!/usr/bin/env python3

from precise_runner import PreciseEngine, PreciseRunner

engine = PreciseEngine('precise-engine/precise-engine', 'my_model_file.pb')
runner = PreciseRunner(engine, on_activation=lambda: print('hello'))