我试图将AWS Polly的^{
client = boto3.client('polly')
response = client.start_speech_synthesis_task(
OutputFormat= "mp3",
Text = text,
TextType = "ssml",
VoiceId= VOICE,
OutputS3BucketName=BUCKET,
OutputS3KeyPrefix=filename)
但是,它抛出以下错误:
'Polly' object has no attribute 'start_speech_synthesis_task'
我还用boto3.Session(...).client(...)
实例化了客户机——同样的错误。你知道吗
我试过更新boto3,但没用。一个similar post in the AWS forums似乎没有答案。你知道吗
我怎样才能解决这个问题?你知道吗
提前谢谢!你知道吗
解决了。我必须用
region_name
实例化:相关问题 更多 >
编程相关推荐