Skip to main content

Python bindings for earshot - fast VAD in Rust

Project description

earshot-python

Python bindings for earshot - fast VAD in Rust.

Installation

pip install earshot

Usage

import earshot
import numpy as np

audio = np.load("audio.npy")
segments = earshot.detect(audio, sr=16000)

for start, end in segments:
    print(f"Speech: {start:.2f}s - {end:.2f}s")

Development

Building from Source

# Clone the repository
git clone https://codeberg.org/yourusername/earshot-python
cd earshot-python

# Install in development mode
pip install -e .

# Or build wheels
maturin build --release

Releasing

This project uses a manual release process. See RELEASE.md for detailed instructions.

Quick release:

./release.sh --test   # TestPyPI first
./release.sh          # Production PyPI

Requirements:

  • Rust toolchain
  • Docker Desktop
  • PyPI API token in ~/.pypirc

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

earshot-0.1.0.tar.gz (11.7 kB view details)

Uploaded Source

Built Distributions

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

earshot-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (384.7 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

earshot-0.1.0-cp38-abi3-macosx_11_0_arm64.whl (367.0 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

File details

Details for the file earshot-0.1.0.tar.gz.

File metadata

  • Download URL: earshot-0.1.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for earshot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a1d2803b438ba391aaea203744c939445d5f00a403de2cfa2e1e6059610bdccd
MD5 1d9b106b7b80c1f8370a680958c8a35a
BLAKE2b-256 b9182fc2ce72f5f810be6b0ca107afbc6501eb63646c15131c87d8dc72aca783

See more details on using hashes here.

File details

Details for the file earshot-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for earshot-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 359d65574c5792f93de3650910b3a18a30d91542f67e2ba6f9486c416f424b24
MD5 1742a5f8937ddf3c91364809e195f451
BLAKE2b-256 723b2075324d032daf45cbaf997c2e4cd2f730b2c10da0700fea54716fdd1a84

See more details on using hashes here.

File details

Details for the file earshot-0.1.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for earshot-0.1.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a4675349bb3849e1b2ad9e435e46f43c6069f41edc893e29589d6a8efc4f1710
MD5 12de0b4656b300d40babed83bd7aded6
BLAKE2b-256 14aef3c64fb94a34d7ee2c06c0b8e842f8fd10bb0612b997e52b8f678d188916

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