audacity / audacity/audacity

Macro / Scripting command to import labels

Open
#3,205 0 comments 6 reactions 0 assignees View on GitHub
Enhancement Request macros / scripting minor feature
Dominant language
C++
Stars
18.4k
Forks
2.7k
Avg merge
3d 1h
Merged PRs (30d)
78

Description

**Is your feature request related to a problem? Please describe.**
"[File menu > Import > Labels](https://manual.audacityteam.org/man/importing_and_exporting_labels.html)" is not available for macros or scripting.

**Describe the solution you'd like**
A macro / scripting command similar to "[Import2:](https://manual.audacityteam.org/man/extra_menu_scriptables_ii.html#import)" but for label text files.

**Describe alternatives you've considered**
Reading the file in Nyquist, parsing the file, and generating the labels with Nyquist. This can be done, but it is a much more complicated task and is only available for ;analyze type plug-ins. For ;tools type plug-ins the labels would need to be created one at a time using "AddLabel:" followed by "SetLabel:", which is both complicated and slow.

**Additional context**
The "[ImportLabels:](https://manual.audacityteam.org/man/file_menu_import.html#labels)" is unsuitable for batch processing or automation because it requires user interaction to select the file to be imported.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.