简体   繁体   English

以编程方式列出 AWS Transcribe 支持的语言

[英]Programmatically list supported languages for AWS Transcribe

AWS lists supported languages for Transcribe here: https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html AWS 在此处列出了 Transcribe 支持的语言: https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html

Short of parsing the documentation page, is there any way to get a list of these languages programmatically?除了解析文档页面之外,有没有办法以编程方式获取这些语言的列表?

ListLanguageModels seemed promising, but it's only for custom models. ListLanguageModels似乎很有前途,但它仅适用于自定义模型。

You can access all available languages in AWS JS SDK directly.您可以直接访问 AWS JS SDK 中的所有可用语言。 Check the source code .检查源代码

// For regular transcription...
// https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-transcribe/enums/languagecode.html
TranscribeClient.LanguageCode

// For streaming transcription...
// https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-transcribe-streaming/enums/languagecode.html
TranscribeStreamingClient.LanguageCode

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM