我在这里问了一个问题,几秒钟后我自己回答了: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 时只需播放按钮。