From 12e9519c4d9347059f20b99b99a1271b2a0427d1 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 21:22:18 +0000 Subject: [PATCH] SDK regeneration --- build.gradle | 2 +- .../api/PollingTranscriptsClient.java | 63 ------------------- .../assemblyai/api/core/ClientOptions.java | 2 +- 3 files changed, 2 insertions(+), 65 deletions(-) delete mode 100644 src/main/java/com/assemblyai/api/PollingTranscriptsClient.java diff --git a/build.gradle b/build.gradle index 5e2caf90..89c68faf 100644 --- a/build.gradle +++ b/build.gradle @@ -47,7 +47,7 @@ publishing { maven(MavenPublication) { groupId = 'com.assemblyai' artifactId = 'assemblyai-java' - version = '0.0.5-beta8' + version = '0.0.5-beta9' from components.java } } diff --git a/src/main/java/com/assemblyai/api/PollingTranscriptsClient.java b/src/main/java/com/assemblyai/api/PollingTranscriptsClient.java deleted file mode 100644 index 477ef213..00000000 --- a/src/main/java/com/assemblyai/api/PollingTranscriptsClient.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.assemblyai.api; - -import com.assemblyai.api.core.ClientOptions; -import com.assemblyai.api.resources.transcripts.TranscriptsClient; -import com.assemblyai.api.types.Transcript; -import com.assemblyai.api.types.TranscriptOptionalParams; -import java.io.File; -import java.io.IOException; - -public class PollingTranscriptsClient extends TranscriptsClient { - - private static final TranscriptOptionalParams EMPTY_PARAMS = TranscriptOptionalParams.builder().build(); - - private final Transcriber transcriber; - - public PollingTranscriptsClient(ClientOptions clientOptions, Transcriber transcriber) { - super(clientOptions); - this.transcriber = transcriber; - } - - /********************************************************************* - * Submit methods will immediately return the transcript - ********************************************************************* - */ - - public Transcript submit(File file) throws IOException { - return submit(file, EMPTY_PARAMS); - } - - public Transcript submit(File file, TranscriptOptionalParams params) throws IOException { - return transcriber.transcribe(file, params, false); - } - - public Transcript submit(String url) { - return submit(url, EMPTY_PARAMS); - } - - public Transcript submit(String url, TranscriptOptionalParams params) { - return transcriber.transcribe(url, params, false); - } - - /********************************************************************* - * Transcribe methods will poll until transcription happens - ********************************************************************* - */ - - public Transcript transcribe(File file) throws IOException { - return transcribe(file, EMPTY_PARAMS); - } - - public Transcript transcribe(File file, TranscriptOptionalParams params) throws IOException { - return transcriber.transcribe(file, params, true); - } - - public Transcript transcribe(String url) { - return transcribe(url, EMPTY_PARAMS); - } - - public Transcript transcribe(String url, TranscriptOptionalParams params) { - return transcriber.transcribe(url, params, true); - } - -} diff --git a/src/main/java/com/assemblyai/api/core/ClientOptions.java b/src/main/java/com/assemblyai/api/core/ClientOptions.java index 0b9d86ba..7134612a 100644 --- a/src/main/java/com/assemblyai/api/core/ClientOptions.java +++ b/src/main/java/com/assemblyai/api/core/ClientOptions.java @@ -29,7 +29,7 @@ private ClientOptions( "X-Fern-SDK-Name", "com.assemblyai.fern:api-sdk", "X-Fern-SDK-Version", - "0.0.5-beta8", + "0.0.5-beta9", "X-Fern-Language", "JAVA")); this.headerSuppliers = headerSuppliers;