All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.dashscope.audio.asr.transcription.TranscriptionQueryParam Maven / Gradle / Ivy

The newest version!
package com.alibaba.dashscope.audio.asr.transcription;

import java.util.Map;
import lombok.Data;
import lombok.experimental.SuperBuilder;

@Data
@SuperBuilder
public class TranscriptionQueryParam {
  private String taskId;

  private String apiKey;

  private Map headers;

  public Map getCustomHeaders() {
    return headers;
  }

  public static TranscriptionQueryParam FromTranscriptionParam(
      TranscriptionParam param, String taskId) {
    return TranscriptionQueryParam.builder()
        .apiKey(param.getApiKey())
        .taskId(taskId)
        .headers(param.getHeaders())
        .build();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy