Skip to main content

On-device wake word detection powered by deep learning.

Project description

#Porcupine.

It supports Linux (x86_64), Mac, Raspberry Pi (Zero, 1, 2, 3), and BeagleBone.

Installation

pip install pvporcupine

If it fails to install PyAudio, you can do the following for Debian/Ubuntu as referenced in the installation guide of PyAudio.

Install PyAudio

sudo apt-get install python-pyaudio python3-pyaudio

If the above fails then first run the following

sudo apt-get install portaudio19-dev
sudo apt-get install python-all-dev python3-all-dev

Usage

Realtime Demo

Make sure you have a working microphone connected to your device first. From commandline type the following

pvporcupine_mic --keywords picovoice

Then say 'picovoice'. The demo processes audio steam from microphone in realtime and detects utterances of 'picovoice'

File-Based Demo

pvporcupine_file --input_audio_file_path ${INPUT_AUDIO_FILE_PATH} --keywords bumblebee

Replace ${INPUT_AUDIO_FILE_PATH} with a valid path to an audio file (e.g. WAV or FLAC). The demo scans the file for occurrences of 'bumblebee'.

In order get more information about using demos run them with '--help' argument or look into their GitHub page here.

Porcupine Class

You can create an instance of Porcupine engine for use within your application using the factory method provided as below

import pvporcupine

pvporcupine.create(keywords=pvporcupine.KEYWORDS())

pvporcupine.KEYWORDS() is the set of default keyword files that ships with the PIP package across all platforms. In order to use your own keyword file you can instantiate the object as follows:

import pvporcupine

keyword_file_1_path = ...
keyword_file_2_path = ...
keyword_file_3_path = ...

pvporcupine.create(keyword_file_paths=[keyword_file_1_path, keyword_file_2_path, keyword_file_3_path])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pvporcupine-1.6.2.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pvporcupine-1.6.2-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file pvporcupine-1.6.2.tar.gz.

File metadata

  • Download URL: pvporcupine-1.6.2.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for pvporcupine-1.6.2.tar.gz
Algorithm Hash digest
SHA256 26411d7ef88db80d7da681917b087bf00e359d00ad2d44b824bfffc30c42f967
MD5 a40dd854e483b51db7e8eee41d4dee19
BLAKE2b-256 f77d56d604caa9d011eb5881797d911ca722dfc9b1ac1f9704f49969f458e4e9

See more details on using hashes here.

File details

Details for the file pvporcupine-1.6.2-py3-none-any.whl.

File metadata

  • Download URL: pvporcupine-1.6.2-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for pvporcupine-1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5a2f93f6a794e9286abaf516229640f09e0458fd7ce5c3243f33c54dc57ff1d5
MD5 120c73424df8659ef6f11e06ed21e513
BLAKE2b-256 8f817973907db96366ad20550e4afc6f4dbbd1d0c05f27345c4fddfa4efd5802

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page