Skip to content
Open
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 .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
},
"enable-wire-tests": true
},
"originGitCommit": "e994b5ab79ae6fe3560daff055acdf80d315b48e",
"sdkVersion": "0.2.0"
"originGitCommit": "fd7615f7a260b9d042e2783e82084168eb75cf90",
"sdkVersion": "0.2.1"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.deepgram.resources.agent.v1.types;

import com.deepgram.core.ObjectMappers;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import java.util.HashMap;
import java.util.Map;

@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = AgentV1ThinkUpdated.Builder.class)
public final class AgentV1ThinkUpdated {
private final Map<String, Object> additionalProperties;

private AgentV1ThinkUpdated(Map<String, Object> additionalProperties) {
this.additionalProperties = additionalProperties;
}

/**
* @return Message type identifier for think update confirmation
*/
@JsonProperty("type")
public String getType() {
return "ThinkUpdated";
}

@java.lang.Override
public boolean equals(Object other) {
if (this == other) return true;
return other instanceof AgentV1ThinkUpdated;
}

@JsonAnyGetter
public Map<String, Object> getAdditionalProperties() {
return this.additionalProperties;
}

@java.lang.Override
public String toString() {
return ObjectMappers.stringify(this);
}

public static Builder builder() {
return new Builder();
}

@JsonIgnoreProperties(ignoreUnknown = true)
public static final class Builder {
@JsonAnySetter
private Map<String, Object> additionalProperties = new HashMap<>();

private Builder() {}

public Builder from(AgentV1ThinkUpdated other) {
return this;
}

public AgentV1ThinkUpdated build() {
return new AgentV1ThinkUpdated(additionalProperties);
}

public Builder additionalProperty(String key, Object value) {
this.additionalProperties.put(key, value);
return this;
}

public Builder additionalProperties(Map<String, Object> additionalProperties) {
this.additionalProperties.putAll(additionalProperties);
return this;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ public final class AgentV1UpdateSpeakSpeakEndpointProviderDeepgram {

private final AgentV1UpdateSpeakSpeakEndpointProviderDeepgramModel model;

private final Optional<Double> speed;

private final Map<String, Object> additionalProperties;

private AgentV1UpdateSpeakSpeakEndpointProviderDeepgram(
Optional<String> version,
AgentV1UpdateSpeakSpeakEndpointProviderDeepgramModel model,
Optional<Double> speed,
Map<String, Object> additionalProperties) {
this.version = version;
this.model = model;
this.speed = speed;
this.additionalProperties = additionalProperties;
}

Expand All @@ -52,6 +56,14 @@ public AgentV1UpdateSpeakSpeakEndpointProviderDeepgramModel getModel() {
return model;
}

/**
* @return Speaking rate multiplier that adjusts the pace of generated speech while preserving natural prosody and voice quality. Not yet supported in all languages.
*/
@JsonProperty("speed")
public Optional<Double> getSpeed() {
return speed;
}

@java.lang.Override
public boolean equals(Object other) {
if (this == other) return true;
Expand All @@ -65,12 +77,12 @@ public Map<String, Object> getAdditionalProperties() {
}

private boolean equalTo(AgentV1UpdateSpeakSpeakEndpointProviderDeepgram other) {
return version.equals(other.version) && model.equals(other.model);
return version.equals(other.version) && model.equals(other.model) && speed.equals(other.speed);
}

@java.lang.Override
public int hashCode() {
return Objects.hash(this.version, this.model);
return Objects.hash(this.version, this.model, this.speed);
}

@java.lang.Override
Expand Down Expand Up @@ -104,12 +116,21 @@ public interface _FinalStage {
_FinalStage version(Optional<String> version);

_FinalStage version(String version);

/**
* <p>Speaking rate multiplier that adjusts the pace of generated speech while preserving natural prosody and voice quality. Not yet supported in all languages.</p>
*/
_FinalStage speed(Optional<Double> speed);

_FinalStage speed(Double speed);
}

@JsonIgnoreProperties(ignoreUnknown = true)
public static final class Builder implements ModelStage, _FinalStage {
private AgentV1UpdateSpeakSpeakEndpointProviderDeepgramModel model;

private Optional<Double> speed = Optional.empty();

private Optional<String> version = Optional.empty();

@JsonAnySetter
Expand All @@ -121,6 +142,7 @@ private Builder() {}
public Builder from(AgentV1UpdateSpeakSpeakEndpointProviderDeepgram other) {
version(other.getVersion());
model(other.getModel());
speed(other.getSpeed());
return this;
}

Expand All @@ -136,6 +158,26 @@ public _FinalStage model(@NotNull AgentV1UpdateSpeakSpeakEndpointProviderDeepgra
return this;
}

/**
* <p>Speaking rate multiplier that adjusts the pace of generated speech while preserving natural prosody and voice quality. Not yet supported in all languages.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage speed(Double speed) {
this.speed = Optional.ofNullable(speed);
return this;
}

/**
* <p>Speaking rate multiplier that adjusts the pace of generated speech while preserving natural prosody and voice quality. Not yet supported in all languages.</p>
*/
@java.lang.Override
@JsonSetter(value = "speed", nulls = Nulls.SKIP)
public _FinalStage speed(Optional<Double> speed) {
this.speed = speed;
return this;
}

/**
* <p>The REST API version for the Deepgram text-to-speech API</p>
* @return Reference to {@code this} so that method calls can be chained together.
Expand All @@ -158,7 +200,7 @@ public _FinalStage version(Optional<String> version) {

@java.lang.Override
public AgentV1UpdateSpeakSpeakEndpointProviderDeepgram build() {
return new AgentV1UpdateSpeakSpeakEndpointProviderDeepgram(version, model, additionalProperties);
return new AgentV1UpdateSpeakSpeakEndpointProviderDeepgram(version, model, speed, additionalProperties);
}

@java.lang.Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ public final class AgentV1UpdateSpeakSpeakOneItemProviderDeepgram {

private final AgentV1UpdateSpeakSpeakOneItemProviderDeepgramModel model;

private final Optional<Double> speed;

private final Map<String, Object> additionalProperties;

private AgentV1UpdateSpeakSpeakOneItemProviderDeepgram(
Optional<String> version,
AgentV1UpdateSpeakSpeakOneItemProviderDeepgramModel model,
Optional<Double> speed,
Map<String, Object> additionalProperties) {
this.version = version;
this.model = model;
this.speed = speed;
this.additionalProperties = additionalProperties;
}

Expand All @@ -52,6 +56,14 @@ public AgentV1UpdateSpeakSpeakOneItemProviderDeepgramModel getModel() {
return model;
}

/**
* @return Speaking rate multiplier that adjusts the pace of generated speech while preserving natural prosody and voice quality. Not yet supported in all languages.
*/
@JsonProperty("speed")
public Optional<Double> getSpeed() {
return speed;
}

@java.lang.Override
public boolean equals(Object other) {
if (this == other) return true;
Expand All @@ -65,12 +77,12 @@ public Map<String, Object> getAdditionalProperties() {
}

private boolean equalTo(AgentV1UpdateSpeakSpeakOneItemProviderDeepgram other) {
return version.equals(other.version) && model.equals(other.model);
return version.equals(other.version) && model.equals(other.model) && speed.equals(other.speed);
}

@java.lang.Override
public int hashCode() {
return Objects.hash(this.version, this.model);
return Objects.hash(this.version, this.model, this.speed);
}

@java.lang.Override
Expand Down Expand Up @@ -104,12 +116,21 @@ public interface _FinalStage {
_FinalStage version(Optional<String> version);

_FinalStage version(String version);

/**
* <p>Speaking rate multiplier that adjusts the pace of generated speech while preserving natural prosody and voice quality. Not yet supported in all languages.</p>
*/
_FinalStage speed(Optional<Double> speed);

_FinalStage speed(Double speed);
}

@JsonIgnoreProperties(ignoreUnknown = true)
public static final class Builder implements ModelStage, _FinalStage {
private AgentV1UpdateSpeakSpeakOneItemProviderDeepgramModel model;

private Optional<Double> speed = Optional.empty();

private Optional<String> version = Optional.empty();

@JsonAnySetter
Expand All @@ -121,6 +142,7 @@ private Builder() {}
public Builder from(AgentV1UpdateSpeakSpeakOneItemProviderDeepgram other) {
version(other.getVersion());
model(other.getModel());
speed(other.getSpeed());
return this;
}

Expand All @@ -136,6 +158,26 @@ public _FinalStage model(@NotNull AgentV1UpdateSpeakSpeakOneItemProviderDeepgram
return this;
}

/**
* <p>Speaking rate multiplier that adjusts the pace of generated speech while preserving natural prosody and voice quality. Not yet supported in all languages.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage speed(Double speed) {
this.speed = Optional.ofNullable(speed);
return this;
}

/**
* <p>Speaking rate multiplier that adjusts the pace of generated speech while preserving natural prosody and voice quality. Not yet supported in all languages.</p>
*/
@java.lang.Override
@JsonSetter(value = "speed", nulls = Nulls.SKIP)
public _FinalStage speed(Optional<Double> speed) {
this.speed = speed;
return this;
}

/**
* <p>The REST API version for the Deepgram text-to-speech API</p>
* @return Reference to {@code this} so that method calls can be chained together.
Expand All @@ -158,7 +200,7 @@ public _FinalStage version(Optional<String> version) {

@java.lang.Override
public AgentV1UpdateSpeakSpeakOneItemProviderDeepgram build() {
return new AgentV1UpdateSpeakSpeakOneItemProviderDeepgram(version, model, additionalProperties);
return new AgentV1UpdateSpeakSpeakOneItemProviderDeepgram(version, model, speed, additionalProperties);
}

@java.lang.Override
Expand Down
Loading
Loading