AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Send-LEXContent-Accept <String>-ActiveContext <String>-BotAlias <String>-BotName <String>-ContentType <String>-InputStream <Object>-RequestAttribute <String>-SessionAttribute <String>-UserId <String>-Select <String>
PostContent
operation supports audio input at 8kHz and 16kHz. You can use 8kHz audio to achieve higher speech recognition accuracy in telephone audio applications.
In response, Amazon Lex returns the next message to convey to the user. Consider the following example messages: PizzaSize
): "What size pizza would you like?". message
, Amazon Lex provides additional context about the message in the response that you can use to enhance client behavior, such as displaying the appropriate client user interface. Consider the following examples: x-amz-lex-dialog-state
header set to ElicitSlot
x-amz-lex-intent-name
header set to the intent name in the current context
x-amz-lex-slot-to-elicit
header set to the slot name for which the message
is eliciting information x-amz-lex-slots
header set to a map of slots configured for the intent with their current values x-amz-lex-dialog-state
header is set to Confirmation
and the x-amz-lex-slot-to-elicit
header is omitted. x-amz-dialog-state
header is set to ElicitIntent
and the x-amz-slot-to-elicit
header is omitted.
sessionAttributes
. For more information, see Managing Conversation Context. 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. text/plain; charset=utf-8
, Amazon Lex returns text in the response. audio/
, Amazon Lex returns speech in the response. Amazon Lex uses Amazon Polly to generate the speech (using the configuration you specified in the Accept
header). For example, if you specify audio/mpeg
as the value, Amazon Lex returns speech in the MPEG format.audio/pcm
, the speech returned is audio/pcm
in 16-bit, little endian format. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ActiveContexts |
Required? | True |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | True |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Content-Type
HTTP header. Indicates the audio format or text. The header value must start with one of the following prefixes: Required? | True |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Content-Type
HTTP header. You can stream audio data to Amazon Lex or you can create a local buffer that captures all of the audio data before sending. In general, you get better performance if you stream audio data rather than buffering the data locally.The cmdlet accepts a parameter of type string, string[], System.IO.FileInfo or System.IO.Stream. Required? | True |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
x-amz-lex-request-attributes
HTTP header.Request-specific information passed between Amazon Lex and a client application. The value must be a JSON serialized and base64 encoded map with string keys and values. The total size of the requestAttributes
and sessionAttributes
headers is limited to 12 KB.The namespace x-amz-lex:
is reserved for special attributes. Don't create any request attributes with the prefix x-amz-lex:
.For more information, see Setting Request Attributes. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RequestAttributes |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
x-amz-lex-session-attributes
HTTP header.Application-specific information passed between Amazon Lex and a client application. The value must be a JSON serialized and base64 encoded map with string keys and values. The total size of the sessionAttributes
and requestAttributes
headers is limited to 12 KB.For more information, see Setting Session Attributes. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SessionAttributes |
userID
field.To decide the user ID to use for your application, consider the following factors.userID
field must not contain any personally identifiable information of the user, for example, name, personal identification numbers, or other end user personal information.Required? | True |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
AWS Tools for PowerShell: 2.x.y.z