Tool for labeling audio

5

I have few thousand audio signals to label into 2 different classes and save them to numpy array for further training of models. MATLAB recently released Signal Labeler for their Signal Analyzer, that could help to label time series, but for certain reasons, I can't use it.

Is there any specific tool for analysis and labeling of time series for Python? It is not necessary to save data and labels into numpy arrays, .csv format or anything similar is suitable as well.

Will appreciate any help!

Alexey Abramov

Posted 2019-07-12T10:23:18.730

Reputation: 73

Answers

4

Audacity is a free and open source audio editing software, available for all common desktop operating systems. It can be used to annotate audio, by using Label Tracks. You can have a label at a certain position, or covering a selection of time.

Annotating

  1. Open or import your audio into Audacity
  2. Select the audio track you want to annotate.
  3. Click Track -> Edit Labels to add a new Label track
  4. Select where in the track you want to annotate
  5. Insert new label using keyboard shortcut Ctrl + B

Repeat until done with the track.

Audacity with a label track

Export annotations

Export the labels using File -> Export -> Export Labels

Loading annotations

To load the labels into Python, you can use this snippet of code:

import pandas

path = 'PATH/TO/FILE'
labels = pandas.read_csv(path, sep='\t', header=None,
                        names=['start', 'end', 'annotation'],
                        dtype=dict(start=float,end=float,annotation=str))

jonnor

Posted 2019-07-12T10:23:18.730

Reputation: 777

Thanks a lot, I'll definitely try this! – Alexey Abramov – 2019-07-25T12:42:44.977

0

Try this one: https://labelstud.io, it is a free opensource tool via web browser with a good documentation and a lot of examples. Easy to start.

enter image description here

Or if you need a teamwork you can use the labeling platform: https://heartex.ai.

Max Tkachenko

Posted 2019-07-12T10:23:18.730

Reputation: 101