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();
}
}