【发布时间】:2019-07-19 07:54:11
【问题描述】:
我在这里问了一个问题,几秒钟后我自己回答了:Get mp3 and speech mark from Amazon Polly using NodeJs
我想知道是否必须进行两次调用才能获取文本的 json 和 mp3?
let params = {
'Text': 'Hi, my name is Soley. We are building something amazing!',
'OutputFormat': 'json',
'VoiceId': 'Matthew',
'SpeechMarkTypes': ['word', 'sentence']
}
和
let params = {
'Text': 'Hi, my name is Soley. We are building something amazing!',
'OutputFormat': 'mp3',
'VoiceId': 'Matthew'
}
看来 polly ui https://us-east-1.console.aws.amazon.com/polly/home/SynthesizeSpeech 也是分开做的?
^ mp3没有下载链接,请求json时播放按钮。
【问题讨论】:
标签: json amazon-web-services mp3 text-to-speech amazon-polly