Skip to content

Commit 0910c58

Browse files
authored
Merge pull request #91 from AssemblyAI/fern-bot/03-18-2024-0809PM
🌿 Fern Regeneration -- March 18, 2024
2 parents a816472 + f44192f commit 0910c58

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ publishing {
4747
maven(MavenPublication) {
4848
groupId = 'com.assemblyai'
4949
artifactId = 'assemblyai-java'
50-
version = '1.0.8'
50+
version = '1.0.9'
5151
from components.java
5252
}
5353
}

src/main/java/com/assemblyai/api/resources/transcripts/types/SpeechModel.java

+10
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
import com.fasterxml.jackson.annotation.JsonValue;
88

99
public final class SpeechModel {
10+
public static final SpeechModel CONFORMER2 = new SpeechModel(Value.CONFORMER2, "conformer-2");
11+
1012
public static final SpeechModel NANO = new SpeechModel(Value.NANO, "nano");
1113

1214
private final Value value;
@@ -40,6 +42,8 @@ public int hashCode() {
4042

4143
public <T> T visit(Visitor<T> visitor) {
4244
switch (value) {
45+
case CONFORMER2:
46+
return visitor.visitConformer2();
4347
case NANO:
4448
return visitor.visitNano();
4549
case UNKNOWN:
@@ -51,6 +55,8 @@ public <T> T visit(Visitor<T> visitor) {
5155
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
5256
public static SpeechModel valueOf(String value) {
5357
switch (value) {
58+
case "conformer-2":
59+
return CONFORMER2;
5460
case "nano":
5561
return NANO;
5662
default:
@@ -61,12 +67,16 @@ public static SpeechModel valueOf(String value) {
6167
public enum Value {
6268
NANO,
6369

70+
CONFORMER2,
71+
6472
UNKNOWN
6573
}
6674

6775
public interface Visitor<T> {
6876
T visitNano();
6977

78+
T visitConformer2();
79+
7080
T visitUnknown(String unknownType);
7181
}
7282
}

0 commit comments

Comments
 (0)