Audio language detection
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 datafeature for your currentinstance.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
On the Dataphin home page, choose Develop > Data Development from the top menu bar.
On the Develop page, select Project from the top menu bar.
In the left navigation pane, choose Data Processing > Workflow. In the Workflow list, click the desired
workflowto 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
datasetto process. You can only select a Hybrid dataset. After you select adataset, you must also select its Version. By default, the first version of thedatasetin ascending order is selected.When this operator is a downstream node of another operator, the
datasetselected here is typically the same as the outputdatasetof 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 detectionmodel from Intelligent Application Management > Model Configuration.NoteFor the pricing factors of system models, see Built-in models in Intelligent Application Management.
If you have purchased the advanced license package for custom models, no Credits are deducted. Otherwise, you are charged at a 0.2x rate.
Output settings
Dataset
You can select Source dataset or Other dataset. If the metadata table of the source
datasetdoes not have aprimary key, the outputdatasetdefaults 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
datasethas aprimary key, the defaultload policyisupdate on primary key conflict. If it does not have aprimary key, the default isappend data.Append data: Appends new data to the destination table. An error occurs if a
primary keyor constraint conflict is found.Update on primary key conflict: If a
primary keyconflict 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.
NoteWhen the output dataset is Source Dataset, the load policy only supports Update on Primary Key Conflict.
Field mapping
The
audio language detectionoperator 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 outputdatasetis 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 sourcedatasetto pass them through to the destinationdataset. 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 outputdatasetis 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
datasetis set to Other dataset.Delete mapping: Click the Delete icon to remove the corresponding
field mappingrow. You cannot delete mappings for the operator's fixed output fields.
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
workflowby adding upstream or downstream operators.