responseContentType
The message that Amazon Lex V2 returns in the response can be either text or speech based on the responseContentType value.
If the value is
text/plain;charset=utf-8, Amazon Lex V2 returns text in the response.If the value begins with
audio/, Amazon Lex V2 returns speech in the response. Amazon Lex V2 uses Amazon Polly to generate the speech using the configuration that you specified in theresponseContentTypeparameter. For example, if you specifyaudio/mpegas the value, Amazon Lex V2 returns speech in the MPEG format.If the value is
audio/pcm, the speech returned isaudio/pcmat 16 KHz in 16-bit, little-endian format.The following are the accepted values:
audio/mpeg
audio/ogg
audio/pcm (16 KHz)
audio/* (defaults to mpeg)
text/plain; charset=utf-8