-
Notifications
You must be signed in to change notification settings - Fork 3
audacity2metadata
David Wood edited this page Apr 7, 2022
·
1 revision
Also see the tutorial on Labeling with Audacity.
Converts a labels file produced by Audacity to metadata.csv format on the standard output. The input Audacity label file contains 1 or more rows, each with 3 white-space separated columns. Each row defines a labeled segment and is converted to a single row in the metadata output. Columns are defined as follows: 1: the offset in seconds of the start of the segment 2: the offset in seconds of the end of the segment 3: the single label value to assign to the segment For example, converting the following labels.txt: 1.3 2.1 abnormal 3.0 4.0 abnormal using options --wav mysound.wav --gap-label-value normal --label state produces: mysound.wav[0-1300],state=normal, mysound.wav[1300-2100],state=abnormal, mysound.wav[2100-4000],state=normal, mysound.wav[3000-4000],state=abnormal, Note that the trailing gap segment is currently not emitted. optional arguments: -h, --help show this help message and exit --wav WAV Specifies name of the wav file to which the labels apply --audacity AUDACITY Specifies the name of the Audacity labels file. Default is labels.txt. --label LABEL The label name to use in the output. Default is state. --gap-label-value GAP_LABEL_VALUE The label value to apply to the gaps in the labels specified in the Audacity labels file. Default is ambient