Timbre Change
The timbre change operator modifies the timbre and pitch characteristics of an audio file to make the speaker's voice sound like a different person without altering the original content. This feature is commonly used for scenarios such as speaker de-identification and timbre standardization. This topic explains how to configure the timbre change operator.
Prerequisites
The workflow feature requires you to purchase the unstructured data feature for your instance.
You have created a workflow. For detailed instructions, 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 within the project for the operator's input and output.
Supported file formats
The timbre change operator supports processing files in the following formats: aac, amr, avi, flac, flv, m4a, mkv, mov, mp3, mp4, mpeg, ogg, opus, wav, webm, wma, and wmv.
Procedure
In the top menu bar of the Dataphin homepage, choose R&D > Data Development.
In the top menu bar of the Develop page, select a project.
In the left-side navigation pane, choose Data Processing > Workflow. Click the target workflow in the Workflow list to open the workflow canvas. From the Operator Library on the left, drag the Timbre Change operator onto the canvas. On the Timbre Change panel that appears on the right, configure the following parameters.
Parameter
Description
Step name
Enter a name for the current operator. The name can contain any characters and be up to 256 characters long.
Input configuration
Dataset
Select the dataset to process. You can only select a mixed dataset. After selecting a dataset, you must also select its version. By default, the earliest version of the dataset is selected.
When used as a downstream operator, this dataset is typically the same as the output from the upstream operator.
Input field
This field specifies 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 condition (Optional)
Enter the filter conditions using SQL syntax. You only need to provide the content that follows the
WHEREclause. You can use global system variables, such as the business date ${bizdate}.Output configuration
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.
If you select Other Dataset, you must also specify a mixed dataset and its version as the output dataset. By default, the earliest version of the dataset is selected. You can also select other versions of the source dataset.
If you select Source Dataset, the operator writes the generated metadata to the metadata table for the same version of the source dataset.
File output path
The path prefix is automatically set to the storage directory of the selected dataset. You can specify an additional subdirectory. Each processed audio file is stored in a unique subdirectory.
Loading policy
If the metadata table of the selected output dataset has a primary key, update upon 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. An error is reported if a primary key or constraint conflict occurs.
Update upon primary key conflict: If a primary key or constraint conflict occurs, the existing row is deleted and the new data is inserted.
Overwrite: Deletes all existing data from the target table before writing the new data.
NoteIf you use the source dataset as the output, only the update upon primary key conflict loading policy is available.
Field mapping
The timbre change operator always outputs the following field:
convert_audio_url: The storage URL of the audio file after the timbre change.By default, the operator's output fields are mapped to fields with the same names in the output dataset. You can also manually select target fields for custom mapping. Additionally, you can map passthrough fields from the source dataset to the target dataset. You can manage field mappings with the following options:
Add Output Field: Click to add a new, empty field mapping row.
Batch mapping: Click to map fields in bulk by name or by position.
Delete Mapping: Click the Delete icon to remove a field mapping row. You cannot delete the mapping for a required output field.
After you complete the configuration, click Save in the top menu bar of the canvas.
After configuring a single operator, you can continue to build a complete workflow by adding upstream or downstream operators.