aws-samples / amazon-polly-metahumans

This Unreal Engine sample project demonstrates how to bring Epic Games' MetaHuman digital characters to life using the Amazon Polly text-to-speech service from AWS. Use this project as a starting point for creating your own Unreal Engine applications that leverage Amazon Polly to give voice to your MetaHumans.
MIT No Attribution
178 stars 67 forks source link

error when speaking #19

Closed TheShoes closed 1 year ago

TheShoes commented 1 year ago

Any idea why i get this error on start LogPollyMsg: Error: Polly failed to generate audio file. Error: Invalid DNS Label found in URI host LogPollyMsg: Error: Failed to start speech. GenerateSpeech must be invoked before StartSpeech.

also get it when i type a message in the box and click speak

Krxtopher commented 1 year ago

The second error can probably be ignored. I think it is caused by the first error. But as for the first error, I'm not sure what would cause that, but here are some things to check...

TheShoes commented 1 year ago

yeah my credentials had changed and i guess you have to make a new build with the correct credentials? either way I got it working. thank you for checking in. Also some other settings in my aws config were wrong too.

any thoughts on tying in aws lex to this?

Krxtopher commented 1 year ago

Closing this thread since the original issue has been resolved. Regarding Lex, the current version of this sample project doesn't include Lex but it does include the whole AWS SDK, so you can write your own C++ code to call the Lex API. You can use the Polly code included in this project as a reference for how to call AWS SDK APIs from UE code. Documentation for the C++ LexRuntimeV2Client can be found here.