Changed variable reference to method call
@@ -53,7 +53,7 @@ public class AmazonTranscribe implements Transcriber {
*/
@Override
public String transcribe(String filepath) throws TikaException, IOException {
- if (!this.isAvailable)
+ if (!isAvailable())
return "";
//TODO
return null;
@@ -69,7 +69,7 @@ public class AmazonTranscribe implements Transcriber {
*/
@Override
public String transcribe(String filepath, String sourceLanguage) throws TikaException, IOException {
- if (!this.isAvailable)
+ if (!isAvailable())
return "";
boolean validSourceLanguageFlag = validSourceLanguages.contains(sourceLanguage); // Tracks if we have seen the input sourceLanguage in validSourceLanguages
