Skip to content
Advertisement

AWS Transcribe S3 .wav file to text

I am trying to use aws Transcribe to convert a wav file to text. I have uploaded a wav file to S3, which is located here and it has public read/write permissions: https://s3.us-east-1.amazonaws.com/csld8xmsdksdf8s9sk3mmdjsdifkjksdijsldk/Transcribe2.wav. The wav file is valid. I can download it in my browser and replay it (and it sounds like the origin recording), so I think we can rule out an invalid input file, file permissions, etc.

I am using java version: 1.8.0_275 for mac.

I expect my program to give me back the transcribed text: “Hello amazon Subscribe, what is this?”

Here is the actual program output, including exception:

JavaScript

Here is my java code (add your aws key and secret)

JavaScript

Here is my pom.xml file

JavaScript

Advertisement

Answer

I had a small mistake in my code. This line wasn’t necessary and when I removed, it worked:

JavaScript
Advertisement