'Getting Amazon transcribe status code 500

When I include showSpeakerLabel to true in Amazon Transcribe, I am getting An internal error occurred. Try your request again. (Service: transcribe, Status Code: 500)

Caused by: software.amazon.awssdk.services.transcribestreaming.model.InternalFailureException: An internal error occurred. Try your request again. (Service: transcribe, Status Code: 500, Request ID: XXXX, Extended Request ID: null)
    at software.amazon.awssdk.services.transcribestreaming.model.InternalFailureException$BuilderImpl.build(InternalFailureException.java:119)

Request:

StartStreamTranscriptionRequest.builder().languageCode(LanguageCode.EN_US)
                .mediaEncoding(getAwsMediaEncoding(audioFormat)).mediaSampleRateHertz(getAwsSampleRate(audioFormat))
                .showSpeakerLabel(true)
                .languageModelName("zoom_train_3_Wide").build()
  


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source