1 Answer
- Newest
- Most votes
- Most comments
0
The LanguageCode parameter is meant to be used when your audio file includes only one language. In the documentation, the pipe symbol represents "or" so it means that you should select one of choices.
But, there is a way to do what you want...
Using the parameter IdentifyMultipleLanguages in your transcription job enables automatic multi-language identification in your transcription job request. Use this parameter if your media file contains more than one language. If you include IdentifyMultipleLanguages, you can optionally include a list of language codes, using LanguageOptions, that you think may be present in your media file.
LanguageOptions is an array of strings and you can provide both 'en-US' and 'he-IL' in the array.
answered a year ago
Relevant content
- asked 2 months ago
- Accepted Answerasked 5 years ago
- asked 9 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated a year ago
Hi, thanks for your reply! In hindsight, the pipe symbol representing "or" makes total sense... :-)
I did add IdentifyMultipleLanguages and LanguageOptions which does return a response. Unfortunately, since my audio files are single sentences as part of a learning app (so they contain English and Hebrew in the same sentence), it thinks every word is English. Maybe I'll look into improving the vocabulary, but thanks for the answer and this question is now closed!