Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 766 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 766 Bytes

Prerequisites

Python 2.7 or higher is required to use the binding and run its accompanying unit tests. If using a Python version prior to 3.4 install enum34 using

pip install enum34

The unit test uses PySoundFile for reading audio test files. It can be installed using

pip install pysoundfile

Running Unit Tests

Using command line (from the root of the repository)

python binding/python/test_porcupine.py

Binding Class

Porcupine's Python binding uses ctypes to access Porcupine's C library. For an example usage refer to Python demo application.