0

I'm playing with aws-sdk (version 2.1063.0) in NodeJs and the AWS Transcribe service. I'm planning to upload audio files with unknown language codes, and have AWS Transcribe detect the language and then transcribe the text.

However, the docs for AWS Transcribe and startTranscriptionJob shows that LanguageCode isn't required: https://docs.aws.amazon.com/transcribe/latest/dg/API_StartTranscriptionJob.html

Yet when i run my code, i see the error MissingRequiredParameter: Missing required key 'LanguageCode' in params

Even in the AWS Transcribe web portal, i'm able to upload audio files with "Automatic Language Detection" as an option. I'd like to do the same programmatically.

enter image description here

Does anyone have suggestions? I saw Aws Transribe unable to start_transcription_job without LanguageCode in boto3, but wasn't able to apply it to my javascript/node code

Matthew
  • 2,035
  • 4
  • 25
  • 48

1 Answers1

0

You have to set "IdentifyLanguage": true in --identify-language

https://docs.aws.amazon.com/ja_jp/cli/latest/reference/transcribe/start-transcription-job.html

razimbres
  • 4,715
  • 5
  • 23
  • 50
  • Thanks for this. I'm stumped on `"UnexpectedParameter: Unexpected key 'IdentifyLanguage'"`, this further adds to my confusion since it's listed in the docs. I got the same when i have the key 'OutputKey' as well. `aws-sdk` version is `2.1063.0` which is pretty recent. Any thoughts? – Matthew Jan 28 '22 at 00:26