awsdocs / aws-doc-sdk-examples

Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.
Apache License 2.0
9.42k stars 5.6k forks source link

[BUG] https://github.com/awsdocs/aws-doc-sdk-examples/blob/master/php/example_code/polly/SynthesizeSpeech.php #1001

Closed yosun closed 4 years ago

yosun commented 4 years ago

What is the issue?

neural engine support for PHP SDK

How can someone reproduce this issue (if applicable)?

  1. Use https://github.com/awsdocs/aws-doc-sdk-examples/blob/master/php/example_code/polly/SynthesizeSpeech.php

change client region to 'region' => 'us-east-1'

  1. pass in this array into synthesizeSpeech ()

'Text' => 'Hello world' 'OutputFormat' => 'mp3', 'VoiceId' => 'Joanna', 'Engine'=>'neural'

The result returned is not a neural voice

Doug-AWS commented 4 years ago

Not all voices are supported by neural. You must first call DescribeVoices with the engine value neural. I suspect Joanna is not supported by neural. Let me know how it goes.

ghost commented 4 years ago

This issue seems to be addressed in the following AWS Forum post: https://forums.aws.amazon.com/thread.jspa?messageID=935215

If, after reading this post, you still feel there's a bug, I would recommend using this particular Forum to let the Amazon Polly product development team know about it.