Cobra voice activity detection (VAD) engine
Project description
Cobra Voice Activity Detection Engine
Made in Vancouver, Canada by Picovoice
Cobra is a highly accurate and lightweight voice activity detection (VAD) engine.
Compatibility
- Python 3.5+
- Runs on Linux (x86_64), macOS (x86_64), Windows (x86_64), Raspberry Pi, NVIDIA Jetson (Nano), and BeagleBone.
Installation
pip3 install pvcobra
Usage
Create an instance of the engine
import pvcobra
handle = pvcobra.create(access_key=${AccessKey})
Replace ${AccessKey}
with your AccessKey obtained from Picovoice Console. handle
is
an instance of Cobra.
When initialized, the valid sample rate is given by handle.sample_rate
. Expected frame length (number of audio samples
in an input array) is handle.frame_length
. The engine accepts 16-bit linearly-encoded PCM and operates on
single-channel audio.
def get_next_audio_frame():
pass
while True:
voice_probability = handle.process(get_next_audio_frame())
When done, resources have to be released explicitly:
handle.delete()
Demos
pvcobrademo provides command-line utilities for processing real-time audio (i.e. microphone) and files using Cobra.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pvcobra-1.1.0.tar.gz
.
File metadata
- Download URL: pvcobra-1.1.0.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 625bd2434a2cb20f359bb435e6765ea8fa0f8617c8dc8e47f20d8893c93fa89d |
|
MD5 | 5a4ce892aaa8f187bd7fb0b857f197c9 |
|
BLAKE2b-256 | cf6533329b962182c561f1c6f63a8d166efb4b789a4bdc0083787b1ac13d10b5 |
File details
Details for the file pvcobra-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: pvcobra-1.1.0-py3-none-any.whl
- Upload date:
- Size: 2.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55bd28ca3eae39e41d7386aa9b2ed291b580e5a0e2998ed80cb65c2b27415c8f |
|
MD5 | 3e5e8b9a20fd5de7009d369100bbf510 |
|
BLAKE2b-256 | 8db89abcc7caba0302702ea56c3df2eb4572da78995ae94bbe708aae4d1129e7 |