> removed aws from core
> refactored Transcriber interface
MODIFY
tika-core/pom.xml
tika-core/pom.xml
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>com.amazonaws</groupId>
- <artifactId>aws-java-sdk-transcribe</artifactId>
- <version>1.11.937</version>
- <scope>compile</scope>
- </dependency>
</dependencies>
<build>

MODIFY
tika-core/src/main/java/org/apache/tika/transcribe/Transcriber.java
tika-core/src/main/java/org/apache/tika/transcribe/Transcriber.java
@@ -21,70 +21,57 @@ import org.apache.tika.exception.TikaException;
import java.io.IOException;
-import com.amazonaws.services.transcribe.model.LanguageCode;
-
/**
* Interface for Transcriber services.
- *
* @since Tika TODO
*/
public interface Transcriber {
/**
+ * Transcribe the given audio file.
+ * @param filePath
* @return
- * @param fileName
- * @param jobName
* @throws TikaException When there is an error translating.
- * @throws java.io.IOException
+ * @throws IOException
* @since TODO
*/
- public void startTranscribeAudio(String fileName, String jobName) throws TikaException, IOException;
+ public void startTranscribeAudio(String filePath) throws TikaException, IOException;
/**
- * @return
- * @param fileName
+ * Transcribe the given the audio file and the source language.
+ * @param filePath
* @param sourceLanguage
- * @param jobName
+ * @return
* @throws TikaException When there is an error translating.
* @throws java.io.IOException
* @since TODO
*/
- public void startTranscribeAudio(String fileName, LanguageCode sourceLanguage, String jobName) throws TikaException, IOException;
+ public void startTranscribeAudio(String filePath, String sourceLanguage) throws TikaException, IOException;
/**
+ * Transcribe the given the video file.
+ * @param filePath
* @return
- * @param fileName
- * @param jobName
* @throws TikaException When there is an error translating.
* @throws java.io.IOException
* @since TODO
*/
- public void startTranscribeVideo(String fileName, String jobName) throws TikaException, IOException;
+ public void startTranscribeVideo(String filePath) throws TikaException, IOException;
/**
- * @return
- * @param fileName
- * @param jobName
+ * Transcribe the given the video file and the source language.
+ * @param filePath
* @param sourceLanguage
+ * @return
* @throws TikaException When there is an error translating.
* @throws java.io.IOException
* @since TODO
*/
- public void startTranscribeVideo(String fileName, LanguageCode sourceLanguage, String jobName) throws TikaException, IOException;
+ public void startTranscribeVideo(String filePath, String sourceLanguage) throws TikaException, IOException;
/**
- * Gets transcription result from S3
- * @param key
- * @return
- */
- public String getTranscriptResult(String key);
-
- /**
- * Upload file to s3
- * @param bucketName
- * @param fileName
- * @param filePath
+ * @return true if this Transcriber is probably able to translate right now.
+ * @since Tika TODO
*/
- public void uploadFileToBucket(String bucketName, String fileName, String filePath);
-
+ public boolean isAvailable();
}

> removed aws from core

> refactored Transcriber interface