我正在尝试使用 Amazon Web Services Polly 和适用于 C# 的 AWS 开发工具包进行文本到语音的转换。我尝试了一个非常基本的转换:
AmazonPollyClient client = new AmazonPollyClient("secret", "secret", Amazon.RegionEndpoint.USEast1);
Amazon.Polly.Model.SynthesizeSpeechRequest request = new SynthesizeSpeechRequest();
request.OutputFormat = OutputFormat.Mp3;
request.Text = "This is my first conversion";
request.TextType = TextType.Text;
request.VoiceId = VoiceId.Nicole;
Amazon.Polly.Model.SynthesizeSpeechResponse response = client.SynthesizeSpeech(request);
我收到一个HTTP 200 OK
响应(没有抛出异常)但是音频流是空的:
少了什么东西?