update_bot_locale
¶
update_bot_locale(
bot_id: Id,
bot_version: DraftBotVersion,
locale_id: LocaleId,
nlu_intent_confidence_threshold: ConfidenceThreshold,
*,
config_overrides: Optional[LexModelsV2ClientConfig] = None,
description: Optional[Description] = None,
voice_settings: Optional[VoiceSettings] = None,
unified_speech_settings: Optional[UnifiedSpeechSettings] = None,
audio_filler_settings: Optional[AudioFillerSettings] = None,
speech_recognition_settings: Optional[SpeechRecognitionSettings] = None,
generative_ai_settings: Optional[GenerativeAISettings] = None,
speech_detection_sensitivity: Optional[SpeechDetectionSensitivity] = None,
speaker_diarization_settings: Optional[SpeakerDiarizationSettings] = None,
) -> UpdateBotLocaleResponse
Updates the settings that a bot has for a specific locale.
Parameters:
-
bot_id(Id) –The unique identifier of the bot that contains the locale.
-
bot_version(DraftBotVersion) –The version of the bot that contains the locale to be updated. The version can only be the
DRAFTversion. -
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.
-
description(Optional[Description], default:None) –The new description of the locale.
-
nlu_intent_confidence_threshold(ConfidenceThreshold) –The new confidence threshold where Amazon Lex inserts the
AMAZON.FallbackIntentandAMAZON.KendraSearchIntentintents in the list of possible intents for an utterance. -
voice_settings(Optional[VoiceSettings], default:None) –The new Amazon Polly voice Amazon Lex should use for voice interaction with the user.
-
unified_speech_settings(Optional[UnifiedSpeechSettings], default:None) –Updated unified speech settings to apply to the bot locale.
-
audio_filler_settings(Optional[AudioFillerSettings], default:None) –Updated audio filler settings to apply to the bot locale. When enabled, requires
unifiedSpeechSettings(speech-to-speech) to be configured on the bot locale. -
speech_recognition_settings(Optional[SpeechRecognitionSettings], default:None) –Updated speech-to-text settings to apply to the bot locale.
-
generative_ai_settings(Optional[GenerativeAISettings], default:None) –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.
-
speech_detection_sensitivity(Optional[SpeechDetectionSensitivity], default:None) –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.
-
speaker_diarization_settings(Optional[SpeakerDiarizationSettings], default:None) –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
enabledtofalseexplicitly.
Raises:
-
ConflictException–The action that you tried to perform couldn't be completed because the resource is in a conflicting state. For example, deleting a bot that is in the CREATING state. Try your request again.
-
InternalServerException–The service encountered an unexpected condition. Try your request again.
-
PreconditionFailedException–Your request couldn't be completed because one or more request fields aren't valid. Check the fields in your request and try again.
-
ServiceQuotaExceededException–You have reached a quota for your bot.
-
ThrottlingException–Your request rate is too high. Reduce the frequency of requests.
-
ValidationException–One of the input parameters in your request isn't valid. Check the parameters and try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lex_models_v2/_services/lex_models_v2.py
7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 | |