awslabs / amazon-transcribe-streaming-sdk

The Amazon Transcribe Streaming SDK is an async Python SDK for converting audio into text via Amazon Transcribe.
Apache License 2.0
142 stars 37 forks source link

Some language codes throw Exception #40

Closed Marware closed 2 years ago

Marware commented 3 years ago

Hi,

While trying to use simple_file.py, changed the language code to ar-SA, threw this exception

amazon_transcribe.exceptions.BadRequestException: 1 validation error detected: Value 'ar-SA' at 'languageCode' failed to satisfy constraint: Member must satisfy enum value set: [en-US, zh-CN, de-DE, it-IT, fr-FR, ko-KR, en-AU, pt-BR, ja-JP, es-US, fr-CA, en-GB]

Works with other with solution but not with this code

Thanks

nateprewitt commented 3 years ago

Hi @Marware, this exception is being returned directly from the Amazon Transcribe service and not specific to this SDK. You can find the full list of supported LanguageCode values in the AmazonTranscribe docs.

Could you provide some more info on where you're able to use ar-SA as a LanguageCode?

nateprewitt commented 2 years ago

Since we haven't had any follow up here, I'm going to resolve this for now. Please feel free to reopen if you have more info later. Thanks!