/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace LexRuntimeV2 { namespace Model { /** */ class RecognizeUtteranceRequest : public StreamingLexRuntimeV2Request { public: AWS_LEXRUNTIMEV2_API RecognizeUtteranceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "RecognizeUtterance"; } AWS_LEXRUNTIMEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; AWS_LEXRUNTIMEV2_API bool SignBody() const override { return false; } /** *

The identifier of the bot that should receive the request.

*/ inline const Aws::String& GetBotId() const{ return m_botId; } /** *

The identifier of the bot that should receive the request.

*/ inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; } /** *

The identifier of the bot that should receive the request.

*/ inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; } /** *

The identifier of the bot that should receive the request.

*/ inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); } /** *

The identifier of the bot that should receive the request.

*/ inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); } /** *

The identifier of the bot that should receive the request.

*/ inline RecognizeUtteranceRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} /** *

The identifier of the bot that should receive the request.

*/ inline RecognizeUtteranceRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} /** *

The identifier of the bot that should receive the request.

*/ inline RecognizeUtteranceRequest& WithBotId(const char* value) { SetBotId(value); return *this;} /** *

The alias identifier in use for the bot that should receive the request.

*/ inline const Aws::String& GetBotAliasId() const{ return m_botAliasId; } /** *

The alias identifier in use for the bot that should receive the request.

*/ inline bool BotAliasIdHasBeenSet() const { return m_botAliasIdHasBeenSet; } /** *

The alias identifier in use for the bot that should receive the request.

*/ inline void SetBotAliasId(const Aws::String& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = value; } /** *

The alias identifier in use for the bot that should receive the request.

*/ inline void SetBotAliasId(Aws::String&& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = std::move(value); } /** *

The alias identifier in use for the bot that should receive the request.

*/ inline void SetBotAliasId(const char* value) { m_botAliasIdHasBeenSet = true; m_botAliasId.assign(value); } /** *

The alias identifier in use for the bot that should receive the request.

*/ inline RecognizeUtteranceRequest& WithBotAliasId(const Aws::String& value) { SetBotAliasId(value); return *this;} /** *

The alias identifier in use for the bot that should receive the request.

*/ inline RecognizeUtteranceRequest& WithBotAliasId(Aws::String&& value) { SetBotAliasId(std::move(value)); return *this;} /** *

The alias identifier in use for the bot that should receive the request.

*/ inline RecognizeUtteranceRequest& WithBotAliasId(const char* value) { SetBotAliasId(value); return *this;} /** *

The locale where the session is in use.

*/ inline const Aws::String& GetLocaleId() const{ return m_localeId; } /** *

The locale where the session is in use.

*/ inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; } /** *

The locale where the session is in use.

*/ inline void SetLocaleId(const Aws::String& value) { m_localeIdHasBeenSet = true; m_localeId = value; } /** *

The locale where the session is in use.

*/ inline void SetLocaleId(Aws::String&& value) { m_localeIdHasBeenSet = true; m_localeId = std::move(value); } /** *

The locale where the session is in use.

*/ inline void SetLocaleId(const char* value) { m_localeIdHasBeenSet = true; m_localeId.assign(value); } /** *

The locale where the session is in use.

*/ inline RecognizeUtteranceRequest& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;} /** *

The locale where the session is in use.

*/ inline RecognizeUtteranceRequest& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;} /** *

The locale where the session is in use.

*/ inline RecognizeUtteranceRequest& WithLocaleId(const char* value) { SetLocaleId(value); return *this;} /** *

The identifier of the session in use.

*/ inline const Aws::String& GetSessionId() const{ return m_sessionId; } /** *

The identifier of the session in use.

*/ inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } /** *

The identifier of the session in use.

*/ inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } /** *

The identifier of the session in use.

*/ inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } /** *

The identifier of the session in use.

*/ inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } /** *

The identifier of the session in use.

*/ inline RecognizeUtteranceRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} /** *

The identifier of the session in use.

*/ inline RecognizeUtteranceRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} /** *

The identifier of the session in use.

*/ inline RecognizeUtteranceRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;} /** *

Sets the state of the session with the user. You can use this to set the * current intent, attributes, context, and dialog action. Use the dialog action to * determine the next step that Amazon Lex V2 should use in the conversation with * the user.

The sessionState field must be compressed using * gzip and then base64 encoded before sending to Amazon Lex V2.

*/ inline const Aws::String& GetSessionState() const{ return m_sessionState; } /** *

Sets the state of the session with the user. You can use this to set the * current intent, attributes, context, and dialog action. Use the dialog action to * determine the next step that Amazon Lex V2 should use in the conversation with * the user.

The sessionState field must be compressed using * gzip and then base64 encoded before sending to Amazon Lex V2.

*/ inline bool SessionStateHasBeenSet() const { return m_sessionStateHasBeenSet; } /** *

Sets the state of the session with the user. You can use this to set the * current intent, attributes, context, and dialog action. Use the dialog action to * determine the next step that Amazon Lex V2 should use in the conversation with * the user.

The sessionState field must be compressed using * gzip and then base64 encoded before sending to Amazon Lex V2.

*/ inline void SetSessionState(const Aws::String& value) { m_sessionStateHasBeenSet = true; m_sessionState = value; } /** *

Sets the state of the session with the user. You can use this to set the * current intent, attributes, context, and dialog action. Use the dialog action to * determine the next step that Amazon Lex V2 should use in the conversation with * the user.

The sessionState field must be compressed using * gzip and then base64 encoded before sending to Amazon Lex V2.

*/ inline void SetSessionState(Aws::String&& value) { m_sessionStateHasBeenSet = true; m_sessionState = std::move(value); } /** *

Sets the state of the session with the user. You can use this to set the * current intent, attributes, context, and dialog action. Use the dialog action to * determine the next step that Amazon Lex V2 should use in the conversation with * the user.

The sessionState field must be compressed using * gzip and then base64 encoded before sending to Amazon Lex V2.

*/ inline void SetSessionState(const char* value) { m_sessionStateHasBeenSet = true; m_sessionState.assign(value); } /** *

Sets the state of the session with the user. You can use this to set the * current intent, attributes, context, and dialog action. Use the dialog action to * determine the next step that Amazon Lex V2 should use in the conversation with * the user.

The sessionState field must be compressed using * gzip and then base64 encoded before sending to Amazon Lex V2.

*/ inline RecognizeUtteranceRequest& WithSessionState(const Aws::String& value) { SetSessionState(value); return *this;} /** *

Sets the state of the session with the user. You can use this to set the * current intent, attributes, context, and dialog action. Use the dialog action to * determine the next step that Amazon Lex V2 should use in the conversation with * the user.

The sessionState field must be compressed using * gzip and then base64 encoded before sending to Amazon Lex V2.

*/ inline RecognizeUtteranceRequest& WithSessionState(Aws::String&& value) { SetSessionState(std::move(value)); return *this;} /** *

Sets the state of the session with the user. You can use this to set the * current intent, attributes, context, and dialog action. Use the dialog action to * determine the next step that Amazon Lex V2 should use in the conversation with * the user.

The sessionState field must be compressed using * gzip and then base64 encoded before sending to Amazon Lex V2.

*/ inline RecognizeUtteranceRequest& WithSessionState(const char* value) { SetSessionState(value); return *this;} /** *

Request-specific information passed between the client application and Amazon * Lex V2

The namespace x-amz-lex: is reserved for special * attributes. Don't create any request attributes for prefix * x-amz-lex:.

The requestAttributes field must be * compressed using gzip and then base64 encoded before sending to Amazon Lex * V2.

*/ inline const Aws::String& GetRequestAttributes() const{ return m_requestAttributes; } /** *

Request-specific information passed between the client application and Amazon * Lex V2

The namespace x-amz-lex: is reserved for special * attributes. Don't create any request attributes for prefix * x-amz-lex:.

The requestAttributes field must be * compressed using gzip and then base64 encoded before sending to Amazon Lex * V2.

*/ inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; } /** *

Request-specific information passed between the client application and Amazon * Lex V2

The namespace x-amz-lex: is reserved for special * attributes. Don't create any request attributes for prefix * x-amz-lex:.

The requestAttributes field must be * compressed using gzip and then base64 encoded before sending to Amazon Lex * V2.

*/ inline void SetRequestAttributes(const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = value; } /** *

Request-specific information passed between the client application and Amazon * Lex V2

The namespace x-amz-lex: is reserved for special * attributes. Don't create any request attributes for prefix * x-amz-lex:.

The requestAttributes field must be * compressed using gzip and then base64 encoded before sending to Amazon Lex * V2.

*/ inline void SetRequestAttributes(Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = std::move(value); } /** *

Request-specific information passed between the client application and Amazon * Lex V2

The namespace x-amz-lex: is reserved for special * attributes. Don't create any request attributes for prefix * x-amz-lex:.

The requestAttributes field must be * compressed using gzip and then base64 encoded before sending to Amazon Lex * V2.

*/ inline void SetRequestAttributes(const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.assign(value); } /** *

Request-specific information passed between the client application and Amazon * Lex V2

The namespace x-amz-lex: is reserved for special * attributes. Don't create any request attributes for prefix * x-amz-lex:.

The requestAttributes field must be * compressed using gzip and then base64 encoded before sending to Amazon Lex * V2.

*/ inline RecognizeUtteranceRequest& WithRequestAttributes(const Aws::String& value) { SetRequestAttributes(value); return *this;} /** *

Request-specific information passed between the client application and Amazon * Lex V2

The namespace x-amz-lex: is reserved for special * attributes. Don't create any request attributes for prefix * x-amz-lex:.

The requestAttributes field must be * compressed using gzip and then base64 encoded before sending to Amazon Lex * V2.

*/ inline RecognizeUtteranceRequest& WithRequestAttributes(Aws::String&& value) { SetRequestAttributes(std::move(value)); return *this;} /** *

Request-specific information passed between the client application and Amazon * Lex V2

The namespace x-amz-lex: is reserved for special * attributes. Don't create any request attributes for prefix * x-amz-lex:.

The requestAttributes field must be * compressed using gzip and then base64 encoded before sending to Amazon Lex * V2.

*/ inline RecognizeUtteranceRequest& WithRequestAttributes(const char* value) { SetRequestAttributes(value); return *this;} /** *

Indicates the format for audio input or that the content is text. The header * must start with one of the following prefixes:

  • PCM format, * audio data must be in little-endian byte order.

    • audio/l16; * rate=16000; channels=1

    • audio/x-l16; sample-rate=16000; * channel-count=1

    • audio/lpcm; sample-rate=8000; * sample-size-bits=16; channel-count=1; is-big-endian=false

  • *
  • Opus format

    • *

      audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4

      *
  • Text format

    • text/plain; * charset=utf-8

*/ inline const Aws::String& GetRequestContentType() const{ return m_requestContentType; } /** *

Indicates the format for audio input or that the content is text. The header * must start with one of the following prefixes:

  • PCM format, * audio data must be in little-endian byte order.

    • audio/l16; * rate=16000; channels=1

    • audio/x-l16; sample-rate=16000; * channel-count=1

    • audio/lpcm; sample-rate=8000; * sample-size-bits=16; channel-count=1; is-big-endian=false

  • *
  • Opus format

    • *

      audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4

      *
  • Text format

    • text/plain; * charset=utf-8

*/ inline bool RequestContentTypeHasBeenSet() const { return m_requestContentTypeHasBeenSet; } /** *

Indicates the format for audio input or that the content is text. The header * must start with one of the following prefixes:

  • PCM format, * audio data must be in little-endian byte order.

    • audio/l16; * rate=16000; channels=1

    • audio/x-l16; sample-rate=16000; * channel-count=1

    • audio/lpcm; sample-rate=8000; * sample-size-bits=16; channel-count=1; is-big-endian=false

  • *
  • Opus format

    • *

      audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4

      *
  • Text format

    • text/plain; * charset=utf-8

*/ inline void SetRequestContentType(const Aws::String& value) { m_requestContentTypeHasBeenSet = true; m_requestContentType = value; } /** *

Indicates the format for audio input or that the content is text. The header * must start with one of the following prefixes:

  • PCM format, * audio data must be in little-endian byte order.

    • audio/l16; * rate=16000; channels=1

    • audio/x-l16; sample-rate=16000; * channel-count=1

    • audio/lpcm; sample-rate=8000; * sample-size-bits=16; channel-count=1; is-big-endian=false

  • *
  • Opus format

    • *

      audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4

      *
  • Text format

    • text/plain; * charset=utf-8

*/ inline void SetRequestContentType(Aws::String&& value) { m_requestContentTypeHasBeenSet = true; m_requestContentType = std::move(value); } /** *

Indicates the format for audio input or that the content is text. The header * must start with one of the following prefixes:

  • PCM format, * audio data must be in little-endian byte order.

    • audio/l16; * rate=16000; channels=1

    • audio/x-l16; sample-rate=16000; * channel-count=1

    • audio/lpcm; sample-rate=8000; * sample-size-bits=16; channel-count=1; is-big-endian=false

  • *
  • Opus format

    • *

      audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4

      *
  • Text format

    • text/plain; * charset=utf-8

*/ inline void SetRequestContentType(const char* value) { m_requestContentTypeHasBeenSet = true; m_requestContentType.assign(value); } /** *

Indicates the format for audio input or that the content is text. The header * must start with one of the following prefixes:

  • PCM format, * audio data must be in little-endian byte order.

    • audio/l16; * rate=16000; channels=1

    • audio/x-l16; sample-rate=16000; * channel-count=1

    • audio/lpcm; sample-rate=8000; * sample-size-bits=16; channel-count=1; is-big-endian=false

  • *
  • Opus format

    • *

      audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4

      *
  • Text format

    • text/plain; * charset=utf-8

*/ inline RecognizeUtteranceRequest& WithRequestContentType(const Aws::String& value) { SetRequestContentType(value); return *this;} /** *

Indicates the format for audio input or that the content is text. The header * must start with one of the following prefixes:

  • PCM format, * audio data must be in little-endian byte order.

    • audio/l16; * rate=16000; channels=1

    • audio/x-l16; sample-rate=16000; * channel-count=1

    • audio/lpcm; sample-rate=8000; * sample-size-bits=16; channel-count=1; is-big-endian=false

  • *
  • Opus format

    • *

      audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4

      *
  • Text format

    • text/plain; * charset=utf-8

*/ inline RecognizeUtteranceRequest& WithRequestContentType(Aws::String&& value) { SetRequestContentType(std::move(value)); return *this;} /** *

Indicates the format for audio input or that the content is text. The header * must start with one of the following prefixes:

  • PCM format, * audio data must be in little-endian byte order.

    • audio/l16; * rate=16000; channels=1

    • audio/x-l16; sample-rate=16000; * channel-count=1

    • audio/lpcm; sample-rate=8000; * sample-size-bits=16; channel-count=1; is-big-endian=false

  • *
  • Opus format

    • *

      audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4

      *
  • Text format

    • text/plain; * charset=utf-8

*/ inline RecognizeUtteranceRequest& WithRequestContentType(const char* value) { SetRequestContentType(value); return *this;} /** *

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 the * responseContentType parameter. For example, if you specify * audio/mpeg as the value, Amazon Lex V2 returns speech in the MPEG * format.

  • If the value is audio/pcm, the speech * returned is audio/pcm at 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

*/ inline const Aws::String& GetResponseContentType() const{ return m_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 the * responseContentType parameter. For example, if you specify * audio/mpeg as the value, Amazon Lex V2 returns speech in the MPEG * format.

  • If the value is audio/pcm, the speech * returned is audio/pcm at 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

*/ inline bool ResponseContentTypeHasBeenSet() const { return m_responseContentTypeHasBeenSet; } /** *

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 the * responseContentType parameter. For example, if you specify * audio/mpeg as the value, Amazon Lex V2 returns speech in the MPEG * format.

  • If the value is audio/pcm, the speech * returned is audio/pcm at 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

*/ inline void SetResponseContentType(const Aws::String& value) { m_responseContentTypeHasBeenSet = true; m_responseContentType = value; } /** *

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 the * responseContentType parameter. For example, if you specify * audio/mpeg as the value, Amazon Lex V2 returns speech in the MPEG * format.

  • If the value is audio/pcm, the speech * returned is audio/pcm at 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

*/ inline void SetResponseContentType(Aws::String&& value) { m_responseContentTypeHasBeenSet = true; m_responseContentType = std::move(value); } /** *

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 the * responseContentType parameter. For example, if you specify * audio/mpeg as the value, Amazon Lex V2 returns speech in the MPEG * format.

  • If the value is audio/pcm, the speech * returned is audio/pcm at 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

*/ inline void SetResponseContentType(const char* value) { m_responseContentTypeHasBeenSet = true; m_responseContentType.assign(value); } /** *

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 the * responseContentType parameter. For example, if you specify * audio/mpeg as the value, Amazon Lex V2 returns speech in the MPEG * format.

  • If the value is audio/pcm, the speech * returned is audio/pcm at 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

*/ inline RecognizeUtteranceRequest& WithResponseContentType(const Aws::String& value) { SetResponseContentType(value); return *this;} /** *

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 the * responseContentType parameter. For example, if you specify * audio/mpeg as the value, Amazon Lex V2 returns speech in the MPEG * format.

  • If the value is audio/pcm, the speech * returned is audio/pcm at 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

*/ inline RecognizeUtteranceRequest& WithResponseContentType(Aws::String&& value) { SetResponseContentType(std::move(value)); return *this;} /** *

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 the * responseContentType parameter. For example, if you specify * audio/mpeg as the value, Amazon Lex V2 returns speech in the MPEG * format.

  • If the value is audio/pcm, the speech * returned is audio/pcm at 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

*/ inline RecognizeUtteranceRequest& WithResponseContentType(const char* value) { SetResponseContentType(value); return *this;} private: Aws::String m_botId; bool m_botIdHasBeenSet = false; Aws::String m_botAliasId; bool m_botAliasIdHasBeenSet = false; Aws::String m_localeId; bool m_localeIdHasBeenSet = false; Aws::String m_sessionId; bool m_sessionIdHasBeenSet = false; Aws::String m_sessionState; bool m_sessionStateHasBeenSet = false; Aws::String m_requestAttributes; bool m_requestAttributesHasBeenSet = false; Aws::String m_requestContentType; bool m_requestContentTypeHasBeenSet = false; Aws::String m_responseContentType; bool m_responseContentTypeHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws