in src/main/java/transcribe/Handler.java [85:104]
private void invokeTranscribeService(String fileName) {
String response = "";
TranscriptionTextDTO transcriptionTextDTO = new TranscriptionTextDTO();
System.out.println("invokeTranscribeService()...");
System.out.println("File Name"+fileName);
Transcribe transcribeObj = new Transcribe();
TranscriptionResponseDTO transcribeDTO = transcribeObj.extractSpeechTextFromAudio(fileName);
System.out.println("Job Name :"+transcribeDTO.getJobName());
List<TranscriptionTextDTO> list = transcribeDTO.getResults().getTranscripts();
String outputFile = fileName.substring(0, fileName.lastIndexOf("."))+".txt";
for(int cnt = 0; cnt < list.size(); cnt++) {
TranscriptionTextDTO dto = list.get(cnt);
response = dto.getTranscript();
System.out.println("Text :"+dto.getTranscript());
//transcribeObj.uploadResponseFileToAwsBucket(outputFile,dto.getTranscript());
}
transcriptionTextDTO.setTranscript(response);
sendEmail(fileName, response);
}