Curating and Annotating Audio Files
This guide assumes your audio files are stored in AWS. To learn how to create integrations with other cloud providers click here.
STEP 1: Import your Audio Files
Set Up AWS
Before you can do anything with the Encord platform and cloud storage, you need to configure your cloud storage to work with Encord. Once the integration between Encord and your cloud storage is complete, you can then use your data in Encord.
In order to integrate with AWS S3, you need to:
- Create a permission policy for your resources that allows appropriate access to Encord.
- Create a role for Encord and attach the policy so that Encord can access those resources.
- Activate Cross-origin resource sharing which allows Encord to access those resources from a web browser.
- Test the integration to make sure it works.
You have the following options to integrate AWS and Encord:
Create AWS Integration in Encord
In the Integrations section of the Encord platform, click +New integration to create a new integration.
Select AWS S3 at the top of the chooser.
Create JSON file for import
Create a JSON file based on the templates provided below. audioMetadata
is optional unless you are using a client-only access integration.
The title
field is optional. If omitted, the audio file path and name are used as the default title. For example, if the file is located at https://encord-solutions-bucket.s3.eu-west-2.amazonaws.com/path/to/my/bucket/song2.mp3
, the title defaults to /path/to/my/bucket/song2.mp3
.
Key or Flag | Required? | Default value |
---|---|---|
”objectUrl” | Yes | |
”title” | No | The file’s path + title |
”audioMetadata” | No | |
”clientMetadata” | No | |
”createVideo” | No | false |
audioMetadata
must be specified when a Strict client-only access integration is used. In all other cases, audioMetadata
is optional, but including it significantly reduces import times.When the audioMetadata
, imageMetadata
, or videoMetadata
flags are present in the JSON file, we directly use the supplied metadata without performing any additional validation, and do not store the file on our servers. It is crucial that the metadata you provide is accurate.
Create a Folder to Store Your Audio Files
All files in Encord must be stored within folders. Therefore, you need to create a folder before uploading any data to Encord. To create a folder:
- Navigate to Files under the Index heading in the Encord platform.
- Click the + New folder button to create a new folder. A dialog to create a new folder appears.
-
Give the folder a meaningful name and description.
-
Click Create to create the folder. The folder is listed in Files.
Upload Your Audio to Encord
STEP 2: Curate your Data
Create a collection
A Collection is a container for data units (images or videos) that you can use to group your data units together.
Creation of a Collection involves filtering and sorting your data. Once you have selected a smaller group of images, videos or audio files, create a Collection.
-
Log in to the Encord platform. The landing page for the Encord platform appears.
-
Go to Index > Files. The All folders page appears with a list of all folders in Encord.
-
Click in to a Folder. The landing page for the Folder appears and the Explorer button is enabled.
-
Click the Explorer button. The Index Explorer page appears.
-
Search, sort, and filter your data until you have the subset of the data you need.
-
Select one or more of the images/frames/audio files in the Explorer workspace. A ribbon appears at the top of the Explorer workspace.
Selecting a video frame selects the entire video. Specific frames from a video cannot be selected. -
Click Select all to select all the images in the subset.
-
Click Add to a Collection.
-
Click New Collection.
-
Specify a meaningful title and description for the Collection.
The title specified here is applied as a tag/label to every selected image. -
Click Collections to verify the Collection appears in the Collections list.
STEP 2: Set Up Your Project
Create a Dataset
Once you have a Collection, you can create a Dataset from your Collection.
Create an Ontology
- Click the New ontology button in the Ontologies section to create a new Ontology.
-
Give your Ontology a meaningful title and description. A clear title and description keeps your Ontologies organized.
-
Click Next to continue.
- Define your Ontology structure. Audio files support being labeled with classifications. Do not include any objects in your Ontology.
To add a classification:
- Click Add classification to create a new classification.
- Give the classification a name. For example, “Tempo”.
- Optionally, configure the classification. The default classification type is a text field.
- Optionally, enable the Required toggle to mark the object as Required.
- Repeat these steps for as many classifications as necessary.
Configure classifications:
You can configure classifications to change the classification type, and to add classification options to radio buttons and check lists.
- Click the arrow icon next to an object to configure the classification.
- Click the classification type to change the classification type. The default classification type is a text field.
- Click Add option to add an option if you have selected a radio button or check list classification.
- Enter a name for the classification option. For example, the classification “Tempo” can have the options “Slow”, “Medium”, and “Fast”.
- Click the Back to parent button to return the Ontology creation view.
Create a Project
- In the Encord platform, select Projects under Annotate.
- Click the + New annotation project button to create a new Project.
- Give the Project a meaningful title and description.
If you are part of an Organization, an optional Project tags drop-down is visible. Project tags are useful for categorizing and finding your Projects. Select as many tags as are relevant for your Project.
-
Click the Attach ontology button.
-
Select the Ontology you created previously from the list using the Select button.
-
Click OK to attach the Ontology to the Project.
-
Click the Attach datasets button.
-
Select the Dataset you created previously from the list using the Attach button.
- Click OK to attach the Dataset(s) to the Project.
- Click the Load from template button to use a Workflow template.
-
Select the template you want to use and click Load template.
-
Click Create project to finish creating the Project.
STEP 3: Label Your Audio Files
-
Navigate to the Queue tab of your Project.
-
Select the data unit you want to label. The task opens in the Label Editor.
-
From the list of classes on the left side of the Label Editor, choose the classification you want to apply. Classification options appear.
-
For radio and checklist classifications, select the appropriate answer. For text classifications, enter your response. The Add classification pane appears on the right side of the Label Editor.
To apply the classification to the entire audio file:
- Click Save in the Add classification pane, or use the shortcut N. The classification is now visible on the timeline.
To apply the classification to a specific section of the audio file:
-
Click and drag your cursor from the start to the end of the section you want to add the classification to, or manually enter the start and end timestamps.
-
Click Save in the Add classification pane, or use the shortcut N. The classification is now visible on the timeline.
Was this page helpful?