in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp [169:177]
Aws::Polly::Model::SynthesizeSpeechRequest USpeechComponent::CreatePollyVisemeRequest(const FString& Text, const EVoiceId VoiceId) const {
Aws::Polly::Model::SynthesizeSpeechRequest PollyRequest;
PollyRequest.SetText(FStringToAwsString(Text));
PollyRequest.SetVoiceId(ToPollyVoiceId(VoiceId));
PollyRequest.SetEngine(ToPollyVoiceEngine(VoiceId));
PollyRequest.SetOutputFormat(Aws::Polly::Model::OutputFormat::json);
PollyRequest.AddSpeechMarkTypes(Aws::Polly::Model::SpeechMarkType::viseme);
return PollyRequest;
}