0
我正在嘗試使用Amazon Web Services Polly和適用於C#的AWS開發工具包進行文本到語音轉換。我已經嘗試了很基本的轉換:將Amazon Polly文本轉換爲語音轉換時接收零字節音頻流
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
響應(沒有拋出異常),但是音頻流爲空:
缺少了什麼?