为什么不';我不能得到维塞姆';是时候将Amazon Polly与Python结合使用了吗?

为什么不';我不能得到维塞姆';是时候将Amazon Polly与Python结合使用了吗?,python,amazon-web-services,amazon-polly,Python,Amazon Web Services,Amazon Polly,我正在使用boto3与Amazon Polly合作,我试图通过语音速度获得viseme时间,如上所述 但它不能像我想的那样工作。我得到一个回复,200,到目前为止还可以,但在回复中我看不到任何与期望结果相关的内容,坦率地说,我不知道如何将结果保存到文本文件中,如Amazon的示例所示 这是我的密码: response = polly_client.synthesize_speech(LanguageCode='en-US',VoiceId='Joanna',

我正在使用boto3与Amazon Polly合作,我试图通过语音速度获得viseme时间,如上所述

但它不能像我想的那样工作。我得到一个回复,200,到目前为止还可以,但在回复中我看不到任何与期望结果相关的内容,坦率地说,我不知道如何将结果保存到文本文件中,如Amazon的示例所示

这是我的密码:

    response = polly_client.synthesize_speech(LanguageCode='en-US',VoiceId='Joanna',
                OutputFormat='json', 
                Text = 'This is a sample text to be synthesized.',
                TextType='text',
                SpeechMarkTypes=['viseme', 'word', 'sentence'])
print(response)
我的回答是:

{'ResponseMetadata': {'RequestId': 'ea3eb25f-73d1-45cf-b6e0-dbc4271921ac', 'HTTPStatusCode': 200, 'HTTPHeaders': {'x-amzn-requestid': 'ea3eb25f-73d1-45cf-b6e0-dbc4271921ac', 'x-amzn-requestcharacters': '40', 'content-type': 'application/x-json-stream', 'transfer-encoding': 'chunked', 'date': 'Sun, 08 Nov 2020 11:44:47 GMT'}, 'RetryAttempts': 0}, 'ContentType': 'application/x-json-stream', 'RequestCharacters': '40', 'AudioStream': <botocore.response.StreamingBody object at 0x1024b4ac0>}
{'ResponseMetadata':{'RequestId':'ea3eb25f-73d1-45cf-b6e0-dbc4271921ac',HTTPStatusCode':200,'HTTPHeaders':{'x-amzn-RequestId':'ea3eb25f-73d1-45cf-b6e0-dbc4271921ac','x-amzn-requestcharacters':'40','content type':'application/x-json-stream','transfer encoding':'chunked','date':'Sun,2020年11月8日11:44:47 GMT'},'RetryAttempts':0},'ContentType':'application/x-json-stream','RequestCharacters':'40','AudioStream':}
所以,我似乎遗漏了一点,但无论我通过搜索引擎搜索找到了什么,都不能涵盖这个问题。我怎样才能做到