1.0.9 โ€ข Published 7 months ago

@p0llen/wakeword-react v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

@p0llen/wakeword-react

Status: ๐Ÿšง In Testing License: MIT

Free, open-source wake-word detection package using PyTorch, with an associated npm package for React-based integration.
Includes CLI tools, real-time microphone access, and GPU-accelerated training capabilities.


๐Ÿ”ง How It Works

Install the Python backend (wakeword-detector) for model training and ONNX export. Then, install this React package for in-browser wakeword detection.

When sound input matches the trained model, the React component will be notified โ€” enabling real-time browser-based wakeword detection.


๐Ÿš€ Usage

import { useWakeword, WakewordDemo } from "@p0llen/wakeword-react";

function App() {
  return <WakewordDemo />;
}

๐Ÿ”ฅ Features

  • ๐ŸŽค Real-time wakeword detection in the browser
  • โš›๏ธ React component (useWakeword) for easy integration
  • ๐Ÿง  ONNX model inference with onnxruntime-web
  • ๐ŸŽ›๏ธ Adjustable confidence thresholds and visual feedback
  • ๐Ÿ” Fully customizable โ€” bring your own wakeword
  • ๐Ÿงช Demo UI (WakewordDemo component) included for instant testing

Wakeword React UI

๐Ÿ“ฆ Installation

1. Backend (Python)

Install the backend model trainer and exporter:

pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple wakeword-detector

๐Ÿ“‹ Requirements

  • eact 17 or 18+
  • Modern browser (Chrome, Edge, Brave, etc.)
  • ONNX model trained using wakeword-detector

๐Ÿค Contributing Found a bug or want to suggest a feature? Open an issue or PR. Contributions welcome!

1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago