Skip to content

UpdateBotLocaleRequest

Source code in docs_src/capo_lex_models_v2/types/update_bot_locale_request.py
class UpdateBotLocaleRequest(TypedDict, closed=True):
    bot_id: "capo_lex_models_v2.types.id.Id"
    """<p>The unique identifier of the bot that contains the locale.</p>"""
    bot_version: "capo_lex_models_v2.types.draft_bot_version.DraftBotVersion"
    """<p>The version of the bot that contains the locale to be updated. The version can only be the <code>DRAFT</code> version.</p>"""
    locale_id: "capo_lex_models_v2.types.locale_id.LocaleId"
    """<p>The identifier of the language and locale to update. The string must match one of the supported locales. For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported languages</a>.</p>"""
    description: NotRequired["capo_lex_models_v2.types.description.Description"]
    """<p>The new description of the locale.</p>"""
    nlu_intent_confidence_threshold: (
        "capo_lex_models_v2.types.confidence_threshold.ConfidenceThreshold"
    )
    """<p>The new confidence threshold where Amazon Lex inserts the <code>AMAZON.FallbackIntent</code> and <code>AMAZON.KendraSearchIntent</code> intents in the list of possible intents for an utterance.</p>"""
    voice_settings: NotRequired["capo_lex_models_v2.types.voice_settings.VoiceSettings"]
    """<p>The new Amazon Polly voice Amazon Lex should use for voice interaction with the user.</p>"""
    unified_speech_settings: NotRequired[
        "capo_lex_models_v2.types.unified_speech_settings.UnifiedSpeechSettings"
    ]
    """<p>Updated unified speech settings to apply to the bot locale.</p>"""
    audio_filler_settings: NotRequired[
        "capo_lex_models_v2.types.audio_filler_settings.AudioFillerSettings"
    ]
    """<p>Updated audio filler settings to apply to the bot locale. When enabled, requires <code>unifiedSpeechSettings</code> (speech-to-speech) to be configured on the bot locale.</p>"""
    speech_recognition_settings: NotRequired[
        "capo_lex_models_v2.types.speech_recognition_settings.SpeechRecognitionSettings"
    ]
    """<p>Updated speech-to-text settings to apply to the bot locale.</p>"""
    generative_ai_settings: NotRequired[
        "capo_lex_models_v2.types.generative_ai_settings.GenerativeAISettings"
    ]
    """<p>Contains settings for generative AI features powered by Amazon Bedrock for your bot locale. Use this object to turn generative AI features on and off. Pricing may differ if you turn a feature on. For more information, see LINK.</p>"""
    speech_detection_sensitivity: NotRequired[
        "capo_lex_models_v2.types.speech_detection_sensitivity.SpeechDetectionSensitivity"
    ]
    """<p>The new sensitivity level for voice activity detection (VAD) in the bot locale. This setting helps optimize speech recognition accuracy by adjusting how the system responds to background noise during voice interactions.</p>"""
    speaker_diarization_settings: NotRequired[
        "capo_lex_models_v2.types.speaker_diarization_settings.SpeakerDiarizationSettings"
    ]
    """<p>The updated speaker diarization settings to apply to the bot locale. If you omit this field, Amazon Lex keeps the setting currently stored on the bot locale. To turn speaker diarization off, set <code>enabled</code> to <code>false</code> explicitly.</p>"""

audio_filler_settings instance-attribute

audio_filler_settings: NotRequired[AudioFillerSettings]

Updated audio filler settings to apply to the bot locale. When enabled, requires unifiedSpeechSettings (speech-to-speech) to be configured on the bot locale.

bot_id instance-attribute

bot_id: Id

The unique identifier of the bot that contains the locale.

bot_version instance-attribute

bot_version: DraftBotVersion

The version of the bot that contains the locale to be updated. The version can only be the DRAFT version.

description instance-attribute

description: NotRequired[Description]

The new description of the locale.

generative_ai_settings instance-attribute

generative_ai_settings: NotRequired[GenerativeAISettings]

Contains settings for generative AI features powered by Amazon Bedrock for your bot locale. Use this object to turn generative AI features on and off. Pricing may differ if you turn a feature on. For more information, see LINK.

locale_id instance-attribute

locale_id: LocaleId

The identifier of the language and locale to update. The string must match one of the supported locales. For more information, see Supported languages.

nlu_intent_confidence_threshold instance-attribute

nlu_intent_confidence_threshold: ConfidenceThreshold

The new confidence threshold where Amazon Lex inserts the AMAZON.FallbackIntent and AMAZON.KendraSearchIntent intents in the list of possible intents for an utterance.

speaker_diarization_settings instance-attribute

speaker_diarization_settings: NotRequired[SpeakerDiarizationSettings]

The updated speaker diarization settings to apply to the bot locale. If you omit this field, Amazon Lex keeps the setting currently stored on the bot locale. To turn speaker diarization off, set enabled to false explicitly.

speech_detection_sensitivity instance-attribute

speech_detection_sensitivity: NotRequired[SpeechDetectionSensitivity]

The new sensitivity level for voice activity detection (VAD) in the bot locale. This setting helps optimize speech recognition accuracy by adjusting how the system responds to background noise during voice interactions.

speech_recognition_settings instance-attribute

speech_recognition_settings: NotRequired[SpeechRecognitionSettings]

Updated speech-to-text settings to apply to the bot locale.

unified_speech_settings instance-attribute

unified_speech_settings: NotRequired[UnifiedSpeechSettings]

Updated unified speech settings to apply to the bot locale.

voice_settings instance-attribute

voice_settings: NotRequired[VoiceSettings]

The new Amazon Polly voice Amazon Lex should use for voice interaction with the user.