Metadata-Version: 2.4
Name: tinykw
Version: 1.1.3
Summary: Python binding for TinyKW
License-Expression: Apache-2.0
Project-URL: Homepage, https://voyelle.io/tinykw
Project-URL: Repository, https://github.com/voyelle-io/tinykw.git
Keywords: keyword spotting,wake word
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: numpy; extra == "dev"
Requires-Dist: scipy; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Dynamic: license-file

# Python binding for TinyKW

## Installation

```
pip install tinykw
```

## Usage

```python
from tinykw import TkwEngine

engine = TkwEngine(language="es")

kw_id = engine.add_keyword(data=kw_bytes, detection_threshold=0.5)
engine.set_callback(lambda keyword_id: print(f"keyword {keyword_id} detected"))
# ... 
engine.process_frame(samples) # calls the callback when a keyword is detected
```

See [examples/python](https://github.com/voyelle-io/tinykw/tree/main/examples/python) for full usage.

## License

TinyKW is licensed under the Apache License 2.0.
Please see [LICENSE](https://github.com/voyelle-io/tinykw/tree/main/LICENSE) for details.
