Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ProChopPy-0.1.2.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

ProChopPy-0.1.2-py3-none-any.whl (9.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page