Segment audio recordings into separate files based on ProRec annotations.
Project description
ProChopPy
ProChopPy - Segment audio recordings into separate files based on ProRec annotations.
ProChopPy is a Python replacement for Mark Huckvale's ProChop (part of ProRec), which chops up a recording into separate files, based on an annotation file containing the break points. ProChopPy is designed to work with files recorded using ProRec, the prompt & record program by Mark Huckvale (https://www.phon.ucl.ac.uk/resource/prorec).
Usage
python -m prochoppy [-h] [-I] -a audio.wav -t annotations.txt -o output.dir [-f {WAV,SFS}] [-k] [-s]
Options
Option | Parameters | Description |
---|---|---|
-h |
Show help message and exit. | |
-I |
Report version number and exit. | |
-a |
audio.wav | Specify the audio file to be segmented into separate files. Can be 1 or 2 channels. |
-t |
annotations.txt | Specify the annotation text file containing the break points. Each line consists of a time in seconds followed by TAB and a filename label. |
-o |
output.dir | Specify the name of the output directory where the separate files are to be placed. |
-f |
{WAV,SFS} | Specifies the output file format. Defaults to WAV. |
-k |
Keep duplicate names. What to do if the same filename occurs more than once in the annotation file. If -k is given, duplicates are given a numbered suffix. Default is to overwrite earlier files with later ones. | |
-s |
Remove silence. Attempt to identify and remove silence at the start and end of each segment. |
Note
As compared to the original ProChop, ProChopPy does not implement export to the proprietary format of the Speech Filing System (SFS). ProChopPy also does not currently support silence detection, which ProChop supports with the -s option.
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 ProChopPy-0.1.2.tar.gz
.
File metadata
- Download URL: ProChopPy-0.1.2.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 078cd8e5b06059b83f74764efd7eb917e985e6a6bf33e9e3cf5beab3e734f3d9 |
|
MD5 | bf905842e1bb0e8ea9cbc08265b1444e |
|
BLAKE2b-256 | 996a03384bb92943defa10f9a39f7ddde86aefb500a0f5cc82066816a01a4f73 |
File details
Details for the file ProChopPy-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: ProChopPy-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7294cf807fea0437da69b69c089abe9cdb0f54ce2bd19959d15e1673122adcfd |
|
MD5 | 38b0d05531fa450a3d35fe752e13c065 |
|
BLAKE2b-256 | ff269b0f6e5544d2f019a6204ed74558507215cc2d9206d335e4b633df218fc0 |