https://github.com/openvoiceos/precise_lite_runner
https://github.com/openvoiceos/precise_lite_runner
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/openvoiceos/precise_lite_runner
- Owner: OpenVoiceOS
- License: apache-2.0
- Created: 2021-09-19T14:12:12.000Z (over 4 years ago)
- Default Branch: dev
- Last Pushed: 2023-04-12T08:34:46.000Z (almost 3 years ago)
- Last Synced: 2025-07-04T17:55:56.269Z (8 months ago)
- Language: Python
- Size: 40 KB
- Stars: 4
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Precise Lite Runner
use precise-lite models in your projects
This package supports both tflite-runner and the full tensorflow.
To install with tflite, use `pip install precise_lite_runner[tflite]`.
For the full tensorflow use `pip install precise_lite_runner[full]`.
```python
from precise_lite_runner import PreciseLiteListener, ReadWriteStream
stream = None # if stream is None it will open a pyaudio stream automatically
# stream = ReadWriteStream()
chunk_size = 2048
precise_model = "/path/here.tflite"
def on_activation():
has_found = True # do something
runner = PreciseLiteListener(model=precise_model, stream=stream, chunk_size=chunk_size,
trigger_level=3, sensitivity=0.5, on_activation=on_activation)
runner.start()
while True:
# stream.write(chunk) # feed audio from somewhere if using ReadWriteStream
sleep(1)
runner.stop()
```