Audio timestamp

Updated at:

The audio timestamp operator identifies and marks the start and end times of each word in an audio file. It processes only audio objects from an input dataset and ignores all non-audio objects. This topic describes how to configure the audio timestamp operator.

Prerequisites

  • The workflow feature is available only after you purchase the unstructured data feature for the current instance.

  • Create a workflow. For more information, see Create and manage workflows.

Permissions

In a Basic project, project administrators, developers, analysts, and custom project roles with the Dataset-Use permission can use any dataset in the project as the operator's input and output.

Supported file formats

The audio timestamp operator supports the following file formats: aac, amr, avi, flac, flv, m4a, mkv, mov, mp3, mp4, mpeg, ogg, opus, wav, webm, wma, and wmv.

Procedure

  1. In the top menu bar of the Dataphin homepage, choose Develop > Data Development.

  2. In the top menu bar of the Development page, select a Project.

  3. In the left-side navigation pane, choose Data Processing > Workflow. In the Workflow list, click the target workflow to open its canvas. From the operator library on the left, drag the audio timestamp operator onto the canvas. In the audio timestamp panel on the right, configure the following parameters.

    Parameter

    Description

    Step Name

    Enter a name for the operator. The name can contain any characters and must be 256 characters or fewer.

    Input Configuration

    Dataset

    Select the hybrid dataset to process. After selecting the dataset, you must also choose a version. By default, the first version of the dataset in ascending order is selected.

    If this operator is downstream from another, its input dataset is typically the output dataset of the upstream operator.

    Input Field

    Select the field that contains the URL of the audio file to process. You can only select fields where the Is URL parameter is set to Yes.

    Filter Condition (Optional)

    Enter an SQL filter condition, excluding the WHERE keyword. You can use global system variables, such as ${bizdate}.

    Model Configuration

    Model

    Select a model to process the data. You can select a model that is enabled and of the Audio (audio timestamp) type in Intelligent Application Management > Model Configuration.

    Note

    Output Configuration

    Dataset

    You can select a source dataset or an other dataset. If the metadata table of the source dataset does not have a primary key, the output dataset is set to another dataset by default.

    When you select another dataset, you must also specify a hybrid dataset and its version as the output dataset, which defaults to the first version of the dataset in ascending order. You can also select other versions of the source dataset.

    When you select a source dataset, the metadata produced by the operator is written to the metadata table for the same version of the source dataset.

    Loading Policy

    If the metadata table of the selected output dataset contains a primary key, 'update on primary key conflict' is selected by default. If no primary key exists, 'append data' is selected by default.

    • Append data: Appends new data directly to the target table. This fails if a primary key or constraint conflict occurs.

    • Update on primary key conflict: If a primary key or constraint conflict occurs, the new data replaces the existing row with the same primary key.

    • Overwrite: Deletes all existing data in the target table before writing the new data.

    Note

    When the output dataset is Source Dataset, Update on primary key conflict is the only supported loading policy.

    Field Mapping

    The audio timestamp operator has the following fixed output fields:

    • result: The detection result in JSON format, sorted chronologically.

    • {file_url}: The URL of the audio file. The field name is the same as the source field and is not fixed. This field is output only when the output dataset is set to Other Dataset. You can delete this field mapping.

    By default, output fields map to identically named fields in the output dataset. You can also manually select target fields for custom mapping. Additionally, you can map pass-through fields from the source dataset to the target dataset. Manage field mappings with the following options:

    • Add Output Field: Click to add a new, empty field mapping row. This feature is available only when the output dataset is set to Other Dataset.

    • Batch Mapping: Click to perform batch manual, same-name, or same-row mapping. This feature is available only when the output dataset is set to Other Dataset.

    • Delete Mapping: Click the Delete icon to remove the corresponding field mapping. You cannot delete mappings for the operator's fixed output fields.

  4. After completing the configuration, click Save in the top menu bar of the canvas.

    After configuring an operator, you can add more upstream or downstream operators to build a complete workflow.