Skip to main content

Hotword Detection with Porcupine and Python

Project description

Hotword Detection

Overview

In the realm of modern technology, voice-controlled applications have emerged as an integral component of our digital landscape. Propelled by the widespread adoption of virtual assistants such as Jarvis, Siri, and Alexa, users have become accustomed to seamless interactions with their devices through spoken commands. At the core of these sophisticated applications lies a critical functionality — Hotword detection. This essential feature serves as the catalyst, prompting the system to actively listen and respond, creating a dynamic and intuitive user experience.

This Python module provides a lightweight and efficient solution for implementing hotword detection using the Porcupine library developed by Picovoice. Designed for real-time performance, this module enables developers to easily integrate voice-triggered commands into their applications, enhancing user engagement and accessibility.

Key Features

  • Real-time Hotword Detection: Detect predefined hotwords with minimal latency.

  • Customizable Keywords: Easily modify the list of hotwords based on application requirements.

  • Cross-Platform Compatibility: Works seamlessly on various platforms, including Windows, macOS, and Linux.

  • User-Friendly API: Simple functions for easy integration into existing projects.

Installation

You can install the Hotword Detection module via PyPI:

pip install pico_hw_detection









Usage

To utilize the hotword detection capabilities, you can use the following code:



from hotword_detector import hotword_detection



# Replace 'your_access_key' with your actual Picovoice access key.

hotword_detection('your_access_key')



This will initiate the listening process, and you will receive notifications in the console whenever a hotword is detected.





Technical Details

The core functionality is encapsulated in the hotword_detection function, which leverages the Picovoice Porcupine API. The function initializes the Porcupine engine, listens for audio input, and processes it to detect specified hotwords.



Contribution

Contributions are welcome! If you encounter any issues or have suggestions for enhancements, feel free to open an issue or submit a pull request.

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

pico_hwd_detection-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

pico_hwd_detection-1.0.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file pico_hwd_detection-1.0.0.tar.gz.

File metadata

  • Download URL: pico_hwd_detection-1.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for pico_hwd_detection-1.0.0.tar.gz
Algorithm Hash digest
SHA256 70b4b349c8fef9cf60e7eabd1514c3cb63a58957260481823716a9ecb3a6b33e
MD5 c674f1ae0e43ed2f950f3cbb7787041c
BLAKE2b-256 a2228ccf79e7fdefcb987b96175691b55ff12d5a4c4535683282ee33026d9cdd

See more details on using hashes here.

File details

Details for the file pico_hwd_detection-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pico_hwd_detection-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6db559f2439d764b010ab9159964d73bcebf33dfe853598cc1744932ebbbb94b
MD5 2d280ec2c45ea06f3d67b7a4394f9f7e
BLAKE2b-256 4a394440aa710fae5c20d8fe8be8a0b62f3771e025225d063aedd1079fc4b767

See more details on using hashes here.

Supported by

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