elan-vad-0.2.0


توضیحات

A utility library to perform Voice Audio Detection on .wav files, write these sections to an elan file, and optionally cluster annotations on a given tier based on the VAD sections.
ویژگی مقدار
سیستم عامل -
نام فایل elan-vad-0.2.0
نام elan-vad
نسخه کتابخانه 0.2.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Harry Keightley
ایمیل نویسنده harrykeightley@outlook.com
آدرس صفحه اصلی https://github.com/CoEDL/elan-vad
آدرس اینترنتی https://pypi.org/project/elan-vad/
مجوز -
# Elan-vad Elan vad is a tool to perform Voice Activity Detection related tasks on Elan files ## Installation You can install the package with `pip install elan-vad` (or `pip3` on macs). After installation, you can import the utilities into your python program with: ```python from elan_vad import * ``` The package additionally comes with two CLI programs: `vad` and `cluster`, which can be used to perform the utilities from the terminal. ## Usage ### As a Library The example below: - Performs VAD on an audio file, - Adds these detected sections to an elan file (under the tier "\_vad"), - And then clusters the annotations within an existing tier ("Phrase") to be constrained within the VAD sections. ```python from pathlib import Path from pympi.Elan import Eaf from elan_vad import detect_voice, add_vad_tier, cluster_tier_by_vad # Replace these paths with the correct values for your application sound_file: Path = 'audio.wav' elan_file: Path = 'test.eaf' # Open up the Elan file for modification. elan = Eaf(elan_file) # Perform VAD on the sound_file speech = detect_voice(sound_file) add_vad_tier(elan, speech, '_vad') # Cluster annotations within a 'Phrase' tier by the VAD sections cluster_tier_by_vad(elan, 'Phrase', '_vad', 'vad_cluster') # Replace the elan file with the new data elan.to_file(elan_file) ``` ### From the terminal todo


نیازمندی

مقدار نام
>=1.70.2,<2.0.0 pympi-ling
>=1.23.1,<2.0.0 numpy
>=1.12.0,<2.0.0 torch
>=0.12.0,<0.13.0 torchaudio


زبان مورد نیاز

مقدار نام
>=3.9,<4.0 Python


نحوه نصب


نصب پکیج whl elan-vad-0.2.0:

    pip install elan-vad-0.2.0.whl


نصب پکیج tar.gz elan-vad-0.2.0:

    pip install elan-vad-0.2.0.tar.gz