Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 93d9d69

Browse files
committed
SDK regeneration
1 parent cefda91 commit 93d9d69

17 files changed

+566
-55
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
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 = '3.0.0'
50+
version = '4.0.0'
5151
from components.java
5252
pom {
5353
scm {

src/main/java/com/assemblyai/api/resources/transcripts/requests/ListTranscriptParams.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@JsonInclude(JsonInclude.Include.NON_ABSENT)
2222
@JsonDeserialize(builder = ListTranscriptParams.Builder.class)
2323
public final class ListTranscriptParams {
24-
private final Optional<Long> limit;
24+
private final Optional<Integer> limit;
2525

2626
private final Optional<TranscriptStatus> status;
2727

@@ -36,7 +36,7 @@ public final class ListTranscriptParams {
3636
private final Map<String, Object> additionalProperties;
3737

3838
private ListTranscriptParams(
39-
Optional<Long> limit,
39+
Optional<Integer> limit,
4040
Optional<TranscriptStatus> status,
4141
Optional<String> createdOn,
4242
Optional<String> beforeId,
@@ -56,7 +56,7 @@ private ListTranscriptParams(
5656
* @return Maximum amount of transcripts to retrieve
5757
*/
5858
@JsonProperty("limit")
59-
public Optional<Long> getLimit() {
59+
public Optional<Integer> getLimit() {
6060
return limit;
6161
}
6262

@@ -136,7 +136,7 @@ public static Builder builder() {
136136

137137
@JsonIgnoreProperties(ignoreUnknown = true)
138138
public static final class Builder {
139-
private Optional<Long> limit = Optional.empty();
139+
private Optional<Integer> limit = Optional.empty();
140140

141141
private Optional<TranscriptStatus> status = Optional.empty();
142142

@@ -164,12 +164,12 @@ public Builder from(ListTranscriptParams other) {
164164
}
165165

166166
@JsonSetter(value = "limit", nulls = Nulls.SKIP)
167-
public Builder limit(Optional<Long> limit) {
167+
public Builder limit(Optional<Integer> limit) {
168168
this.limit = limit;
169169
return this;
170170
}
171171

172-
public Builder limit(Long limit) {
172+
public Builder limit(Integer limit) {
173173
this.limit = Optional.ofNullable(limit);
174174
return this;
175175
}

src/main/java/com/assemblyai/api/resources/transcripts/requests/TranscriptParams.java

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public final class TranscriptParams implements ITranscriptOptionalParams {
4646

4747
private final Optional<Boolean> disfluencies;
4848

49+
private final Optional<Boolean> multichannel;
50+
4951
private final Optional<Boolean> dualChannel;
5052

5153
private final Optional<String> webhookUrl;
@@ -118,6 +120,7 @@ private TranscriptParams(
118120
Optional<Boolean> punctuate,
119121
Optional<Boolean> formatText,
120122
Optional<Boolean> disfluencies,
123+
Optional<Boolean> multichannel,
121124
Optional<Boolean> dualChannel,
122125
Optional<String> webhookUrl,
123126
Optional<String> webhookAuthHeaderName,
@@ -157,6 +160,7 @@ private TranscriptParams(
157160
this.punctuate = punctuate;
158161
this.formatText = formatText;
159162
this.disfluencies = disfluencies;
163+
this.multichannel = multichannel;
160164
this.dualChannel = dualChannel;
161165
this.webhookUrl = webhookUrl;
162166
this.webhookAuthHeaderName = webhookAuthHeaderName;
@@ -250,6 +254,15 @@ public Optional<Boolean> getDisfluencies() {
250254
return disfluencies;
251255
}
252256

257+
/**
258+
* @return Enable <a href="https://www.assemblyai.com/docs/models/speech-recognition#multichannel-transcription">Multichannel</a> transcription, can be true or false.
259+
*/
260+
@JsonProperty("multichannel")
261+
@java.lang.Override
262+
public Optional<Boolean> getMultichannel() {
263+
return multichannel;
264+
}
265+
253266
/**
254267
* @return Enable <a href="https://www.assemblyai.com/docs/models/speech-recognition#dual-channel-transcription">Dual Channel</a> transcription, can be true or false.
255268
*/
@@ -547,6 +560,7 @@ private boolean equalTo(TranscriptParams other) {
547560
&& punctuate.equals(other.punctuate)
548561
&& formatText.equals(other.formatText)
549562
&& disfluencies.equals(other.disfluencies)
563+
&& multichannel.equals(other.multichannel)
550564
&& dualChannel.equals(other.dualChannel)
551565
&& webhookUrl.equals(other.webhookUrl)
552566
&& webhookAuthHeaderName.equals(other.webhookAuthHeaderName)
@@ -590,6 +604,7 @@ public int hashCode() {
590604
this.punctuate,
591605
this.formatText,
592606
this.disfluencies,
607+
this.multichannel,
593608
this.dualChannel,
594609
this.webhookUrl,
595610
this.webhookAuthHeaderName,
@@ -669,6 +684,10 @@ public interface _FinalStage {
669684

670685
_FinalStage disfluencies(Boolean disfluencies);
671686

687+
_FinalStage multichannel(Optional<Boolean> multichannel);
688+
689+
_FinalStage multichannel(Boolean multichannel);
690+
672691
_FinalStage dualChannel(Optional<Boolean> dualChannel);
673692

674693
_FinalStage dualChannel(Boolean dualChannel);
@@ -854,6 +873,8 @@ public static final class Builder implements AudioUrlStage, _FinalStage {
854873

855874
private Optional<Boolean> dualChannel = Optional.empty();
856875

876+
private Optional<Boolean> multichannel = Optional.empty();
877+
857878
private Optional<Boolean> disfluencies = Optional.empty();
858879

859880
private Optional<Boolean> formatText = Optional.empty();
@@ -882,6 +903,7 @@ public Builder from(TranscriptParams other) {
882903
punctuate(other.getPunctuate());
883904
formatText(other.getFormatText());
884905
disfluencies(other.getDisfluencies());
906+
multichannel(other.getMultichannel());
885907
dualChannel(other.getDualChannel());
886908
webhookUrl(other.getWebhookUrl());
887909
webhookAuthHeaderName(other.getWebhookAuthHeaderName());
@@ -1436,6 +1458,23 @@ public _FinalStage dualChannel(Optional<Boolean> dualChannel) {
14361458
return this;
14371459
}
14381460

1461+
/**
1462+
* <p>Enable <a href="https://www.assemblyai.com/docs/models/speech-recognition#multichannel-transcription">Multichannel</a> transcription, can be true or false.</p>
1463+
* @return Reference to {@code this} so that method calls can be chained together.
1464+
*/
1465+
@java.lang.Override
1466+
public _FinalStage multichannel(Boolean multichannel) {
1467+
this.multichannel = Optional.ofNullable(multichannel);
1468+
return this;
1469+
}
1470+
1471+
@java.lang.Override
1472+
@JsonSetter(value = "multichannel", nulls = Nulls.SKIP)
1473+
public _FinalStage multichannel(Optional<Boolean> multichannel) {
1474+
this.multichannel = multichannel;
1475+
return this;
1476+
}
1477+
14391478
/**
14401479
* <p>Transcribe Filler Words, like &quot;umm&quot;, in your media file; can be true or false</p>
14411480
* @return Reference to {@code this} so that method calls can be chained together.
@@ -1559,6 +1598,7 @@ public TranscriptParams build() {
15591598
punctuate,
15601599
formatText,
15611600
disfluencies,
1601+
multichannel,
15621602
dualChannel,
15631603
webhookUrl,
15641604
webhookAuthHeaderName,

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ public AudioIntelligenceModelStatus getStatus() {
5454
return status;
5555
}
5656

57+
/**
58+
* @return An array of results for the Content Moderation model
59+
*/
5760
@JsonProperty("results")
5861
public List<ContentSafetyLabelResult> getResults() {
5962
return results;
@@ -226,12 +229,20 @@ public _FinalStage summary(Map<String, Double> summary) {
226229
return this;
227230
}
228231

232+
/**
233+
* <p>An array of results for the Content Moderation model</p>
234+
* @return Reference to {@code this} so that method calls can be chained together.
235+
*/
229236
@java.lang.Override
230237
public _FinalStage addAllResults(List<ContentSafetyLabelResult> results) {
231238
this.results.addAll(results);
232239
return this;
233240
}
234241

242+
/**
243+
* <p>An array of results for the Content Moderation model</p>
244+
* @return Reference to {@code this} so that method calls can be chained together.
245+
*/
235246
@java.lang.Override
236247
public _FinalStage addResults(ContentSafetyLabelResult results) {
237248
this.results.add(results);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ public interface ITranscriptOptionalParams {
2121

2222
Optional<Boolean> getDisfluencies();
2323

24+
Optional<Boolean> getMultichannel();
25+
2426
Optional<Boolean> getDualChannel();
2527

2628
Optional<String> getWebhookUrl();

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,33 @@ private ParagraphsResponse(
4545
this.additionalProperties = additionalProperties;
4646
}
4747

48+
/**
49+
* @return The unique identifier of your transcript
50+
*/
4851
@JsonProperty("id")
4952
public String getId() {
5053
return id;
5154
}
5255

56+
/**
57+
* @return The confidence score for the transcript
58+
*/
5359
@JsonProperty("confidence")
5460
public double getConfidence() {
5561
return confidence;
5662
}
5763

64+
/**
65+
* @return The duration of the audio file in seconds
66+
*/
5867
@JsonProperty("audio_duration")
5968
public double getAudioDuration() {
6069
return audioDuration;
6170
}
6271

72+
/**
73+
* @return An array of paragraphs in the transcript
74+
*/
6375
@JsonProperty("paragraphs")
6476
public List<TranscriptParagraph> getParagraphs() {
6577
return paragraphs;
@@ -145,33 +157,53 @@ public Builder from(ParagraphsResponse other) {
145157
return this;
146158
}
147159

160+
/**
161+
* <p>The unique identifier of your transcript</p>
162+
* @return Reference to {@code this} so that method calls can be chained together.
163+
*/
148164
@java.lang.Override
149165
@JsonSetter("id")
150166
public ConfidenceStage id(@NotNull String id) {
151167
this.id = Objects.requireNonNull(id, "id must not be null");
152168
return this;
153169
}
154170

171+
/**
172+
* <p>The confidence score for the transcript</p>
173+
* @return Reference to {@code this} so that method calls can be chained together.
174+
*/
155175
@java.lang.Override
156176
@JsonSetter("confidence")
157177
public AudioDurationStage confidence(double confidence) {
158178
this.confidence = confidence;
159179
return this;
160180
}
161181

182+
/**
183+
* <p>The duration of the audio file in seconds</p>
184+
* @return Reference to {@code this} so that method calls can be chained together.
185+
*/
162186
@java.lang.Override
163187
@JsonSetter("audio_duration")
164188
public _FinalStage audioDuration(double audioDuration) {
165189
this.audioDuration = audioDuration;
166190
return this;
167191
}
168192

193+
/**
194+
* <p>An array of paragraphs in the transcript</p>
195+
* @return Reference to {@code this} so that method calls can be chained together.
196+
*/
169197
@java.lang.Override
170198
public _FinalStage addAllParagraphs(List<TranscriptParagraph> paragraphs) {
171199
this.paragraphs.addAll(paragraphs);
172200
return this;
173201
}
174202

203+
/**
204+
* <p>An array of paragraphs in the transcript</p>
205+
* @return Reference to {@code this} so that method calls can be chained together.
206+
*/
175207
@java.lang.Override
176208
public _FinalStage addParagraphs(TranscriptParagraph paragraphs) {
177209
this.paragraphs.add(paragraphs);

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,33 @@ private SentencesResponse(
4545
this.additionalProperties = additionalProperties;
4646
}
4747

48+
/**
49+
* @return The unique identifier for the transcript
50+
*/
4851
@JsonProperty("id")
4952
public String getId() {
5053
return id;
5154
}
5255

56+
/**
57+
* @return The confidence score for the transcript
58+
*/
5359
@JsonProperty("confidence")
5460
public double getConfidence() {
5561
return confidence;
5662
}
5763

64+
/**
65+
* @return The duration of the audio file in seconds
66+
*/
5867
@JsonProperty("audio_duration")
5968
public double getAudioDuration() {
6069
return audioDuration;
6170
}
6271

72+
/**
73+
* @return An array of sentences in the transcript
74+
*/
6375
@JsonProperty("sentences")
6476
public List<TranscriptSentence> getSentences() {
6577
return sentences;
@@ -145,33 +157,53 @@ public Builder from(SentencesResponse other) {
145157
return this;
146158
}
147159

160+
/**
161+
* <p>The unique identifier for the transcript</p>
162+
* @return Reference to {@code this} so that method calls can be chained together.
163+
*/
148164
@java.lang.Override
149165
@JsonSetter("id")
150166
public ConfidenceStage id(@NotNull String id) {
151167
this.id = Objects.requireNonNull(id, "id must not be null");
152168
return this;
153169
}
154170

171+
/**
172+
* <p>The confidence score for the transcript</p>
173+
* @return Reference to {@code this} so that method calls can be chained together.
174+
*/
155175
@java.lang.Override
156176
@JsonSetter("confidence")
157177
public AudioDurationStage confidence(double confidence) {
158178
this.confidence = confidence;
159179
return this;
160180
}
161181

182+
/**
183+
* <p>The duration of the audio file in seconds</p>
184+
* @return Reference to {@code this} so that method calls can be chained together.
185+
*/
162186
@java.lang.Override
163187
@JsonSetter("audio_duration")
164188
public _FinalStage audioDuration(double audioDuration) {
165189
this.audioDuration = audioDuration;
166190
return this;
167191
}
168192

193+
/**
194+
* <p>An array of sentences in the transcript</p>
195+
* @return Reference to {@code this} so that method calls can be chained together.
196+
*/
169197
@java.lang.Override
170198
public _FinalStage addAllSentences(List<TranscriptSentence> sentences) {
171199
this.sentences.addAll(sentences);
172200
return this;
173201
}
174202

203+
/**
204+
* <p>An array of sentences in the transcript</p>
205+
* @return Reference to {@code this} so that method calls can be chained together.
206+
*/
175207
@java.lang.Override
176208
public _FinalStage addSentences(TranscriptSentence sentences) {
177209
this.sentences.add(sentences);

0 commit comments

Comments
 (0)