Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ The official Java library for accessing ModelArk on Volcengine and BytePlus. It
<dependency>
<groupId>com.volcengine</groupId>
<artifactId>ark-runtime</artifactId>
<version>0.12.0</version>
<version>0.13.0</version>
</dependency>
```

### Gradle

```groovy
implementation 'com.volcengine:ark-runtime:0.12.0'
implementation 'com.volcengine:ark-runtime:0.13.0'
```

## Choose Volcengine or BytePlus
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.12.0
0.13.0
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.volcengine</groupId>
<artifactId>ark-runtime</artifactId>
<version>0.12.0</version>
<version>0.13.0</version>
<packaging>jar</packaging>

<name>ark-runtime</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,270 @@
// Copyright (c) 2026 ByteDance Ltd. and/or its affiliates.
// SPDX-License-Identifier: Apache-2.0

/*
* Ark Audio Generation API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


package com.volcengine.ark.runtime.models.audio_generation;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.Objects;

/**
* AudioConfig
*/
@JsonPropertyOrder({
AudioConfig.JSON_PROPERTY_SAMPLE_RATE,
AudioConfig.JSON_PROPERTY_SPEECH_RATE,
AudioConfig.JSON_PROPERTY_LOUDNESS_RATE,
AudioConfig.JSON_PROPERTY_PITCH_RATE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.21.0")
public class AudioConfig {
public static final String JSON_PROPERTY_SAMPLE_RATE = "sample_rate";
@javax.annotation.Nullable
private SampleRate sampleRate;

public static final String JSON_PROPERTY_SPEECH_RATE = "speech_rate";
@javax.annotation.Nullable
private Integer speechRate;

public static final String JSON_PROPERTY_LOUDNESS_RATE = "loudness_rate";
@javax.annotation.Nullable
private Integer loudnessRate;

public static final String JSON_PROPERTY_PITCH_RATE = "pitch_rate";
@javax.annotation.Nullable
private Integer pitchRate;

public AudioConfig() {
}

public AudioConfig sampleRate(@javax.annotation.Nullable SampleRate sampleRate) {

this.sampleRate = sampleRate;
return this;
}

/**
* Get sampleRate
* @return sampleRate
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_SAMPLE_RATE, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public SampleRate getSampleRate() {
return sampleRate;
}


@JsonProperty(value = JSON_PROPERTY_SAMPLE_RATE, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSampleRate(@javax.annotation.Nullable SampleRate sampleRate) {
this.sampleRate = sampleRate;
}

public AudioConfig speechRate(@javax.annotation.Nullable Integer speechRate) {

this.speechRate = speechRate;
return this;
}

/**
* Get speechRate
* minimum: -50
* maximum: 100
* @return speechRate
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_SPEECH_RATE, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public Integer getSpeechRate() {
return speechRate;
}


@JsonProperty(value = JSON_PROPERTY_SPEECH_RATE, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSpeechRate(@javax.annotation.Nullable Integer speechRate) {
this.speechRate = speechRate;
}

public AudioConfig loudnessRate(@javax.annotation.Nullable Integer loudnessRate) {

this.loudnessRate = loudnessRate;
return this;
}

/**
* Get loudnessRate
* minimum: -50
* maximum: 100
* @return loudnessRate
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_LOUDNESS_RATE, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public Integer getLoudnessRate() {
return loudnessRate;
}


@JsonProperty(value = JSON_PROPERTY_LOUDNESS_RATE, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLoudnessRate(@javax.annotation.Nullable Integer loudnessRate) {
this.loudnessRate = loudnessRate;
}

public AudioConfig pitchRate(@javax.annotation.Nullable Integer pitchRate) {

this.pitchRate = pitchRate;
return this;
}

/**
* Get pitchRate
* minimum: -12
* maximum: 12
* @return pitchRate
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_PITCH_RATE, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public Integer getPitchRate() {
return pitchRate;
}


@JsonProperty(value = JSON_PROPERTY_PITCH_RATE, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPitchRate(@javax.annotation.Nullable Integer pitchRate) {
this.pitchRate = pitchRate;
}


@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AudioConfig audioConfig = (AudioConfig) o;
return Objects.equals(this.sampleRate, audioConfig.sampleRate) &&
Objects.equals(this.speechRate, audioConfig.speechRate) &&
Objects.equals(this.loudnessRate, audioConfig.loudnessRate) &&
Objects.equals(this.pitchRate, audioConfig.pitchRate);
}

@Override
public int hashCode() {
return Objects.hash(sampleRate, speechRate, loudnessRate, pitchRate);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AudioConfig {\n");
sb.append(" sampleRate: ").append(toIndentedString(sampleRate)).append("\n");
sb.append(" speechRate: ").append(toIndentedString(speechRate)).append("\n");
sb.append(" loudnessRate: ").append(toIndentedString(loudnessRate)).append("\n");
sb.append(" pitchRate: ").append(toIndentedString(pitchRate)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
return o == null ? "null" : o.toString().replace("\n", "\n ");
}

public static class Builder {

private AudioConfig instance;

public Builder() {
this(new AudioConfig());
}

protected Builder(AudioConfig instance) {
this.instance = instance;
}

public AudioConfig.Builder sampleRate(SampleRate sampleRate) {
this.instance.sampleRate = sampleRate;
return this;
}
public AudioConfig.Builder speechRate(Integer speechRate) {
this.instance.speechRate = speechRate;
return this;
}
public AudioConfig.Builder loudnessRate(Integer loudnessRate) {
this.instance.loudnessRate = loudnessRate;
return this;
}
public AudioConfig.Builder pitchRate(Integer pitchRate) {
this.instance.pitchRate = pitchRate;
return this;
}


/**
* returns a built AudioConfig instance.
*
* The builder is not reusable.
*/
public AudioConfig build() {
try {
return this.instance;
} finally {
// ensure that this.instance is not reused
this.instance = null;
}
}

@Override
public String toString() {
return getClass() + "=(" + instance + ")";
}
}

/**
* Create a builder with no initialized field.
*/
public static AudioConfig.Builder builder() {
return new AudioConfig.Builder();
}

/**
* Create a builder with a shallow copy of this instance.
*/
public AudioConfig.Builder toBuilder() {
return new AudioConfig.Builder()
.sampleRate(getSampleRate())
.speechRate(getSpeechRate())
.loudnessRate(getLoudnessRate())
.pitchRate(getPitchRate());
}


}
Loading
Loading