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

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

There is a newer version: 2.16.9
Show newest version
// Copyright (c) Alibaba, Inc. and its affiliates.

package com.alibaba.dashscope.audio.asr.transcription;

import com.alibaba.dashscope.utils.JsonUtils;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import lombok.Data;

@Data
public class TranscriptionMetrics {
  @SerializedName("TOTAL")
  private int total;

  @SerializedName("SUCCEEDED")
  private int succeeded;

  @SerializedName("FAILED")
  private int failed;

  public static TranscriptionMetrics from(JsonObject asJsonObject) {
    return JsonUtils.fromJsonObject(asJsonObject, TranscriptionMetrics.class);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy