Audio language detection

Updated at:

The audio language detection operator detects the language of speech in audio files. It processes only audio objects in the input dataset and automatically ignores non-audio objects. This topic describes how to configure the audio language detection operator.

Prerequisites

  • To use workflows, you must first purchase the unstructured data feature for your current instance.

  • You have an existing workflow. For details, see Create and manage a workflow.

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 input or output for this operator.

Supported file formats

The audio language detection 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. On the Dataphin home page, choose Develop > Data Development from the top menu bar.

  2. On the Develop page, select Project from the top menu bar.

  3. In the left navigation pane, choose Data Processing > Workflow. In the Workflow list, click the desired workflow to open its canvas. From the Operator Library on the left, drag the Audio Language Detection operator onto the canvas. In the Audio Language Detection panel on the right, configure the following parameters.

    Parameter

    Description

    Step name

    The name of the operator. The name can contain any characters and be up to 256 characters long.

    Input settings

    Dataset

    Select the dataset to process. You can only select a Hybrid dataset. After you select a dataset, you must also select its Version. By default, the first version of the dataset in ascending order is selected.

    When this operator is a downstream node of another operator, the dataset selected here is typically the same as the output dataset of the upstream operator.

    Input field

    The field containing the storage URL of the audio file to process. You must select a source field from the input dataset. You can only select fields where the Is URL parameter is set to Yes.

    Filter (Optional)

    Enter an SQL filter condition, excluding the WHERE keyword. System global variables, such as the business date ${bizdate}, are supported.

    Model settings

    Model

    Select a model to use for this operator. You can select any enabled audio language detection model from Intelligent Application Management > Model Configuration.

    Note

    Output settings

    Dataset

    You can select Source dataset or Other dataset. If the metadata table of the source dataset does not have a primary key, the output dataset defaults to Other dataset.

    When you select other datasets, you must also specify a mixed dataset and its version as the output dataset. By default, the first version of the mixed dataset in ascending order is used. You can also select other versions of the source dataset.

    When you select a source dataset, the operator writes the metadata it produces to the metadata table of that dataset's corresponding version.

    Load policy

    If the metadata table of the selected output dataset has a primary key, the default load policy is update on primary key conflict. If it does not have a primary key, the default is append data.

    • Append data: Appends new data to the destination table. An error occurs if a primary key or constraint conflict is found.

    • Update on primary key conflict: If a primary key conflict occurs, the existing row is deleted and the new row is inserted.

    • Overwrite: Deletes all data from the destination table before writing the new data.

    Note

    When the output dataset is Source Dataset, the load policy only supports Update on Primary Key Conflict.

    Field mapping

    The audio language detection operator always outputs the following fields:

    • language: The language detected in the audio.

    • {file_url}: The URL of the audio file. The name of this output field is dynamic and matches the name of the input source field. This field is output only when the output dataset is set to Other dataset. You can delete the mapping for this field.

    By default, the operator's output fields are mapped to fields with the same names in the output dataset. You can also manually select destination fields for custom mapping. Additionally, you can map fields from the source dataset to pass them through to the destination dataset. You can manage field mappings in the following ways:

    • Add output field: Adds a new, empty row to define a field mapping. This is available only when the output dataset is set to Other dataset.

    • Batch mapping: Lets you perform batch mapping by using manual, same-name, or same-row methods. This is available only when the output dataset is set to Other dataset.

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

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

    After configuring an operator, you can continue to build your workflow by adding upstream or downstream operators.