Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
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
3 changes: 0 additions & 3 deletions .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ src/main/java/com/assemblyai/api/Transcriber.java
src/main/java/com/assemblyai/api/RealtimeTranscriber.java
src/main/java/com/assemblyai/api/core/Constants.java

# Ignore SpeechModel to manually mark conformer-2 as deprecated
src/main/java/com/assemblyai/api/resources/transcripts/types/SpeechModel.java

# Temporarily update deserialization logic
src/main/java/com/assemblyai/api/core/ObjectMappers.java
src/main/java/com/assemblyai/api/resources/realtime/types/FinalTranscript.java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ public final class SpeechModel {

public static final SpeechModel BEST = new SpeechModel(Value.BEST, "best");

/**
* @deprecated The Conformer-2 option is deprecated and will stop working in the near future.
* Use {@link #BEST} or {@link #NANO} instead.
*/
@Deprecated
public static final SpeechModel CONFORMER2 = new SpeechModel(Value.CONFORMER2, "conformer-2");

private final Value value;

private final String string;
Expand Down Expand Up @@ -53,8 +46,6 @@ public <T> T visit(Visitor<T> visitor) {
return visitor.visitNano();
case BEST:
return visitor.visitBest();
case CONFORMER2:
return visitor.visitConformer2();
case UNKNOWN:
default:
return visitor.visitUnknown(string);
Expand All @@ -68,8 +59,6 @@ public static SpeechModel valueOf(String value) {
return NANO;
case "best":
return BEST;
case "conformer-2":
return CONFORMER2;
default:
return new SpeechModel(Value.UNKNOWN, value);
}
Expand All @@ -80,13 +69,6 @@ public enum Value {

NANO,

/**
* @deprecated The Conformer-2 option is deprecated and will stop working in the near future.
* Use {@link #BEST} or {@link #NANO} instead.
*/
@Deprecated
CONFORMER2,

UNKNOWN
}

Expand All @@ -95,8 +77,6 @@ public interface Visitor<T> {

T visitNano();

T visitConformer2();

T visitUnknown(String unknownType);
}
}