Metadata-Version: 2.4
Name: earshot
Version: 0.2.0
Requires-Dist: numpy>=1.20
Requires-Dist: scipy>=1.7
Requires-Dist: pytest>=7.0 ; extra == 'test'
Requires-Dist: pytest-cov>=4.0 ; extra == 'test'
Requires-Dist: matplotlib>=3.5 ; extra == 'test'
Provides-Extra: test
Summary: Python bindings for earshot - fast VAD in Rust
License: MIT OR Apache-2.0
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# earshot-python

Python bindings for [earshot](https://github.com/pykeio/earshot) - fast VAD in Rust.

## Installation

```bash
pip install earshot
```

## Usage

```python
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

```bash
# 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](RELEASE.md) for detailed instructions.

Quick release:
```bash
./release.sh --test   # TestPyPI first
./release.sh          # Production PyPI
```

Requirements:
- Rust toolchain
- Docker Desktop
- PyPI API token in `~/.pypirc`
```

