accept
You pass this value as the Accept HTTP header.
The message Amazon Lex returns in the response can be either text or speech based on the Accept HTTP header value in the request.
If the value is
text/plain; charset=utf-8, Amazon Lex returns text in the response.If the value begins with
audio/, Amazon Lex returns speech in the response. Amazon Lex uses Amazon Polly to generate the speech (using the configuration you specified in theAcceptheader). For example, if you specifyaudio/mpegas the value, Amazon Lex returns speech in the MPEG format.If the value is
audio/pcm, the speech returned isaudio/pcmin 16-bit, little endian format.The following are the accepted values:
audio/mpeg
audio/ogg
audio/pcm
text/plain; charset=utf-8
audio/* (defaults to mpeg)