@BetaApi(
      "The surface for long-running operations is not stable yet and may change in the future.")
  public final OperationFuture<AnnotatedDataset, LabelOperationMetadata> labelAudioAsync(
      String parent, HumanAnnotationConfig basicConfig, LabelAudioRequest.Feature feature) {
    DATASET_PATH_TEMPLATE.validate(parent, "labelAudio");
    LabelAudioRequest request =
        LabelAudioRequest.newBuilder()
            .setParent(parent)
            .setBasicConfig(basicConfig)
            .setFeature(feature)
            .build();
    return labelAudioAsync(request);
  }
@ BetaApi ( "The surface for long-running operations is not stable yet and may change in the future." ) public final OperationFuture < AnnotatedDataset , LabelOperationMetadata > labelAudioAsync ( String parent , HumanAnnotationConfig basicConfig , LabelAudioRequest . Feature feature ) { DATASET_PATH_TEMPLATE . validate ( parent , "labelAudio" ) ; LabelAudioRequest request = LabelAudioRequest . newBuilder ( ) . setParent ( parent ) . setBasicConfig ( basicConfig ) . setFeature ( feature ) . build ( ) ; return labelAudioAsync ( request ) ; }
Starts a labeling task for audio. The type of audio labeling task is configured by feature in
the request.

<p>Sample code:

<pre><code>
try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
LabelAudioRequest.Feature feature = LabelAudioRequest.Feature.FEATURE_UNSPECIFIED;
AnnotatedDataset response = dataLabelingServiceClient.labelAudioAsync(formattedParent, basicConfig, feature).get();
}
</code></pre>

@param parent Required. Name of the dataset to request labeling task, format:
projects/{project_id}/datasets/{dataset_id}
@param basicConfig Required. Basic human annotation config.
@param feature Required. The type of audio labeling task.
@throws com.google.api.gax.rpc.ApiException if the remote call fails