2017-04-17 88 views

回答

3

您可以使用DescribeVoices API調用來獲取有關每個語音的信息。

$ aws polly describe-voices --region us-east-1 
{ 
    "Voices": [ 
     { 
      "Gender": "Female", 
      "Name": "Joanna", 
      "LanguageName": "US English", 
      "Id": "Joanna", 
      "LanguageCode": "en-US" 
     }, 
     { 
      "Gender": "Female", 
      "Name": "Mizuki", 
      "LanguageName": "Japanese", 
      "Id": "Mizuki", 
      "LanguageCode": "ja-JP" 
     }, 
     { 
      "Gender": "Female", 
      "Name": "Filiz", 
      "LanguageName": "Turkish", 
      "Id": "Filiz", 
      "LanguageCode": "tr-TR" 
     }, 
     etc. 

LanguageCodeISO 639格式,其中包括語言國家