Aws::Polly::Model::SynthesizeSpeechRequest USpeechComponent::CreatePollyAudioRequest()

in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp [160:167]


Aws::Polly::Model::SynthesizeSpeechRequest USpeechComponent::CreatePollyAudioRequest(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::pcm); 
    return PollyRequest;
}