Skip to main content

SeaVAD: Voice Activity Detection module with silero and state machine.

Project description

SeaVAD

SeaVAD is a Python package for Voice Activity Detection (VAD) using a state machine version of SileroVAD os you can control the performance.

Installation

You can install SeaVAD using pip:

pip install SeaVAD

Usage

Here is a simple example of how to use SeaVAD:

from seavad.main import SeaVAD

# Load your audio file
audio_path = 'path/to/your/audio/file.wav'
with open(test_audio, "rb") as f:
    f.seek(44)
    audio_data = f.read()

# Local VAD onnx model path
model_file_path = 'path/to/vad/onnx/model'

# Create a SeaVAD object with the sample rate and sample width of your audio.
vad = SeaVAD(model_file_path=model_file_path, sample_rate=16000, sample_width=2)

# Detect voice activity
segments = vad.get_vad_segments(audio_data)

# Print the detected segments
for (start, end) in segments:
    print(f"Start: {start}, End: {end}")

License

See the LICENSE file for details.

Contact

For any questions or inquiries, please contact us at info@seasalt.ai

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

seavad-0.0.3.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

seavad-0.0.3-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file seavad-0.0.3.tar.gz.

File metadata

  • Download URL: seavad-0.0.3.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for seavad-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8fb76c260beb7081cf6d2dff85811785b220b7f7fdb969232b6f0d059ba61b0a
MD5 642805724b7d1a1dc884b7f46f426387
BLAKE2b-256 6c1324dc1023e86abd9ea4ff79e57be60bd4b407162f38b8f9a102f7f4e98ea9

See more details on using hashes here.

File details

Details for the file seavad-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: seavad-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for seavad-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5ea2683ad455e80e72c9c548d75d93e820ab04e10426f16cc39b5c616ef37e73
MD5 5e63737f867e27460bc015e84b3998fa
BLAKE2b-256 a54254891797736687c180a972f8e634d10716811aba313d9e140acfab5c9b40

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