pyopen-wakeword


توضیحات

An open-source audio wake word (or phrase) detection framework with a focus on performance and simplicity.
ویژگی مقدار
سیستم عامل -
نام فایل pyopen-wakeword-1.1.0
نام pyopen-wakeword
نسخه کتابخانه 1.1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Michael Hansen <mike@rhasspy.org>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/pyopen-wakeword/
مجوز Apache-2.0
# Python openWakeWord Alternative Python library for [openWakeWord](https://github.com/dscripka/openWakeWord). Uses a [pre-compiled Tensorflow Lite library](https://github.com/tphakala/tflite_c). ## Install ``` sh pip3 install pyopen-wakeword ``` ## Usage ``` python from pyopen_wakeword import OpenWakeWord, OpenWakeWordFeatures, Model oww = OpenWakeWord.from_builtin(Model.OKAY_NABU) oww_features = OpenWakeWordFeatures() # Audio must be 16-bit mono at 16Khz while audio := get_10ms_of_audio(): assert len(audio) == 160 * 2 # 160 samples for features in oww_features.process_streaming(audio): for prob in oww.process_streaming(features): if prob > 0.5: print("Detected!") ``` ## Command-Line ### WAVE files ``` sh python3 -m pyopen_wakeword --model 'okay_nabu' /path/to/*.wav ``` ### Live ``` sh arecord -r 16000 -c 1 -f S16_LE -t raw | \ python3 -m pyopen_wakeword --model 'okay_nabu' ```


نیازمندی

مقدار نام
- numpy
xtr black;
xtr flake8;
xtr isort;
xtr mypy;
xtr pylint;
xtr pytest;
xtr build;


زبان مورد نیاز

مقدار نام
>=3.9.0 Python


نحوه نصب


نصب پکیج whl pyopen-wakeword-1.1.0:

    pip install pyopen-wakeword.whl


نصب پکیج tar.gz pyopen-wakeword-1.1.0:

    pip install pyopen-wakeword.tar.gz