mycroft-precise/runner
Matthew D. Scholefield a37958f3f2 Add fixes identified by test cases 2019-11-01 01:16:21 -05:00
..
precise_runner Add fixes identified by test cases 2019-11-01 01:16:21 -05:00
test Add chop ability to ReadWriteStream 2019-05-13 11:47:38 -05:00
.gitignore Remove extra files 2018-04-16 16:27:06 -05:00
README.md Update README for the new binary location 2019-04-16 11:57:26 -05:00
example.py Update copyright header to 2019 2019-03-20 10:53:24 -05:00
setup.py Update copyright header to 2019 2019-03-20 10:53:24 -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
VERSION=0.3.0
wget https://github.com/MycroftAI/mycroft-precise/releases/download/$VERSION/precise-all_${VERSION}_${ARCH}.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'))